@@ -15,10 +15,11 @@ |
||
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 |
@@ -192,8 +192,9 @@ |
||
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 | } |
@@ -75,8 +75,7 @@ |
||
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 |
@@ -6,8 +6,9 @@ discard block |
||
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 |
||
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 | |-------------------------------------------------------------------------- |