@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | protected function execute(InputInterface $input, OutputInterface $output) |
| 47 | 47 | { |
| 48 | 48 | $localFilename = realpath($_SERVER['argv'][0]) ?: $_SERVER['argv'][0]; |
| 49 | - $tempFilename = dirname($localFilename) . '/' . basename($localFilename, '.phar').'-temp.phar'; |
|
| 49 | + $tempFilename = dirname($localFilename) . '/' . basename($localFilename, '.phar') . '-temp.phar'; |
|
| 50 | 50 | |
| 51 | 51 | // check for permissions in local filesystem before start connection process |
| 52 | 52 | if (!is_writable($tempDirectory = dirname($tempFilename))) { |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | if (!$e instanceof \UnexpectedValueException && !$e instanceof \PharException) { |
| 129 | 129 | throw $e; |
| 130 | 130 | } |
| 131 | - $output->writeln('<error>The download is corrupted ('.$e->getMessage().').</error>'); |
|
| 131 | + $output->writeln('<error>The download is corrupted (' . $e->getMessage() . ').</error>'); |
|
| 132 | 132 | $output->writeln('<error>Please re-run the self-update command to try again.</error>'); |
| 133 | 133 | } |
| 134 | 134 | } else { |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | $subCommand = new $className(); |
| 77 | - if (! $subCommand instanceof SubCommandInterface) { |
|
| 77 | + if (!$subCommand instanceof SubCommandInterface) { |
|
| 78 | 78 | throw new \InvalidArgumentException('Subcommand must implement SubCommandInterface.'); |
| 79 | 79 | } |
| 80 | 80 | |
@@ -47,8 +47,7 @@ |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | $timezone = $input->getOption('timezone') |
| 50 | - ? $input->getOption('timezone') : |
|
| 51 | - $this->_scopeConfig->getValue('general/locale/timezone'); |
|
| 50 | + ? $input->getOption('timezone') : $this->_scopeConfig->getValue('general/locale/timezone'); |
|
| 52 | 51 | |
| 53 | 52 | if (!$input->getOption('format')) { |
| 54 | 53 | $output->writeln('<info>Times shown in <comment>' . $timezone . '</comment></info>'); |
@@ -151,32 +151,32 @@ |
||
| 151 | 151 | protected function addProductCount() |
| 152 | 152 | { |
| 153 | 153 | $this->infos['Product Count'] = $this->productFactory |
| 154 | - ->create() |
|
| 155 | - ->getCollection() |
|
| 156 | - ->getSize(); |
|
| 154 | + ->create() |
|
| 155 | + ->getCollection() |
|
| 156 | + ->getSize(); |
|
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | protected function addCustomerCount() |
| 160 | 160 | { |
| 161 | 161 | $this->infos['Customer Count'] = $this->customerFactory->create() |
| 162 | - ->getCollection() |
|
| 163 | - ->getSize(); |
|
| 162 | + ->getCollection() |
|
| 163 | + ->getSize(); |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | protected function addCategoryCount() |
| 167 | 167 | { |
| 168 | 168 | $this->infos['Category Count'] = $this->categoryFactory |
| 169 | - ->create() |
|
| 170 | - ->getCollection() |
|
| 171 | - ->getSize(); |
|
| 169 | + ->create() |
|
| 170 | + ->getCollection() |
|
| 171 | + ->getSize(); |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | protected function addAttributeCount() |
| 175 | 175 | { |
| 176 | 176 | $this->infos['Attribute Count'] = $this->attributeFactory |
| 177 | - ->create() |
|
| 178 | - ->getCollection() |
|
| 179 | - ->getSize(); |
|
| 177 | + ->create() |
|
| 178 | + ->getCollection() |
|
| 179 | + ->getSize(); |
|
| 180 | 180 | } |
| 181 | 181 | |
| 182 | 182 | protected function addCacheInfos() |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | public function hasInfo() |
| 111 | 111 | { |
| 112 | - return ! empty($this->infos); |
|
| 112 | + return !empty($this->infos); |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | public function getInfo($key = null) |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | if (!isset($this->infos[$settingArgument])) { |
| 153 | 153 | throw new InvalidArgumentException('Unknown key: ' . $settingArgument); |
| 154 | 154 | } |
| 155 | - $output->writeln((string) $this->infos[$settingArgument]); |
|
| 155 | + $output->writeln((string)$this->infos[$settingArgument]); |
|
| 156 | 156 | } else { |
| 157 | 157 | $this->getHelper('table') |
| 158 | 158 | ->setHeaders(array('name', 'value')) |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $argumentsToInject[] = $objectManager->get($parameter[1]); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - call_user_func_array([ $object, $methodName ], $argumentsToInject); |
|
| 35 | + call_user_func_array([$object, $methodName], $argumentsToInject); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $disabledCacheTypes = 0; |
| 43 | 43 | |
| 44 | 44 | foreach ($cacheTypes as $cacheType) { |
| 45 | - if (! $cacheType->getStatus()) { |
|
| 45 | + if (!$cacheType->getStatus()) { |
|
| 46 | 46 | $disabledCacheTypes++; |
| 47 | 47 | } |
| 48 | 48 | } |
@@ -47,11 +47,11 @@ discard block |
||
| 47 | 47 | $commandTester = new CommandTester($setCommand); |
| 48 | 48 | $commandTester->execute( |
| 49 | 49 | array( |
| 50 | - 'command' => $setCommand->getName(), |
|
| 51 | - 'path' => 'n98_magerun/foo/bar', |
|
| 52 | - '--scope' => 'stores', |
|
| 53 | - '--scope-id' => $store->getId(), |
|
| 54 | - 'value' => 'store-' . $store->getId(), |
|
| 50 | + 'command' => $setCommand->getName(), |
|
| 51 | + 'path' => 'n98_magerun/foo/bar', |
|
| 52 | + '--scope' => 'stores', |
|
| 53 | + '--scope-id' => $store->getId(), |
|
| 54 | + 'value' => 'store-' . $store->getId(), |
|
| 55 | 55 | ) |
| 56 | 56 | ); |
| 57 | 57 | } |
@@ -59,9 +59,9 @@ discard block |
||
| 59 | 59 | $commandTester = new CommandTester($deleteCommand); |
| 60 | 60 | $commandTester->execute( |
| 61 | 61 | array( |
| 62 | - 'command' => $deleteCommand->getName(), |
|
| 63 | - 'path' => 'n98_magerun/foo/bar', |
|
| 64 | - '--all' => true, |
|
| 62 | + 'command' => $deleteCommand->getName(), |
|
| 63 | + 'path' => 'n98_magerun/foo/bar', |
|
| 64 | + '--all' => true, |
|
| 65 | 65 | ) |
| 66 | 66 | ); |
| 67 | 67 | |
@@ -20,26 +20,26 @@ discard block |
||
| 20 | 20 | $commandTester = new CommandTester($setCommand); |
| 21 | 21 | $commandTester->execute( |
| 22 | 22 | array( |
| 23 | - 'command' => $setCommand->getName(), |
|
| 24 | - 'path' => 'n98_magerun/foo/bar', |
|
| 25 | - 'value' => '1234', |
|
| 23 | + 'command' => $setCommand->getName(), |
|
| 24 | + 'path' => 'n98_magerun/foo/bar', |
|
| 25 | + 'value' => '1234', |
|
| 26 | 26 | ) |
| 27 | 27 | ); |
| 28 | 28 | |
| 29 | 29 | $commandTester = new CommandTester($getCommand); |
| 30 | 30 | $commandTester->execute( |
| 31 | 31 | array( |
| 32 | - 'command' => $getCommand->getName(), |
|
| 33 | - 'path' => 'n98_magerun/foo/bar', |
|
| 32 | + 'command' => $getCommand->getName(), |
|
| 33 | + 'path' => 'n98_magerun/foo/bar', |
|
| 34 | 34 | ) |
| 35 | 35 | ); |
| 36 | 36 | $this->assertContains('| n98_magerun/foo/bar | default | 0 | 1234 |', $commandTester->getDisplay()); |
| 37 | 37 | |
| 38 | 38 | $commandTester->execute( |
| 39 | 39 | array( |
| 40 | - 'command' => $getCommand->getName(), |
|
| 41 | - 'path' => 'n98_magerun/foo/bar', |
|
| 42 | - '--update-script' => true |
|
| 40 | + 'command' => $getCommand->getName(), |
|
| 41 | + 'path' => 'n98_magerun/foo/bar', |
|
| 42 | + '--update-script' => true |
|
| 43 | 43 | ) |
| 44 | 44 | ); |
| 45 | 45 | $this->assertContains( |
@@ -49,9 +49,9 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | $commandTester->execute( |
| 51 | 51 | array( |
| 52 | - 'command' => $getCommand->getName(), |
|
| 53 | - 'path' => 'n98_magerun/foo/bar', |
|
| 54 | - '--magerun-script' => true |
|
| 52 | + 'command' => $getCommand->getName(), |
|
| 53 | + 'path' => 'n98_magerun/foo/bar', |
|
| 54 | + '--magerun-script' => true |
|
| 55 | 55 | ) |
| 56 | 56 | ); |
| 57 | 57 | $this->assertContains( |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | |
| 23 | 23 | $invalidFormat = $renderFactory->create('invalid_format'); |
| 24 | 24 | $this->assertFalse($invalidFormat); |
| 25 | - } |
|
| 25 | + } |
|
| 26 | 26 | |
| 27 | 27 | } |
| 28 | 28 | |