@@ -65,9 +65,9 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | private $assetsInstaller; |
| 67 | 67 | |
| 68 | - public function __construct($projectPath=null) |
|
| 68 | + public function __construct($projectPath = null) |
|
| 69 | 69 | { |
| 70 | - $this->projectPath = is_null($projectPath) ? getcwd():$projectPath; |
|
| 70 | + $this->projectPath = is_null($projectPath) ? getcwd() : $projectPath; |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | public function activate(Composer $composer, IOInterface $io) |
@@ -83,9 +83,9 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function setAssetsInstaller(AssetsInstaller $installer) |
| 85 | 85 | { |
| 86 | - $output = $this->output; |
|
| 86 | + $output = $this->output; |
|
| 87 | 87 | if (!is_null($output)) { |
| 88 | - $level = OutputInterface::OUTPUT_NORMAL; |
|
| 88 | + $level = OutputInterface::OUTPUT_NORMAL; |
|
| 89 | 89 | if ($output->isVeryVerbose() || $output->isDebug()) { |
| 90 | 90 | $level = OutputInterface::VERBOSITY_VERY_VERBOSE; |
| 91 | 91 | } elseif ($output->isVerbose()) { |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | return $this->assetsInstaller; |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | - private function scanModules(PackageInterface $package, $scanType='install') |
|
| 160 | + private function scanModules(PackageInterface $package, $scanType = 'install') |
|
| 161 | 161 | { |
| 162 | 162 | $installer = $this->composer->getInstallationManager(); |
| 163 | 163 | $packagePath = $installer->getInstallPath($package); |
@@ -169,14 +169,14 @@ discard block |
||
| 169 | 169 | // we skip undefined zf module definition |
| 170 | 170 | if (isset($extras['zf']['module'])) { |
| 171 | 171 | // we register module class name |
| 172 | - $moduleName = $extras['zf']['module']; |
|
| 172 | + $moduleName = $extras['zf']['module']; |
|
| 173 | 173 | if (self::SCAN_TYPE_INSTALL == $scanType) { |
| 174 | 174 | $this->installed[$moduleName] = realpath($publicDir); |
| 175 | 175 | } else { |
| 176 | 176 | $this->uninstalled[] = $moduleName; |
| 177 | 177 | } |
| 178 | 178 | } else { |
| 179 | - $this->output->write('[warning] No module definition for: ' . $package->getName()); |
|
| 179 | + $this->output->write('[warning] No module definition for: '.$package->getName()); |
|
| 180 | 180 | } |
| 181 | 181 | } |
| 182 | 182 | } |