@@ -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; |
@@ -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 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | public function __construct(IOInterface $output) |
25 | 25 | { |
26 | - $this->output = $output; |
|
26 | + $this->output = $output; |
|
27 | 27 | parent::__construct(Plugin::YAWIK_PRE_CONFIGURE_EVENT); |
28 | 28 | } |
29 | 29 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | |
49 | 49 | foreach ($modules as $module) { |
50 | 50 | if ($module instanceof RequireFilePermissionInterface) { |
51 | - $modFileLists = $module->getRequiredFileLists($options); |
|
51 | + $modFileLists = $module->getRequiredFileLists($options); |
|
52 | 52 | if (!is_null($modFileLists) && !is_array($modFileLists)) { |
53 | 53 | $this->logError(sprintf( |
54 | 54 | '<comment>%s::getRequiredFileList()</comment> should return an array.', |