@@ -8,10 +8,10 @@ discard block |
||
8 | 8 | $arguments['task'] = $appConfig->default_task; |
9 | 9 | $arguments['action'] = $appConfig->default_action; |
10 | 10 | |
11 | -if ( isset( $_SERVER['argv'][1] ) AND strpos($argv[1], "@") !== FALSE ) { |
|
11 | +if (isset($_SERVER['argv'][1]) AND strpos($argv[1], "@") !== FALSE) { |
|
12 | 12 | $itemNumber = 0; |
13 | 13 | $allArguments = explode("@", $argv[1]); |
14 | - if ( count($allArguments) === 2 ) |
|
14 | + if (count($allArguments) === 2) |
|
15 | 15 | { |
16 | 16 | $itemNumber = 1; |
17 | 17 | } |
@@ -21,8 +21,8 @@ discard block |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | $arguments['params'] = array(); |
24 | -foreach($_SERVER['argv'] as $k => $arg) { |
|
25 | - if($k >= 2) { |
|
24 | +foreach ($_SERVER['argv'] as $k => $arg) { |
|
25 | + if ($k >= 2) { |
|
26 | 26 | $arguments['params'][] = $arg; |
27 | 27 | } |
28 | 28 | } |
@@ -46,10 +46,10 @@ |
||
46 | 46 | $output = $application->handle()->getContent(); |
47 | 47 | |
48 | 48 | // HTML Minification |
49 | -if ( $appConfig->html_minify ) { |
|
50 | - ob_start( function() use ($output) { |
|
51 | - $search = array( '/\>[^\S ]+/s', '/[^\S ]+\</s', '/(\s)+/s' ); |
|
52 | - $replace = array( '>', '<', '\\1' ); |
|
49 | +if ($appConfig->html_minify) { |
|
50 | + ob_start(function() use ($output) { |
|
51 | + $search = array('/\>[^\S ]+/s', '/[^\S ]+\</s', '/(\s)+/s'); |
|
52 | + $replace = array('>', '<', '\\1'); |
|
53 | 53 | $buffer = preg_replace($search, $replace, $output); |
54 | 54 | return $buffer; |
55 | 55 | }); |