@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public function getFilters() |
31 | 31 | { |
32 | - return []; |
|
32 | + return [ ]; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function getFunctions() |
39 | 39 | { |
40 | - return []; |
|
40 | + return [ ]; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | // Add here some custom twig extensions |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $configuration = new Configuration(); |
32 | 32 | $config = $this->processConfiguration($configuration, $configs); |
33 | 33 | |
34 | - $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
34 | + $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
35 | 35 | $loader->load('services.xml'); |
36 | 36 | } |
37 | 37 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | define('SYMFONY_DEBUG', filter_var(getenv('SYMFONY_DEBUG') ?: SYMFONY_ENV === 'dev', FILTER_VALIDATE_BOOLEAN)); |
21 | 21 | |
22 | 22 | // maintenance mode |
23 | -$maintenanceFilePath = __DIR__ . '/../app/maintenance.php'; |
|
23 | +$maintenanceFilePath = __DIR__.'/../app/maintenance.php'; |
|
24 | 24 | if (SULU_MAINTENANCE && file_exists($maintenanceFilePath)) { |
25 | 25 | // show maintenance mode and exit if no allowed IP is met |
26 | 26 | if (require $maintenanceFilePath) { |
@@ -28,8 +28,8 @@ discard block |
||
28 | 28 | } |
29 | 29 | } |
30 | 30 | |
31 | -$loader = require __DIR__ . '/../app/autoload.php'; |
|
32 | -include_once __DIR__ . '/../app/bootstrap.php.cache'; |
|
31 | +$loader = require __DIR__.'/../app/autoload.php'; |
|
32 | +include_once __DIR__.'/../app/bootstrap.php.cache'; |
|
33 | 33 | |
34 | 34 | if (SYMFONY_DEBUG) { |
35 | 35 | Debug::enable(); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | define('SYMFONY_DEBUG', filter_var(getenv('SYMFONY_DEBUG') ?: SYMFONY_ENV === 'dev', FILTER_VALIDATE_BOOLEAN)); |
21 | 21 | |
22 | 22 | // maintenance mode |
23 | -$maintenanceFilePath = __DIR__ . '/../app/maintenance.php'; |
|
23 | +$maintenanceFilePath = __DIR__.'/../app/maintenance.php'; |
|
24 | 24 | if (SULU_MAINTENANCE && file_exists($maintenanceFilePath)) { |
25 | 25 | // show maintenance mode and exit if no allowed IP is met |
26 | 26 | if (require $maintenanceFilePath) { |
@@ -28,8 +28,8 @@ discard block |
||
28 | 28 | } |
29 | 29 | } |
30 | 30 | |
31 | -$loader = require __DIR__ . '/../app/autoload.php'; |
|
32 | -include_once __DIR__ . '/../app/bootstrap.php.cache'; |
|
31 | +$loader = require __DIR__.'/../app/autoload.php'; |
|
32 | +include_once __DIR__.'/../app/bootstrap.php.cache'; |
|
33 | 33 | |
34 | 34 | if (SYMFONY_DEBUG) { |
35 | 35 | Debug::enable(); |
@@ -9,8 +9,8 @@ |
||
9 | 9 | * with this source code in the file LICENSE. |
10 | 10 | */ |
11 | 11 | |
12 | -if (preg_match('/^\/admin(\/|$)/', $_SERVER['REQUEST_URI'])) { |
|
13 | - require_once __DIR__ . '/admin.php'; |
|
12 | +if (preg_match('/^\/admin(\/|$)/', $_SERVER[ 'REQUEST_URI' ])) { |
|
13 | + require_once __DIR__.'/admin.php'; |
|
14 | 14 | } else { |
15 | - require_once __DIR__ . '/website.php'; |
|
15 | + require_once __DIR__.'/website.php'; |
|
16 | 16 | } |