@@ -44,10 +44,10 @@ |
||
44 | 44 | protected function replaceHtaccessFile($baseUrl) |
45 | 45 | { |
46 | 46 | $htaccessFile = $this->config->getString('installationFolder') |
47 | - . DIRECTORY_SEPARATOR |
|
48 | - . 'pub' |
|
49 | - . DIRECTORY_SEPARATOR |
|
50 | - . '.htaccess'; |
|
47 | + . DIRECTORY_SEPARATOR |
|
48 | + . 'pub' |
|
49 | + . DIRECTORY_SEPARATOR |
|
50 | + . '.htaccess'; |
|
51 | 51 | |
52 | 52 | $this->_backupOriginalFile($htaccessFile); |
53 | 53 | $this->_replaceContent($htaccessFile, $baseUrl); |
@@ -28,10 +28,10 @@ |
||
28 | 28 | @chmod($varCacheFolder, 0777); |
29 | 29 | |
30 | 30 | $mediaFolder = $installationFolder |
31 | - . DIRECTORY_SEPARATOR |
|
32 | - . 'pub' |
|
33 | - . DIRECTORY_SEPARATOR |
|
34 | - . 'media'; |
|
31 | + . DIRECTORY_SEPARATOR |
|
32 | + . 'pub' |
|
33 | + . DIRECTORY_SEPARATOR |
|
34 | + . 'media'; |
|
35 | 35 | if (!is_dir($mediaFolder)) { |
36 | 36 | @mkdir($mediaFolder); |
37 | 37 | } |
@@ -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() |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @todo writing unit tests for toggling caches is complicated because environments differ |
|
4 | - * touching caches changes state and will result in different test result second time |
|
5 | - * solutions: disabling/enabling, faking&mocking or having one defined test environment |
|
6 | - */ |
|
3 | + * @todo writing unit tests for toggling caches is complicated because environments differ |
|
4 | + * touching caches changes state and will result in different test result second time |
|
5 | + * solutions: disabling/enabling, faking&mocking or having one defined test environment |
|
6 | + */ |
|
7 | 7 | namespace N98\Magento\Command\Cache; |
8 | 8 | |
9 | 9 | use Symfony\Component\Console\Tester\CommandTester; |
@@ -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( |
@@ -10,17 +10,17 @@ |
||
10 | 10 | { |
11 | 11 | protected function configure() |
12 | 12 | { |
13 | - $this |
|
14 | - ->setName('testmodule:foo') |
|
15 | - ->setDescription('Test command registered in a module') |
|
16 | - ; |
|
13 | + $this |
|
14 | + ->setName('testmodule:foo') |
|
15 | + ->setDescription('Test command registered in a module') |
|
16 | + ; |
|
17 | 17 | } |
18 | 18 | |
19 | - /** |
|
20 | - * @param \Symfony\Component\Console\Input\InputInterface $input |
|
21 | - * @param \Symfony\Component\Console\Output\OutputInterface $output |
|
22 | - * @return int|void |
|
23 | - */ |
|
19 | + /** |
|
20 | + * @param \Symfony\Component\Console\Input\InputInterface $input |
|
21 | + * @param \Symfony\Component\Console\Output\OutputInterface $output |
|
22 | + * @return int|void |
|
23 | + */ |
|
24 | 24 | protected function execute(InputInterface $input, OutputInterface $output) |
25 | 25 | { |
26 | 26 | $this->detectMagento($output); |
@@ -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 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @see http://ocramius.github.io/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/ |
|
4 | - */ |
|
3 | + * @see http://ocramius.github.io/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/ |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | // coverage-checker.php |
7 | 7 | $inputFile = $argv[1]; |