Passed
Branch master (a45bc4)
by David
18:42
created
majima/MajimaController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,8 +118,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
majima/Dwoo/Plugins/Functions/PluginInherits.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,11 +105,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
majima/PluginBundle/Services/DwooEngineDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
majima/PluginBundle/Services/PluginService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
majima/MajimaKernel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.