Completed
Push — master ( e5abe6...566895 )
by Baris
09:19 queued 06:33
created
apps/default.app/configs/error.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,11 @@
 block discarded – undo
15 15
 use Whoops\Handler\PlainTextHandler;
16 16
 
17 17
 $run     = new Whoops\Run;
18
-if (PHP_SAPI === 'cli') 
18
+if (PHP_SAPI === 'cli') {
19 19
 	$handler = new PlainTextHandler;
20
-else
20
+} else {
21 21
 	$handler = new PrettyPageHandler;
22
+}
22 23
 	
23 24
 $run->pushHandler($handler);
24 25
 
Please login to merge, or discard this patch.
bootstrap/services.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,8 +192,9 @@
 block discarded – undo
192 192
         global $di;
193 193
         $appConfig = $di->get('config');
194 194
         $url = new \Phalcon\Mvc\Url();
195
-        if (!is_null($appConfig->base_url))
196
-            $url->setBaseUri($appConfig->base_url);
195
+        if (!is_null($appConfig->base_url)) {
196
+                    $url->setBaseUri($appConfig->base_url);
197
+        }
197 198
         return $url;
198 199
     }, true);
199 200
 }
Please login to merge, or discard this patch.
bootstrap/application.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@
 block discarded – undo
75 75
 
76 76
     // handle incoming arguments
77 77
     $application->handle($arguments); 
78
-} 
79
-else 
78
+} else 
80 79
 {   
81 80
     $debugWidget = new \Phalcon\Debug\DebugWidget($di);
82 81
     //Handle the request
Please login to merge, or discard this patch.
bootstrap/autoload.php 1 patch
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,8 +6,9 @@  discard block
 block discarded – undo
6 6
 
7 7
 function _if( $path, $name ) {
8 8
     $filePath = $path.'/'.(ENVIROMENT == '' ? '' : ENVIROMENT.'/').$name;
9
-    if ( !is_file($filePath) )
10
-        $filePath = $path.'/'.$name;
9
+    if ( !is_file($filePath) ) {
10
+            $filePath = $path.'/'.$name;
11
+    }
11 12
     return $filePath;
12 13
 } 
13 14
 
@@ -80,8 +81,9 @@  discard block
 block discarded – undo
80 81
 define("APPLICATION_NAME", $applicationName);
81 82
 define("APPLICATION_PATH", $pathConfigs->solution_path.APPLICATION_NAME."/" );
82 83
 
83
-if ( !is_dir( APPLICATION_PATH ) ) 
84
+if ( !is_dir( APPLICATION_PATH ) ) {
84 85
     _d("There is no application called \"".APPLICATION_NAME."\" in your apps folder.");
86
+}
85 87
 
86 88
 /*
87 89
 |--------------------------------------------------------------------------
Please login to merge, or discard this patch.