@@ -51,9 +51,10 @@ |
||
51 | 51 | $manager = $factory->getManager(); |
52 | 52 | $contexts = $factory->getContextFile()->getContexts(); |
53 | 53 | $context = $input->getArgument('context'); |
54 | - if ($context) |
|
55 | - if (in_array($context, $contexts)) { |
|
54 | + if ($context) { |
|
55 | + if (in_array($context, $contexts)) { |
|
56 | 56 | $contexts = [$context]; |
57 | + } |
|
57 | 58 | } else { |
58 | 59 | throw new InvalidContextException('Context does not exist: ' . $context); |
59 | 60 | } |