@@ -118,8 +118,8 @@ |
||
118 | 118 | |
119 | 119 | $minifiedJs = $compiler->squeeze( |
120 | 120 | $rawJs, |
121 | - true, // $singleLine |
|
122 | - true, // $keepImportantComments |
|
121 | + true, // $singleLine |
|
122 | + true, // $keepImportantComments |
|
123 | 123 | true // $specialVarRx |
124 | 124 | ); |
125 | 125 |
@@ -105,11 +105,9 @@ |
||
105 | 105 | ); |
106 | 106 | } |
107 | 107 | $parent = $compiler->getCore()->templateFactory($resource, $identifier, null, null, null, $curTpl); |
108 | - } |
|
109 | - catch (SecurityException $e) { |
|
108 | + } catch (SecurityException $e) { |
|
110 | 109 | throw new CompilationException($compiler, 'Inherits : Security restriction : ' . $e->getMessage()); |
111 | - } |
|
112 | - catch (Exception $e) { |
|
110 | + } catch (Exception $e) { |
|
113 | 111 | throw new CompilationException($compiler, 'Inherits : ' . $e->getMessage()); |
114 | 112 | } |
115 | 113 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | $pluginResourcesDirs = $container->getParameter('plugins.view.dirs'); |
38 | 38 | |
39 | - foreach($pluginResourcesDirs as $pluginResourcesDir) { |
|
39 | + foreach ($pluginResourcesDirs as $pluginResourcesDir) { |
|
40 | 40 | $viewsDir = $pluginResourcesDir; |
41 | 41 | if (!is_dir($viewsDir)) { |
42 | 42 | continue; |
@@ -98,7 +98,7 @@ |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | usort($this->pluginClasses, function(PluginAbstract $a, PluginAbstract $b) { |
101 | - return $a->getPriority() - $b->getPriority(); |
|
101 | + return $a->getPriority()-$b->getPriority(); |
|
102 | 102 | }); |
103 | 103 | } |
104 | 104 |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function getLogDir() |
52 | 52 | { |
53 | - return __DIR__.'/../var/logs'; |
|
53 | + return __DIR__ . '/../var/logs'; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -58,6 +58,6 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function getCacheDir() |
60 | 60 | { |
61 | - return __DIR__.'/../var/cache/'.$this->getEnvironment(); |
|
61 | + return __DIR__ . '/../var/cache/' . $this->getEnvironment(); |
|
62 | 62 | } |
63 | 63 | } |
64 | 64 | \ No newline at end of file |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | require_once(BASE_DIR . join(DIRECTORY_SEPARATOR, ['vendor', 'autoload.php'])); |
18 | 18 | |
19 | -$environment = getenv('MAJIMA_ENV') ? : 'prod'; |
|
19 | +$environment = getenv('MAJIMA_ENV') ?: 'prod'; |
|
20 | 20 | |
21 | 21 | if ($environment !== 'prod') { |
22 | 22 | error_reporting(E_ALL); |