removed parentheses + added TODO about a small rewrite

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Haeder 2017-03-24 21:05:08 +01:00
parent b5b3451b31
commit 0e19fdfc71
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78

View File

@ -253,7 +253,6 @@ define ( 'NETWORK_PHANTOM', 'unkn'); // Place holder
* and existing allocations MUST NEVER BE CHANGED
* OR RE-ASSIGNED! You may only add to them.
*/
$netgroup_ids = array(
NETWORK_DFRN => (-1),
NETWORK_ZOT => (-2),
@ -503,6 +502,7 @@ function startup() {
*/
class App {
/// @TODO decide indending as a colorful mixure is ahead ...
public $module_loaded = false;
public $query_string;
public $config;
@ -810,11 +810,11 @@ class App {
$basepath = $_SERVER["PWD"];
}
return($basepath);
return $basepath;
}
function get_scheme() {
return($this->scheme);
return $this->scheme;
}
/**
@ -1048,7 +1048,7 @@ class App {
// Is the function called statically?
if (!(isset($this) && get_class($this) == __CLASS__)) {
return(self::$a->remove_baseurl($orig_url));
return self::$a->remove_baseurl($orig_url);
}
// Remove the hostname from the url if it is an internal link
@ -1237,7 +1237,7 @@ class App {
}
function is_friendica_app() {
return($this->is_friendica_app);
return $this->is_friendica_app;
}
/**
@ -1249,6 +1249,7 @@ class App {
* @return bool Is it a known backend?
*/
function is_backend() {
/// @Should be made static to speedup things
$backend = array();
$backend[] = "_well_known";
$backend[] = "api";
@ -1270,6 +1271,7 @@ class App {
$backend[] = "statistics_json";
$backend[] = "xrd";
/// @TODO Maybe rewrite this part: return (in_array() || $this->backend); ?
if (in_array($this->module, $backend)) {
return(true);
} else {
@ -2359,7 +2361,7 @@ function get_cachefile($file, $writemode = true) {
}
/// @TODO no need to put braces here
return($cachepath);
return $cachepath;
}
function clear_cache($basepath = "", $path = "") {
@ -2511,7 +2513,7 @@ function set_template_engine(App $a, $engine = 'internal') {
if (!function_exists('exif_imagetype')) {
function exif_imagetype($file) {
$size = getimagesize($file);
return($size[2]);
return $size[2];
}
}