Completed
Push — master ( 5cbd6d...a08330 )
by Baris
03:04
created
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.
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.