@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | { |
22 | 22 | if(isset($this->dbData['from'])) |
23 | 23 | { |
24 | - return $this->dbData['from'];; |
|
24 | + return $this->dbData['from']; ; |
|
25 | 25 | } |
26 | 26 | return parent::getFromAddress(); |
27 | 27 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | { |
31 | 31 | if(isset($this->dbData['replyTo'])) |
32 | 32 | { |
33 | - return $this->dbData['replyTo'];; |
|
33 | + return $this->dbData['replyTo']; ; |
|
34 | 34 | } |
35 | 35 | return parent::getReplyTo(); |
36 | 36 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | return $this->textBody; |
60 | 60 | } |
61 | 61 | |
62 | - protected function getBodyFromDB($html=true) |
|
62 | + protected function getBodyFromDB($html = true) |
|
63 | 63 | { |
64 | 64 | $vars = $this->getSubstituteVars(); |
65 | 65 | $rawText = $this->getRawBodyText($html); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $end = strpos($rawText, "</script>"); |
75 | 75 | if($index === 0) |
76 | 76 | { |
77 | - $rawText = substr($rawText, $end+9); |
|
77 | + $rawText = substr($rawText, $end + 9); |
|
78 | 78 | } |
79 | 79 | } |
80 | 80 | return strtr(strip_tags($rawText), $vars); |
@@ -59,8 +59,8 @@ |
||
59 | 59 | return array($address); |
60 | 60 | } |
61 | 61 | $ret = array(); |
62 | - $ret[0] = trim(substr($address, $pos+1), '>'); |
|
63 | - $ret[1] = substr($address, 0, $pos-1); |
|
62 | + $ret[0] = trim(substr($address, $pos + 1), '>'); |
|
63 | + $ret[1] = substr($address, 0, $pos - 1); |
|
64 | 64 | return $ret; |
65 | 65 | } |
66 | 66 |
@@ -8,17 +8,17 @@ discard block |
||
8 | 8 | * @copyright Copyright (c) 2015, Austin Artistic Reconstruction |
9 | 9 | * @license http://www.apache.org/licenses/ Apache 2.0 License |
10 | 10 | */ |
11 | -spl_autoload_register(function ($class) { |
|
11 | +spl_autoload_register(function($class) { |
|
12 | 12 | |
13 | 13 | // project-specific namespace prefix |
14 | 14 | $prefix = 'Flipside\\'; |
15 | 15 | |
16 | 16 | // base directory for the namespace prefix |
17 | - $base_dir = __DIR__ . '/'; |
|
17 | + $base_dir = __DIR__.'/'; |
|
18 | 18 | |
19 | 19 | // does the class use the namespace prefix? |
20 | 20 | $len = strlen($prefix); |
21 | - if (strncmp($prefix, $class, $len) !== 0) { |
|
21 | + if(strncmp($prefix, $class, $len) !== 0) { |
|
22 | 22 | // no, move to the next registered autoloader |
23 | 23 | return; |
24 | 24 | } |
@@ -29,10 +29,10 @@ discard block |
||
29 | 29 | // replace the namespace prefix with the base directory, replace namespace |
30 | 30 | // separators with directory separators in the relative class name, append |
31 | 31 | // with .php |
32 | - $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php'; |
|
32 | + $file = $base_dir.str_replace('\\', '/', $relative_class).'.php'; |
|
33 | 33 | |
34 | 34 | // if the file exists, require it |
35 | - if (file_exists($file)) { |
|
35 | + if(file_exists($file)) { |
|
36 | 36 | require $file; |
37 | 37 | } |
38 | 38 | }); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | public function gc($maxlifetime) |
64 | 64 | { |
65 | - $date = date("Y-m-d H:i:s", time()-$maxlifetime); |
|
65 | + $date = date("Y-m-d H:i:s", time() - $maxlifetime); |
|
66 | 66 | $filter = new \Flipside\Data\Filter("sessionLastAccess lt $date"); |
67 | 67 | return $this->dataTable->delete($filter); |
68 | 68 | } |
@@ -4,8 +4,8 @@ discard block |
||
4 | 4 | use \Psr\Http\Message\ServerRequestInterface as Request; |
5 | 5 | use \Psr\Http\Message\ResponseInterface as Response; |
6 | 6 | |
7 | -require __DIR__ . '/../vendor/autoload.php'; |
|
8 | -require_once(__DIR__ . '/../static.js_css.php'); |
|
7 | +require __DIR__.'/../vendor/autoload.php'; |
|
8 | +require_once(__DIR__.'/../static.js_css.php'); |
|
9 | 9 | |
10 | 10 | class WebPage |
11 | 11 | { |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | public function __construct($title) |
18 | 18 | { |
19 | - \Sentry\init(['dsn' => 'https://[email protected]/4283882' ]); |
|
19 | + \Sentry\init(['dsn' => 'https://[email protected]/4283882']); |
|
20 | 20 | $this->settings = \Flipside\Settings::getInstance(); |
21 | 21 | $this->loader = new \Twig\Loader\FilesystemLoader(dirname(__FILE__).'/../templates'); |
22 | 22 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $this->content['css'] = array($uri); |
113 | 113 | return; |
114 | 114 | } |
115 | - array_push($this->content['css'],$uri); |
|
115 | + array_push($this->content['css'], $uri); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $this->content['js'] = array($uri); |
128 | 128 | return; |
129 | 129 | } |
130 | - array_push($this->content['js'],$uri); |
|
130 | + array_push($this->content['js'], $uri); |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | { |
181 | 181 | $data['menu'] = $submenu; |
182 | 182 | } |
183 | - $this->content['header']['right'] = array($name => $data)+$this->content['header']['right']; |
|
183 | + $this->content['header']['right'] = array($name => $data) + $this->content['header']['right']; |
|
184 | 184 | } |
185 | 185 | |
186 | 186 | /** Notification that is green for success */ |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | $settings = array("settings"=>["determineRouteBeforeAppMiddleware"=>true, 'displayErrorDetails'=> true]); |
12 | 12 | parent::__construct($settings); |
13 | 13 | $c = $this->getContainer(); |
14 | - $c['errorHandler'] = function($c) { return new WebErrorHandler();}; |
|
14 | + $c['errorHandler'] = function($c) { return new WebErrorHandler(); }; |
|
15 | 15 | $this->add(new AuthMiddleware()); |
16 | 16 | $this->add(new ODataMiddleware()); |
17 | 17 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | public function registerAPI($uri, $api) |
25 | 25 | { |
26 | - $group = $this->group($uri, function() use($api){$api->setup($this);}); |
|
26 | + $group = $this->group($uri, function() use($api){$api->setup($this); }); |
|
27 | 27 | $group->add(new \Flipside\Http\Rest\SerializationMiddleware()); |
28 | 28 | $group->add(new \Flipside\Http\Rest\CORSMiddleware($this->getContainer())); |
29 | 29 | } |