@@ -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; |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | foreach ($modules as $module) { |
43 | 43 | if ($module instanceof RequireFilePermissionInterface) { |
44 | - $modFileLists = $module->getRequiredFileLists($options); |
|
44 | + $modFileLists = $module->getRequiredFileLists($options); |
|
45 | 45 | if (!is_null($modFileLists) && !is_array($modFileLists)) { |
46 | 46 | $this->logError(sprintf( |
47 | 47 | '<comment>%s::getRequiredFileList()</comment> should return an array.', |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | get_class($module) |
61 | 61 | )); |
62 | 62 | } else { |
63 | - $directories = array_merge($directories, $modDirLists); |
|
63 | + $directories = array_merge($directories, $modDirLists); |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | } |
@@ -80,12 +80,12 @@ discard block |
||
80 | 80 | $fixer = new PermissionsFixer(); |
81 | 81 | |
82 | 82 | // activate events |
83 | - $eventManager->attach(self::YAWIK_PRE_CONFIGURE_EVENT, [ $assets, 'onPreConfigureEvent']); |
|
84 | - $eventManager->attach(self::YAWIK_PRE_CONFIGURE_EVENT, [ $fixer, 'onPreConfigureEvent']); |
|
83 | + $eventManager->attach(self::YAWIK_PRE_CONFIGURE_EVENT, [$assets, 'onPreConfigureEvent']); |
|
84 | + $eventManager->attach(self::YAWIK_PRE_CONFIGURE_EVENT, [$fixer, 'onPreConfigureEvent']); |
|
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) |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $coreOptions = $app->getServiceManager()->get('Core/Options'); |
161 | 161 | |
162 | 162 | foreach ($installed as $moduleName) { |
163 | - $className = $moduleName . '\\Module'; |
|
163 | + $className = $moduleName.'\\Module'; |
|
164 | 164 | if (class_exists($className, true)) { |
165 | 165 | $modules[] = new $className; |
166 | 166 | } |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | $this->addModules($package, static::ADD_TYPE_REMOVE); |
189 | 189 | } |
190 | 190 | |
191 | - public function addModules(PackageInterface $package, $scanType='install') |
|
191 | + public function addModules(PackageInterface $package, $scanType = 'install') |
|
192 | 192 | { |
193 | 193 | $type = $package->getType(); |
194 | 194 | $extras = $package->getExtra(); |
@@ -197,14 +197,14 @@ discard block |
||
197 | 197 | // we skip undefined zf module definition |
198 | 198 | if (isset($extras['zf']['module'])) { |
199 | 199 | // we register module class name |
200 | - $moduleName = $extras['zf']['module']; |
|
200 | + $moduleName = $extras['zf']['module']; |
|
201 | 201 | if (self::ADD_TYPE_REMOVE == $scanType) { |
202 | 202 | $this->uninstalled[] = $moduleName; |
203 | 203 | } else { |
204 | 204 | $this->installed[] = $moduleName; |
205 | 205 | } |
206 | 206 | } else { |
207 | - $this->output->write('[warning] No module definition for: ' . $package->getName()); |
|
207 | + $this->output->write('[warning] No module definition for: '.$package->getName()); |
|
208 | 208 | } |
209 | 209 | } |
210 | 210 | } |