@@ -90,7 +90,7 @@ |
||
| 90 | 90 | $rows = []; |
| 91 | 91 | $exitCode = 0; |
| 92 | 92 | $copyUsed = false; |
| 93 | - $expectedMethod = is_null($expectedMethod) ? self::METHOD_RELATIVE_SYMLINK:$expectedMethod; |
|
| 93 | + $expectedMethod = is_null($expectedMethod) ? self::METHOD_RELATIVE_SYMLINK : $expectedMethod; |
|
| 94 | 94 | |
| 95 | 95 | foreach ($modules as $name => $originDir) { |
| 96 | 96 | $targetDir = $publicDir.DIRECTORY_SEPARATOR.$name; |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | |
| 46 | 46 | public function setOutputFromComposerIO(IOInterface $output) |
| 47 | 47 | { |
| 48 | - $level = OutputInterface::VERBOSITY_NORMAL; |
|
| 48 | + $level = OutputInterface::VERBOSITY_NORMAL; |
|
| 49 | 49 | |
| 50 | 50 | if ($output->isVeryVerbose() || $output->isDebug()) { |
| 51 | 51 | $level = OutputInterface::VERBOSITY_VERY_VERBOSE; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | get_class($module) |
| 62 | 62 | )); |
| 63 | 63 | } else { |
| 64 | - $directories = array_merge($directories, $modDirLists); |
|
| 64 | + $directories = array_merge($directories, $modDirLists); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | if (!is_null($modFileLists) && !is_array($modFileLists)) { |
@@ -80,12 +80,12 @@ discard block |
||
| 80 | 80 | $fixer = new PermissionsFixer(); |
| 81 | 81 | |
| 82 | 82 | // activate events |
| 83 | - $eventManager->attach(self::YAWIK_ACTIVATE_EVENT, [$assets,'onActivateEvent']); |
|
| 84 | - $eventManager->attach(self::YAWIK_ACTIVATE_EVENT, [$fixer,'onActivateEvent']); |
|
| 83 | + $eventManager->attach(self::YAWIK_ACTIVATE_EVENT, [$assets, 'onActivateEvent']); |
|
| 84 | + $eventManager->attach(self::YAWIK_ACTIVATE_EVENT, [$fixer, 'onActivateEvent']); |
|
| 85 | 85 | |
| 86 | 86 | // configure events |
| 87 | - $eventManager->attach(self::YAWIK_CONFIGURE_EVENT, [$assets,'onConfigureEvent']); |
|
| 88 | - $eventManager->attach(self::YAWIK_CONFIGURE_EVENT, [$fixer,'onConfigureEvent']); |
|
| 87 | + $eventManager->attach(self::YAWIK_CONFIGURE_EVENT, [$assets, 'onConfigureEvent']); |
|
| 88 | + $eventManager->attach(self::YAWIK_CONFIGURE_EVENT, [$fixer, 'onConfigureEvent']); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | public function activate(Composer $composer, IOInterface $io) |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | $coreOptions = $app->getServiceManager()->get('Core/Options'); |
| 162 | 162 | |
| 163 | 163 | foreach ($installed as $moduleName) { |
| 164 | - $className = $moduleName . '\\Module'; |
|
| 164 | + $className = $moduleName.'\\Module'; |
|
| 165 | 165 | if (class_exists($className, true)) { |
| 166 | 166 | $modules[] = new $className; |
| 167 | 167 | } |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | $this->addModules($package, static::ADD_TYPE_REMOVE); |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | - public function addModules(PackageInterface $package, $scanType='install') |
|
| 192 | + public function addModules(PackageInterface $package, $scanType = 'install') |
|
| 193 | 193 | { |
| 194 | 194 | $type = $package->getType(); |
| 195 | 195 | $extras = $package->getExtra(); |
@@ -198,14 +198,14 @@ discard block |
||
| 198 | 198 | // we skip undefined zf module definition |
| 199 | 199 | if (isset($extras['zf']['module'])) { |
| 200 | 200 | // we register module class name |
| 201 | - $moduleName = $extras['zf']['module']; |
|
| 201 | + $moduleName = $extras['zf']['module']; |
|
| 202 | 202 | if (self::ADD_TYPE_REMOVE == $scanType) { |
| 203 | 203 | $this->uninstalled[] = $moduleName; |
| 204 | 204 | } else { |
| 205 | 205 | $this->installed[] = $moduleName; |
| 206 | 206 | } |
| 207 | 207 | } else { |
| 208 | - $this->output->write('[warning] No module definition for: ' . $package->getName()); |
|
| 208 | + $this->output->write('[warning] No module definition for: '.$package->getName()); |
|
| 209 | 209 | } |
| 210 | 210 | } |
| 211 | 211 | } |