@@ -61,11 +61,11 @@ |
||
61 | 61 | public function __construct() |
62 | 62 | { |
63 | 63 | parent::__construct( |
64 | - 'DataSift\Storyplayer\DeviceLib\DeviceConfig', |
|
65 | - [ |
|
66 | - "storyplayer/devices", |
|
67 | - ".storyplayer/devices", |
|
68 | - ], |
|
64 | + 'DataSift\Storyplayer\DeviceLib\DeviceConfig', |
|
65 | + [ |
|
66 | + "storyplayer/devices", |
|
67 | + ".storyplayer/devices", |
|
68 | + ], |
|
69 | 69 | [ |
70 | 70 | new ConfigFinder(".*\\.json") |
71 | 71 | ] |
@@ -66,10 +66,10 @@ |
||
66 | 66 | public function __construct($searchFolder = 'storyplayer/test-environments') |
67 | 67 | { |
68 | 68 | parent::__construct( |
69 | - 'DataSift\Storyplayer\TestEnvironmentsLib\TestEnvironmentRuntimeConfig', |
|
70 | - [ |
|
71 | - "storyplayer/test-environments" |
|
72 | - ], |
|
69 | + 'DataSift\Storyplayer\TestEnvironmentsLib\TestEnvironmentRuntimeConfig', |
|
70 | + [ |
|
71 | + "storyplayer/test-environments" |
|
72 | + ], |
|
73 | 73 | [ |
74 | 74 | new ConfigFinder("/runtime.json") |
75 | 75 | ] |
@@ -61,11 +61,11 @@ |
||
61 | 61 | public function __construct() |
62 | 62 | { |
63 | 63 | return parent::__construct( |
64 | - 'DataSift\Storyplayer\SystemsUnderTestLib\SystemUnderTestConfig', |
|
65 | - [ |
|
66 | - "storyplayer/systems-under-test", |
|
67 | - ".storyplayer/systems-under-test", |
|
68 | - ], |
|
64 | + 'DataSift\Storyplayer\SystemsUnderTestLib\SystemUnderTestConfig', |
|
65 | + [ |
|
66 | + "storyplayer/systems-under-test", |
|
67 | + ".storyplayer/systems-under-test", |
|
68 | + ], |
|
69 | 69 | [ |
70 | 70 | new ConfigFinder(".*\\.json") |
71 | 71 | ] |
@@ -58,11 +58,11 @@ |
||
58 | 58 | public function __construct($searchFolder = '.storyplayer/test-environments') |
59 | 59 | { |
60 | 60 | parent::__construct( |
61 | - 'DataSift\Storyplayer\TestEnvironmentsLib\TestEnvironmentConfig', |
|
62 | - [ |
|
63 | - "storyplayer/test-environments", |
|
64 | - ".storyplayer/test-environments" |
|
65 | - ], |
|
61 | + 'DataSift\Storyplayer\TestEnvironmentsLib\TestEnvironmentConfig', |
|
62 | + [ |
|
63 | + "storyplayer/test-environments", |
|
64 | + ".storyplayer/test-environments" |
|
65 | + ], |
|
66 | 66 | [ |
67 | 67 | new ConfigFinder(".*(?<!runtime)\\.json$"), |
68 | 68 | new ConfigFinder("main.php$") |
@@ -234,8 +234,7 @@ |
||
234 | 234 | // |
235 | 235 | // if this fails, we do not know why |
236 | 236 | $success = mkdir($configDir, 0700, true); |
237 | - if (!$success) |
|
238 | - { |
|
237 | + if (!$success) { |
|
239 | 238 | // cannot create it - bail out now |
240 | 239 | throw new E4xx_ConfigPathCannotBeCreated($configDir); |
241 | 240 | } |
@@ -63,9 +63,9 @@ |
||
63 | 63 | { |
64 | 64 | public $runningTestEnvironmentsList; |
65 | 65 | |
66 | - public function initRunningTestEnvironmentsListSupport() |
|
67 | - { |
|
66 | + public function initRunningTestEnvironmentsListSupport() |
|
67 | + { |
|
68 | 68 | $this->runningTestEnvironmentsList = new RunningTestEnvironmentsList(); |
69 | 69 | $this->runningTestEnvironmentsList->findConfigs(); |
70 | - } |
|
70 | + } |
|
71 | 71 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * @license http://www.opensource.org/licenses/bsd-license.php BSD License |
56 | 56 | * @link http://datasift.github.io/storyplayer |
57 | 57 | */ |
58 | -class FromArray extends Prose{ |
|
58 | +class FromArray extends Prose { |
|
59 | 59 | |
60 | 60 | /** |
61 | 61 | * Sets a value in an array for a . delimited path |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | public function setValueInArray(&$array, $path, $val) |
69 | 69 | { |
70 | 70 | $pathAsArray = fromString()->splitDotSeparatedPath($path); |
71 | - for ($i=&$array; $key=array_shift($pathAsArray); $i=&$i[$key]) { |
|
71 | + for ($i = &$array; $key = array_shift($pathAsArray); $i = &$i[$key]) { |
|
72 | 72 | if (!isset($i[$key])) { |
73 | 73 | $i[$key] = array(); |
74 | 74 | } |
@@ -55,7 +55,8 @@ |
||
55 | 55 | * @license http://www.opensource.org/licenses/bsd-license.php BSD License |
56 | 56 | * @link http://datasift.github.io/storyplayer |
57 | 57 | */ |
58 | -class FromArray extends Prose{ |
|
58 | +class FromArray extends Prose |
|
59 | +{ |
|
59 | 60 | |
60 | 61 | /** |
61 | 62 | * Sets a value in an array for a . delimited path |
@@ -55,7 +55,7 @@ |
||
55 | 55 | * @license http://www.opensource.org/licenses/bsd-license.php BSD License |
56 | 56 | * @link http://datasift.github.io/storyplayer |
57 | 57 | */ |
58 | -class FromString extends Prose{ |
|
58 | +class FromString extends Prose { |
|
59 | 59 | |
60 | 60 | /** |
61 | 61 | * Reduces a dot separated path e.g. fb.parent.context by one from |
@@ -55,7 +55,8 @@ discard block |
||
55 | 55 | * @license http://www.opensource.org/licenses/bsd-license.php BSD License |
56 | 56 | * @link http://datasift.github.io/storyplayer |
57 | 57 | */ |
58 | -class FromString extends Prose{ |
|
58 | +class FromString extends Prose |
|
59 | +{ |
|
59 | 60 | |
60 | 61 | /** |
61 | 62 | * Reduces a dot separated path e.g. fb.parent.context by one from |
@@ -71,9 +72,11 @@ discard block |
||
71 | 72 | $parts = $this->splitDotSeparatedPath($pathToReduce); |
72 | 73 | if (count($parts) == 0) { |
73 | 74 | return null; |
74 | - } else if (count($parts) == 1) { |
|
75 | + } |
|
76 | + else if (count($parts) == 1) { |
|
75 | 77 | return $parts[0]; |
76 | - } else { |
|
78 | + } |
|
79 | + else { |
|
77 | 80 | array_pop($parts); |
78 | 81 | return implode('.', $parts); |
79 | 82 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | $log = usingLog()->startAction("add current test environment to targets table"); |
73 | 73 | |
74 | 74 | // get the details to add |
75 | - $testEnvSig = $this->st->getTestEnvironmentSignature(); |
|
75 | + $testEnvSig = $this->st->getTestEnvironmentSignature(); |
|
76 | 76 | |
77 | 77 | // add it |
78 | 78 | usingRuntimeTable($this->entryKey)->addItem(FromTargetsTable::SIGNATURE_KEY, $testEnvSig); |