@@ -94,8 +94,7 @@ |
||
94 | 94 | $engine->options->defines = new stdClass; |
95 | 95 | } |
96 | 96 | |
97 | - foreach ($params as $param) |
|
98 | - { |
|
97 | + foreach ($params as $param) { |
|
99 | 98 | // split up the setting |
100 | 99 | $parts = explode('=', $param); |
101 | 100 | $key = array_shift($parts); |
@@ -70,14 +70,14 @@ |
||
70 | 70 | { |
71 | 71 | public function addSwitches(CliCommand $command, $injectables) |
72 | 72 | { |
73 | - $command->addSwitches([ |
|
74 | - new Feature_PersistDeviceSwitch, |
|
75 | - ]); |
|
73 | + $command->addSwitches([ |
|
74 | + new Feature_PersistDeviceSwitch, |
|
75 | + ]); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | public function initBeforeModulesAvailable(CliEngine $engine, CliCommand $command, Injectables $injectables) |
79 | 79 | { |
80 | - // no-op |
|
80 | + // no-op |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | public function initAfterModulesAvailable(StoryTeller $st, CliEngine $engine, Injectables $injectables) |
@@ -70,14 +70,14 @@ |
||
70 | 70 | { |
71 | 71 | public function addSwitches(CliCommand $command, $injectables) |
72 | 72 | { |
73 | - $command->addSwitches([ |
|
74 | - new Feature_PersistProcessesSwitch, |
|
75 | - ]); |
|
73 | + $command->addSwitches([ |
|
74 | + new Feature_PersistProcessesSwitch, |
|
75 | + ]); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | public function initBeforeModulesAvailable(CliEngine $engine, CliCommand $command, Injectables $injectables) |
79 | 79 | { |
80 | - // no-op |
|
80 | + // no-op |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | public function initAfterModulesAvailable(StoryTeller $st, CliEngine $engine, Injectables $injectables) |
@@ -70,21 +70,21 @@ |
||
70 | 70 | { |
71 | 71 | public function addSwitches(CliCommand $command, $injectables) |
72 | 72 | { |
73 | - $command->addSwitches([ |
|
74 | - new Feature_PersistTargetSwitch, |
|
75 | - new Feature_ReuseTargetSwitch |
|
76 | - ]); |
|
73 | + $command->addSwitches([ |
|
74 | + new Feature_PersistTargetSwitch, |
|
75 | + new Feature_ReuseTargetSwitch |
|
76 | + ]); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | public function initBeforeModulesAvailable(CliEngine $engine, CliCommand $command, Injectables $injectables) |
80 | 80 | { |
81 | - // no-op |
|
81 | + // no-op |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | public function initAfterModulesAvailable(StoryTeller $st, CliEngine $engine, Injectables $injectables) |
85 | 85 | { |
86 | - // shorthand |
|
87 | - $output = $injectables->output; |
|
86 | + // shorthand |
|
87 | + $output = $injectables->output; |
|
88 | 88 | |
89 | 89 | // are we keeping the test environment hanging around afterwards? |
90 | 90 | if (isset($engine->options->persistTarget) && $engine->options->persistTarget) |
@@ -87,8 +87,7 @@ discard block |
||
87 | 87 | $output = $injectables->output; |
88 | 88 | |
89 | 89 | // are we keeping the test environment hanging around afterwards? |
90 | - if (isset($engine->options->persistTarget) && $engine->options->persistTarget) |
|
91 | - { |
|
90 | + if (isset($engine->options->persistTarget) && $engine->options->persistTarget) { |
|
92 | 91 | $injectables->activeConfig->setData('storyplayer.phases.testEnvShutdown.TestEnvironmentDestruction', false); |
93 | 92 | $injectables->activeConfig->unsetData('storyplayer.phases.userAbort.TestEnvironmentDestruction'); |
94 | 93 | $st->setPersistTestEnvironment(); |
@@ -96,8 +95,7 @@ discard block |
||
96 | 95 | |
97 | 96 | // are we trying to use a test environment that has previously |
98 | 97 | // been persisted? |
99 | - if (isset($engine->options->reuseTarget) && $engine->options->reuseTarget) |
|
100 | - { |
|
98 | + if (isset($engine->options->reuseTarget) && $engine->options->reuseTarget) { |
|
101 | 99 | // does the target exist to be reused? |
102 | 100 | $output->setSilentMode(); |
103 | 101 | $hasTarget = $st->fromTargetsTable()->hasCurrentTestEnvironment(); |
@@ -128,8 +126,7 @@ discard block |
||
128 | 126 | // if we get here, then we do not need to create the test environment |
129 | 127 | $injectables->activeConfig->setData('storyplayer.phases.testEnvStartup.TestEnvironmentConstruction', false); |
130 | 128 | } |
131 | - else |
|
132 | - { |
|
129 | + else { |
|
133 | 130 | // do we already have this target? |
134 | 131 | // |
135 | 132 | // this can happen when the test environment was previously |
@@ -70,12 +70,12 @@ |
||
70 | 70 | { |
71 | 71 | public function addSwitches(CliCommand $command, $injectables) |
72 | 72 | { |
73 | - // no-op |
|
73 | + // no-op |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | public function initBeforeModulesAvailable(CliEngine $engine, CliCommand $command, Injectables $injectables) |
77 | 77 | { |
78 | - $injectables->initPhaseLoaderSupport($injectables); |
|
78 | + $injectables->initPhaseLoaderSupport($injectables); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | public function initAfterModulesAvailable(StoryTeller $st, CliEngine $engine, Injectables $injectables) |
@@ -70,12 +70,12 @@ |
||
70 | 70 | { |
71 | 71 | public function addSwitches(CliCommand $command, $injectables) |
72 | 72 | { |
73 | - // no-op |
|
73 | + // no-op |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | public function initBeforeModulesAvailable(CliEngine $engine, CliCommand $command, Injectables $injectables) |
77 | 77 | { |
78 | - $injectables->initProseLoaderSupport($injectables); |
|
78 | + $injectables->initProseLoaderSupport($injectables); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | public function initAfterModulesAvailable(StoryTeller $st, CliEngine $engine, Injectables $injectables) |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | { |
73 | 73 | $command->addSwitches([ |
74 | 74 | new Feature_SystemUnderTestConfigSwitch( |
75 | - $injectables->knownSystemsUnderTestList, |
|
76 | - $injectables->defaultSystemUnderTestName |
|
75 | + $injectables->knownSystemsUnderTestList, |
|
76 | + $injectables->defaultSystemUnderTestName |
|
77 | 77 | ) |
78 | 78 | ]); |
79 | 79 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | throw new E4xx_NoSystemUnderTestSpecified(); |
85 | 85 | } |
86 | 86 | |
87 | - $injectables->initActiveSystemUnderTestConfigSupport( |
|
87 | + $injectables->initActiveSystemUnderTestConfigSupport( |
|
88 | 88 | $engine->options->sutName, |
89 | 89 | $injectables |
90 | 90 | ); |
@@ -98,11 +98,11 @@ |
||
98 | 98 | |
99 | 99 | // what is the required argument? |
100 | 100 | $requiredArgMsg = "the system-under-test to test; one of:" . PHP_EOL . PHP_EOL; |
101 | - foreach($sutList->getEntryNames() as $sutName) { |
|
101 | + foreach ($sutList->getEntryNames() as $sutName) { |
|
102 | 102 | $requiredArgMsg .= "* $sutName" . PHP_EOL; |
103 | 103 | } |
104 | 104 | if ($defaultSutName) { |
105 | - $requiredArgMsg .= PHP_EOL. ' '; |
|
105 | + $requiredArgMsg .= PHP_EOL . ' '; |
|
106 | 106 | } |
107 | 107 | $this->setRequiredArg('<system-under-test>', $requiredArgMsg); |
108 | 108 | $this->setArgValidator(new Feature_SystemUnderTestConfigValidator($sutList, $defaultSutName)); |
@@ -72,15 +72,15 @@ |
||
72 | 72 | { |
73 | 73 | $command->addSwitches([ |
74 | 74 | new Feature_TestEnvironmentConfigSwitch( |
75 | - $injectables->knownTestEnvironmentsList, |
|
76 | - $injectables->defaultTestEnvironmentName |
|
75 | + $injectables->knownTestEnvironmentsList, |
|
76 | + $injectables->defaultTestEnvironmentName |
|
77 | 77 | ) |
78 | 78 | ]); |
79 | 79 | } |
80 | 80 | |
81 | 81 | public function initBeforeModulesAvailable(CliEngine $engine, CliCommand $command, Injectables $injectables) |
82 | 82 | { |
83 | - $injectables->initActiveTestEnvironmentConfigSupport( |
|
83 | + $injectables->initActiveTestEnvironmentConfigSupport( |
|
84 | 84 | $engine->options->testEnvironmentName, |
85 | 85 | $injectables |
86 | 86 | ); |