Completed
Push — develop ( 4e3f55...7f2ea0 )
by Patrick
02:10
created
Autoload.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,8 @@  discard block
 block discarded – undo
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 14
     // project-specific namespace prefix
14 15
     $prefix = 'Flipside\\';
@@ -18,7 +19,8 @@  discard block
 block discarded – undo
18 19
 
19 20
     // does the class use the namespace prefix?
20 21
     $len = strlen($prefix);
21
-    if (strncmp($prefix, $class, $len) !== 0) {
22
+    if (strncmp($prefix, $class, $len) !== 0)
23
+    {
22 24
         // no, move to the next registered autoloader
23 25
         return;
24 26
     }
@@ -32,7 +34,8 @@  discard block
 block discarded – undo
32 34
     $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
33 35
 
34 36
     // if the file exists, require it
35
-    if (file_exists($file)) {
37
+    if (file_exists($file))
38
+    {
36 39
         require $file;
37 40
     }
38 41
 });
Please login to merge, or discard this patch.
Http/WebSite.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,9 @@  discard block
 block discarded – undo
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)
15
+        {
16
+return new WebErrorHandler();};
15 17
         $this->add(new AuthMiddleware());
16 18
         $this->add(new ODataMiddleware());
17 19
     }
@@ -23,7 +25,9 @@  discard block
 block discarded – undo
23 25
 
24 26
     public function registerAPI($uri, $api)
25 27
     {
26
-        $group = $this->group($uri, function() use($api){$api->setup($this);});
28
+        $group = $this->group($uri, function() use($api)
29
+        {
30
+$api->setup($this);});
27 31
         $group->add(new \Flipside\Http\Rest\SerializationMiddleware());
28 32
         $group->add(new \Flipside\Http\Rest\CORSMiddleware($this->getContainer()));
29 33
     }
Please login to merge, or discard this patch.