@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use N98\Magento\Application; |
6 | 6 | use N98\Magento\Application\ApplicationAwareInterface; |
7 | -use N98\Magento\Application\Console\Event; |
|
8 | 7 | use N98\Magento\Application\Console\Events; |
9 | 8 | use Symfony\Component\Console\Event\ConsoleEvent; |
10 | 9 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
@@ -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 | ); |