@@ -62,8 +62,8 @@ |
||
| 62 | 62 | // We mock the DialogHelper |
| 63 | 63 | $dialog = $this->createMock('N98\Util\Console\Helper\ParameterHelper', ['askPassword']); |
| 64 | 64 | $dialog->expects($this->at(0)) |
| 65 | - ->method('askPassword') |
|
| 66 | - ->willReturn(true); // The user confirms |
|
| 65 | + ->method('askPassword') |
|
| 66 | + ->willReturn(true); // The user confirms |
|
| 67 | 67 | |
| 68 | 68 | // We override the standard helper with our mock |
| 69 | 69 | $command->getHelperSet()->set($dialog, 'parameter'); |
@@ -118,22 +118,22 @@ |
||
| 118 | 118 | $areaCode, |
| 119 | 119 | function () use ($check, $results, $checkGroupClass) { |
| 120 | 120 | switch (true) { |
| 121 | - case $check instanceof Check\SimpleCheck: |
|
| 122 | - $check->check($results); |
|
| 123 | - break; |
|
| 124 | - |
|
| 125 | - case $check instanceof Check\StoreCheck: |
|
| 126 | - $this->checkStores($results, $checkGroupClass, $check); |
|
| 127 | - break; |
|
| 128 | - |
|
| 129 | - case $check instanceof Check\WebsiteCheck: |
|
| 130 | - $this->checkWebsites($results, $checkGroupClass, $check); |
|
| 131 | - break; |
|
| 132 | - |
|
| 133 | - default: |
|
| 134 | - throw new LogicException( |
|
| 135 | - sprintf('Unhandled check-class "%s"', $checkGroupClass) |
|
| 136 | - ); |
|
| 121 | + case $check instanceof Check\SimpleCheck: |
|
| 122 | + $check->check($results); |
|
| 123 | + break; |
|
| 124 | + |
|
| 125 | + case $check instanceof Check\StoreCheck: |
|
| 126 | + $this->checkStores($results, $checkGroupClass, $check); |
|
| 127 | + break; |
|
| 128 | + |
|
| 129 | + case $check instanceof Check\WebsiteCheck: |
|
| 130 | + $this->checkWebsites($results, $checkGroupClass, $check); |
|
| 131 | + break; |
|
| 132 | + |
|
| 133 | + default: |
|
| 134 | + throw new LogicException( |
|
| 135 | + sprintf('Unhandled check-class "%s"', $checkGroupClass) |
|
| 136 | + ); |
|
| 137 | 137 | } |
| 138 | 138 | } |
| 139 | 139 | ); |