Passed
Push — master ( 8391dd...614aa2 )
by ANTHONIUS
03:02
created
src/Plugin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
      */
58 58
     private $assetsInstaller;
59 59
 
60
-    public function __construct($projectPath=null)
60
+    public function __construct($projectPath = null)
61 61
     {
62
-        $this->projectPath = is_null($projectPath) ? getcwd():$projectPath;
62
+        $this->projectPath = is_null($projectPath) ? getcwd() : $projectPath;
63 63
     }
64 64
 
65 65
     public function activate(Composer $composer, IOInterface $io)
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     {
129 129
         if (!is_object($this->assetsInstaller)) {
130 130
             $assetInstaller = new AssetsInstaller();
131
-            if (php_sapi_name()==='cli') {
131
+            if (php_sapi_name() === 'cli') {
132 132
                 $assetInstaller->setInput(new ArgvInput())->setOutput(new ConsoleOutput());
133 133
                 $assetInstaller->getOutput()->setDecorated(true);
134 134
             }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         return $this->assetsInstaller;
138 138
     }
139 139
 
140
-    private function scanModules(PackageInterface $package, $scanType='install')
140
+    private function scanModules(PackageInterface $package, $scanType = 'install')
141 141
     {
142 142
         $installer      = $this->composer->getInstallationManager();
143 143
         $packagePath    = $installer->getInstallPath($package);
@@ -149,14 +149,14 @@  discard block
 block discarded – undo
149 149
             // we skip undefined zf module definition
150 150
             if (isset($extras['zf']['module'])) {
151 151
                 // we register module class name
152
-                $moduleName     = $extras['zf']['module'];
152
+                $moduleName = $extras['zf']['module'];
153 153
                 if (self::SCAN_TYPE_INSTALL == $scanType) {
154 154
                     $this->installed[$moduleName] = realpath($publicDir);
155 155
                 } else {
156 156
                     $this->uninstalled[] = $moduleName;
157 157
                 }
158 158
             } else {
159
-                $this->output->write('[warning] No module definition for: ' . $package->getName());
159
+                $this->output->write('[warning] No module definition for: '.$package->getName());
160 160
             }
161 161
         }
162 162
     }
Please login to merge, or discard this patch.