@@ -56,9 +56,9 @@ discard block |
||
56 | 56 | */ |
57 | 57 | private $assetsInstaller; |
58 | 58 | |
59 | - public function __construct($projectPath=null) |
|
59 | + public function __construct($projectPath = null) |
|
60 | 60 | { |
61 | - $this->projectPath = is_null($projectPath) ? getcwd():$projectPath; |
|
61 | + $this->projectPath = is_null($projectPath) ? getcwd() : $projectPath; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | public function activate(Composer $composer, IOInterface $io) |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | { |
125 | 125 | if (!is_object($this->assetsInstaller)) { |
126 | 126 | $assetInstaller = new AssetsInstaller(); |
127 | - if (php_sapi_name()==='cli') { |
|
127 | + if (php_sapi_name() === 'cli') { |
|
128 | 128 | $assetInstaller->setInput(new ArgvInput())->setOutput(new ConsoleOutput()); |
129 | 129 | $assetInstaller->getOutput()->setDecorated(true); |
130 | 130 | } |
@@ -133,12 +133,12 @@ discard block |
||
133 | 133 | return $this->assetsInstaller; |
134 | 134 | } |
135 | 135 | |
136 | - private function scanModules(PackageEvent $event, $scanType='install') |
|
136 | + private function scanModules(PackageEvent $event, $scanType = 'install') |
|
137 | 137 | { |
138 | - $operation = $event->getOperation(); |
|
138 | + $operation = $event->getOperation(); |
|
139 | 139 | if ($operation instanceof UpdateOperation) { |
140 | 140 | $package = $operation->getTargetPackage(); |
141 | - } elseif ($operation instanceof InstallOperation || $operation instanceof UninstallOperation) { |
|
141 | + } elseif ($operation instanceof InstallOperation || $operation instanceof UninstallOperation) { |
|
142 | 142 | $package = $operation->getPackage(); |
143 | 143 | } else { |
144 | 144 | $this->output->write("[yawik] unknown operation type: ".get_class($operation)); |
@@ -154,14 +154,14 @@ discard block |
||
154 | 154 | // we skip undefined zf module definition |
155 | 155 | if (isset($extras['zf']['module'])) { |
156 | 156 | // we register module class name |
157 | - $moduleName = $extras['zf']['module']; |
|
157 | + $moduleName = $extras['zf']['module']; |
|
158 | 158 | if (self::SCAN_TYPE_INSTALL == $scanType) { |
159 | 159 | $this->installed[$moduleName] = realpath($publicDir); |
160 | 160 | } else { |
161 | 161 | $this->uninstalled[] = $moduleName; |
162 | 162 | } |
163 | 163 | } else { |
164 | - $this->output->write('[warning] No module definition for: ' . $package->getName()); |
|
164 | + $this->output->write('[warning] No module definition for: '.$package->getName()); |
|
165 | 165 | } |
166 | 166 | } |
167 | 167 | } |