@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | Kint::$display_called_from = $config->display_called_from; |
20 | 20 | Kint::$expanded = $config->expanded; |
21 | 21 | |
22 | -if (! empty($config->plugins)) { |
|
22 | +if (!empty($config->plugins)) { |
|
23 | 23 | Kint::$plugins = $config->plugins; |
24 | 24 | } |
25 | 25 | |
@@ -27,10 +27,10 @@ discard block |
||
27 | 27 | RichRenderer::$folder = $config->rich_folder; |
28 | 28 | RichRenderer::$sort = $config->rich_sort; |
29 | 29 | |
30 | -if (! empty($config->rich_value_plugins)) { |
|
30 | +if (!empty($config->rich_value_plugins)) { |
|
31 | 31 | RichRenderer::$value_plugins = $config->rich_value_plugins; |
32 | 32 | } |
33 | -if (! empty($config->rich_tab_plugins)) { |
|
33 | +if (!empty($config->rich_tab_plugins)) { |
|
34 | 34 | RichRenderer::$tab_plugins = $config->rich_tab_plugins; |
35 | 35 | } |
36 | 36 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | $paths['app'] = $_temp; |
16 | 16 | } |
17 | 17 | else { |
18 | - $paths['app'] = strtr(rtrim($paths['app'], '/\\'), '/\\', DS.DS); |
|
18 | + $paths['app'] = strtr(rtrim($paths['app'], '/\\'), '/\\', DS . DS); |
|
19 | 19 | } |
20 | 20 | } |
21 | 21 | else { |
@@ -31,11 +31,11 @@ discard block |
||
31 | 31 | $paths['storage'] = $_temp; |
32 | 32 | } |
33 | 33 | else { |
34 | - $paths['storage'] = strtr(rtrim($paths['storage'], '/\\'), '/\\', DS.DS); |
|
34 | + $paths['storage'] = strtr(rtrim($paths['storage'], '/\\'), '/\\', DS . DS); |
|
35 | 35 | } |
36 | 36 | } |
37 | - elseif (is_dir($paths['app'].$paths['storage'].DS)) { |
|
38 | - $paths['storage'] = $paths['app'].strtr(trim($paths['storage'], '/\\'), '/\\', DS.DS); |
|
37 | + elseif (is_dir($paths['app'] . $paths['storage'] . DS)) { |
|
38 | + $paths['storage'] = $paths['app'] . strtr(trim($paths['storage'], '/\\'), '/\\', DS . DS); |
|
39 | 39 | } |
40 | 40 | else { |
41 | 41 | header('HTTP/1.1 503 Service Unavailable.', true, 503); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | require_once __DIR__ . DS . 'kint.php'; |
72 | 72 | |
73 | - if (! $is_cli) { |
|
73 | + if (!$is_cli) { |
|
74 | 74 | $app->run(); |
75 | 75 | } |
76 | 76 | }; |
@@ -13,12 +13,10 @@ discard block |
||
13 | 13 | if (is_dir($paths['app'])) { |
14 | 14 | if (($_temp = realpath($paths['app'])) !== false) { |
15 | 15 | $paths['app'] = $_temp; |
16 | - } |
|
17 | - else { |
|
16 | + } else { |
|
18 | 17 | $paths['app'] = strtr(rtrim($paths['app'], '/\\'), '/\\', DS.DS); |
19 | 18 | } |
20 | - } |
|
21 | - else { |
|
19 | + } else { |
|
22 | 20 | header('HTTP/1.1 503 Service Unavailable.', true, 503); |
23 | 21 | echo 'Your application folder path does not appear to be set correctly. '; |
24 | 22 | echo 'Please open the following file and correct this: "' . $paths_config_file . '"'; |
@@ -29,15 +27,12 @@ discard block |
||
29 | 27 | if (is_dir($paths['storage'])) { |
30 | 28 | if (($_temp = realpath($paths['storage'])) !== false) { |
31 | 29 | $paths['storage'] = $_temp; |
32 | - } |
|
33 | - else { |
|
30 | + } else { |
|
34 | 31 | $paths['storage'] = strtr(rtrim($paths['storage'], '/\\'), '/\\', DS.DS); |
35 | 32 | } |
36 | - } |
|
37 | - elseif (is_dir($paths['app'].$paths['storage'].DS)) { |
|
33 | + } elseif (is_dir($paths['app'].$paths['storage'].DS)) { |
|
38 | 34 | $paths['storage'] = $paths['app'].strtr(trim($paths['storage'], '/\\'), '/\\', DS.DS); |
39 | - } |
|
40 | - else { |
|
35 | + } else { |
|
41 | 36 | header('HTTP/1.1 503 Service Unavailable.', true, 503); |
42 | 37 | echo 'Your storage folder path does not appear to be set correctly. '; |
43 | 38 | echo 'Please open the following file and correct this: "' . $paths_config_file . '"'; |