GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — develop ( 9cdac9...91f3a9 )
by Stuart
06:15
created
src/php/DataSift/Storyplayer/PlayerLib/Story/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      *
60 60
      * @var Story
61 61
      */
62
-    public $story           = null;
62
+    public $story = null;
63 63
 
64 64
     /**
65 65
      * is this a story where a failure is the expected outcome?
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/PlayerLib/StoryTeller.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -962,7 +962,7 @@  discard block
 block discarded – undo
962 962
             // we do not need to wrap these in a TRY/CATCH block,
963 963
             // as we are already running inside one of the story's
964 964
             // phases
965
-            foreach ($callbacks as $callback){
965
+            foreach ($callbacks as $callback) {
966 966
                 call_user_func($callback, $this);
967 967
             }
968 968
         }
@@ -1001,7 +1001,7 @@  discard block
 block discarded – undo
1001 1001
             // we do not need to wrap these in a TRY/CATCH block,
1002 1002
             // as we are already running inside one of the story's
1003 1003
             // phases
1004
-            foreach ($callbacks as $callback){
1004
+            foreach ($callbacks as $callback) {
1005 1005
                 call_user_func($callback, $this);
1006 1006
             }
1007 1007
         }
Please login to merge, or discard this patch.
Braces   +20 added lines, -14 removed lines patch added patch discarded remove patch
@@ -281,7 +281,8 @@  discard block
 block discarded – undo
281 281
      *
282 282
      * @return Action_Logger
283 283
      */
284
-    public function getActionLogger() {
284
+    public function getActionLogger()
285
+    {
285 286
         return $this->actionLogger;
286 287
     }
287 288
 
@@ -291,7 +292,8 @@  discard block
 block discarded – undo
291 292
      * @param Action_Logger $actionLogger
292 293
      * @return StoryTeller
293 294
      */
294
-    public function setActionLogger(Action_Logger $actionLogger) {
295
+    public function setActionLogger(Action_Logger $actionLogger)
296
+    {
295 297
         $this->actionLogger = $actionLogger;
296 298
 
297 299
         return $this;
@@ -302,7 +304,8 @@  discard block
 block discarded – undo
302 304
      *
303 305
      * @return Story_Checkpoint
304 306
      */
305
-    public function getCheckpoint() {
307
+    public function getCheckpoint()
308
+    {
306 309
         return $this->checkpoint;
307 310
     }
308 311
 
@@ -312,7 +315,8 @@  discard block
 block discarded – undo
312 315
      * @param Story_Checkpoint $checkpoint
313 316
      * @return StoryTeller
314 317
      */
315
-    public function setCheckpoint(Story_Checkpoint $checkpoint) {
318
+    public function setCheckpoint(Story_Checkpoint $checkpoint)
319
+    {
316 320
         $this->checkpoint = $checkpoint;
317 321
 
318 322
         return $this;
@@ -323,7 +327,8 @@  discard block
 block discarded – undo
323 327
      *
324 328
      * @return PageContext
325 329
      */
326
-    public function getPageContext() {
330
+    public function getPageContext()
331
+    {
327 332
         return $this->pageContext;
328 333
     }
329 334
 
@@ -333,7 +338,8 @@  discard block
 block discarded – undo
333 338
      * @param PageContext $pageContext
334 339
      * @return StoryTeller
335 340
      */
336
-    public function setPageContext(PageContext $pageContext) {
341
+    public function setPageContext(PageContext $pageContext)
342
+    {
337 343
         $this->pageContext = $pageContext;
338 344
 
339 345
         return $this;
@@ -393,7 +399,8 @@  discard block
 block discarded – undo
393 399
      *
394 400
      * @return RuntimeConfigManager
395 401
      */
396
-    public function getRuntimeConfigManager() {
402
+    public function getRuntimeConfigManager()
403
+    {
397 404
         return $this->runtimeConfigManager;
398 405
     }
399 406
 
@@ -403,7 +410,8 @@  discard block
 block discarded – undo
403 410
      * @param RuntimeConfigManager $runtimeConfigManager
404 411
      * @return StoryTeller
405 412
      */
406
-    public function setRuntimeConfigManager(RuntimeConfigManager $runtimeConfigManager) {
413
+    public function setRuntimeConfigManager(RuntimeConfigManager $runtimeConfigManager)
414
+    {
407 415
         $this->runtimeConfigManager = $runtimeConfigManager;
408 416
 
409 417
         return $this;
@@ -906,13 +914,11 @@  discard block
 block discarded – undo
906 914
      */
907 915
     public function getRunningDevice()
908 916
     {
909
-        if (!is_object($this->deviceAdapter))
910
-        {
917
+        if (!is_object($this->deviceAdapter)) {
911 918
             $this->startDevice();
912 919
         }
913 920
 
914
-        if (!is_object($this->deviceAdapter))
915
-        {
921
+        if (!is_object($this->deviceAdapter)) {
916 922
             throw new E5xx_CannotStartDevice();
917 923
         }
918 924
 
@@ -962,7 +968,7 @@  discard block
 block discarded – undo
962 968
             // we do not need to wrap these in a TRY/CATCH block,
963 969
             // as we are already running inside one of the story's
964 970
             // phases
965
-            foreach ($callbacks as $callback){
971
+            foreach ($callbacks as $callback) {
966 972
                 call_user_func($callback, $this);
967 973
             }
968 974
         }
@@ -1001,7 +1007,7 @@  discard block
 block discarded – undo
1001 1007
             // we do not need to wrap these in a TRY/CATCH block,
1002 1008
             // as we are already running inside one of the story's
1003 1009
             // phases
1004
-            foreach ($callbacks as $callback){
1010
+            foreach ($callbacks as $callback) {
1005 1011
                 call_user_func($callback, $this);
1006 1012
             }
1007 1013
         }
Please login to merge, or discard this patch.
Doc Comments   +11 added lines, -2 removed lines patch added patch discarded remove patch
@@ -429,6 +429,7 @@  discard block
 block discarded – undo
429 429
     }
430 430
 
431 431
     /**
432
+     * @param Prose_Loader $proseLoader
432 433
      * @return void
433 434
      */
434 435
     public function setProseLoader($proseLoader)
@@ -445,6 +446,9 @@  discard block
 block discarded – undo
445 446
         return $this->phaseLoader;
446 447
     }
447 448
 
449
+    /**
450
+     * @param Phase_Loader $phaseLoader
451
+     */
448 452
     public function setPhaseLoader($phaseLoader)
449 453
     {
450 454
         $this->phaseLoader = $phaseLoader;
@@ -469,6 +473,9 @@  discard block
 block discarded – undo
469 473
         $this->output = $output;
470 474
     }
471 475
 
476
+    /**
477
+     * @param \DataSift\Storyplayer\OutputLib\DataFormatter $dataFormatter
478
+     */
472 479
     public function setDataFormatter($dataFormatter)
473 480
     {
474 481
         $this->dataFormatter = $dataFormatter;
@@ -501,6 +508,7 @@  discard block
 block discarded – undo
501 508
     }
502 509
 
503 510
     /**
511
+     * @param \DataSift\Storyplayer\ConfigLib\ActiveConfig $config
504 512
      * @return void
505 513
      */
506 514
     public function setConfig($config)
@@ -509,7 +517,7 @@  discard block
 block discarded – undo
509 517
     }
510 518
 
511 519
     /**
512
-     * @return object
520
+     * @return \DataSift\Storyplayer\TestEnvironmentsLib\TestEnvironmentRuntimeConfig
513 521
      */
514 522
     public function getRuntimeConfig()
515 523
     {
@@ -517,6 +525,7 @@  discard block
 block discarded – undo
517 525
     }
518 526
 
519 527
     /**
528
+     * @param \DataSift\Storyplayer\TestEnvironmentsLib\TestEnvironmentRuntimeConfig $runtimeConfig
520 529
      * @return void
521 530
      */
522 531
     public function setRuntimeConfig($runtimeConfig)
@@ -764,7 +773,7 @@  discard block
 block discarded – undo
764 773
      *
765 774
      * @param  string $methodName
766 775
      * @param  array  $methodArgs
767
-     * @return mixed
776
+     * @return \Prose\Prose
768 777
      */
769 778
     public function __call($methodName, $methodArgs)
770 779
     {
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/PlayerLib/Tale/Loader.php 1 patch
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -58,70 +58,70 @@
 block discarded – undo
58 58
  */
59 59
 class Tale_Loader
60 60
 {
61
-	/**
62
-	 * singleton - do not instantiate
63
-	 * @codeCoverageIgnore
64
-	 */
65
-	protected function __construct()
66
-	{
67
-		// do nothing
68
-	}
61
+    /**
62
+     * singleton - do not instantiate
63
+     * @codeCoverageIgnore
64
+     */
65
+    protected function __construct()
66
+    {
67
+        // do nothing
68
+    }
69 69
 
70
-	/**
71
-	 * load a story, throwing exceptions if problems are detected
72
-	 *
73
-	 * @param  string $filename
74
-	 *         path to the PHP file containing the story
75
-	 * @return Story
76
-	 *         the story object
77
-	 */
78
-	static public function loadTale($filename)
79
-	{
80
-		if (!file_exists($filename)) {
81
-			throw new E5xx_InvalidStoryListFile("Cannot find file '{$filename}' to load");
82
-		}
70
+    /**
71
+     * load a story, throwing exceptions if problems are detected
72
+     *
73
+     * @param  string $filename
74
+     *         path to the PHP file containing the story
75
+     * @return Story
76
+     *         the story object
77
+     */
78
+    static public function loadTale($filename)
79
+    {
80
+        if (!file_exists($filename)) {
81
+            throw new E5xx_InvalidStoryListFile("Cannot find file '{$filename}' to load");
82
+        }
83 83
 
84
-		// load the contents
85
-		$contents = file_get_contents($filename);
84
+        // load the contents
85
+        $contents = file_get_contents($filename);
86 86
 
87
-		// does it decode?
88
-		$tale = json_decode($contents);
89
-		if (!$tale) {
90
-			throw new E4xx_InvalidStoryListFile("Story list '{$filename}' does not contain valid JSON");
91
-		}
87
+        // does it decode?
88
+        $tale = json_decode($contents);
89
+        if (!$tale) {
90
+            throw new E4xx_InvalidStoryListFile("Story list '{$filename}' does not contain valid JSON");
91
+        }
92 92
 
93
-		// does it have the elements we require?
94
-		if (!isset($tale->stories)) {
95
-			throw new E4xx_InvalidStoryListFile("Story list '{$filename}' does not contain a 'stories' element");
96
-		}
97
-		if (!is_array($tale->stories)) {
98
-			throw new E4xx_InvalidStoryListFile("The 'stories' element in the story list '{$filename}' must be an array");
99
-		}
100
-		if (count($tale->stories) == 0) {
101
-			throw new E4xx_InvalidStoryListFile("The 'stories' element in the story list '{$filename}' cannot be an empty array");
102
-		}
93
+        // does it have the elements we require?
94
+        if (!isset($tale->stories)) {
95
+            throw new E4xx_InvalidStoryListFile("Story list '{$filename}' does not contain a 'stories' element");
96
+        }
97
+        if (!is_array($tale->stories)) {
98
+            throw new E4xx_InvalidStoryListFile("The 'stories' element in the story list '{$filename}' must be an array");
99
+        }
100
+        if (count($tale->stories) == 0) {
101
+            throw new E4xx_InvalidStoryListFile("The 'stories' element in the story list '{$filename}' cannot be an empty array");
102
+        }
103 103
 
104
-		// our base directory to search from
105
-		$storiesBasedir = dirname($filename);
104
+        // our base directory to search from
105
+        $storiesBasedir = dirname($filename);
106 106
 
107
-		// do all of the stories in the list exist?
108
-		foreach ($tale->stories as $index => $storyFile) {
109
- 			$realStoryFile = $storiesBasedir . DIRECTORY_SEPARATOR . $storyFile;
110
-			if (file_exists($realStoryFile)) {
111
-				throw new E4xx_InvalidStoryListFile("Cannot find the story file '{$realStoryFile}' on disk");
112
-			}
113
-			$tale->stories[$index] = $realStoryFile;
114
-		}
107
+        // do all of the stories in the list exist?
108
+        foreach ($tale->stories as $index => $storyFile) {
109
+                $realStoryFile = $storiesBasedir . DIRECTORY_SEPARATOR . $storyFile;
110
+            if (file_exists($realStoryFile)) {
111
+                throw new E4xx_InvalidStoryListFile("Cannot find the story file '{$realStoryFile}' on disk");
112
+            }
113
+            $tale->stories[$index] = $realStoryFile;
114
+        }
115 115
 
116
-		// inject defaults for optional fields
117
-		if (!isset($tale->options)) {
118
-			$tale->options = new stdClass();
119
-		}
120
-		if (!isset($tale->options->reuseTestEnvironment)) {
121
-			$tale->options->reuseTestEnvironment = false;
122
-		}
116
+        // inject defaults for optional fields
117
+        if (!isset($tale->options)) {
118
+            $tale->options = new stdClass();
119
+        }
120
+        if (!isset($tale->options->reuseTestEnvironment)) {
121
+            $tale->options->reuseTestEnvironment = false;
122
+        }
123 123
 
124
-		// all done
125
-		return $tale;
126
-	}
124
+        // all done
125
+        return $tale;
126
+    }
127 127
 }
128 128
\ No newline at end of file
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/PlayerLib/TestEnvironment/Player.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@
 block discarded – undo
103 103
 
104 104
         // now we need to play whatever runs against this
105 105
         // test environment
106
-        foreach ($this->wrappedPlayers as $wrappedPlayer)
107
-        {
106
+        foreach ($this->wrappedPlayers as $wrappedPlayer) {
108 107
             // play the wrapped item
109 108
             //
110 109
             // this is normally a story
Please login to merge, or discard this patch.
DataSift/Storyplayer/ProvisioningLib/Provisioners/AnsibleProvisioner.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,8 +175,8 @@
 block discarded – undo
175 175
 
176 176
         // build the command for Ansible
177 177
         $command = 'ansible-playbook -i "' . $inventoryFile . '"'
178
-                 . ' "--private-key=' . $sshKeyFile . '"'
179
-                 . ' "--user=' . $sshUsername . '"';
178
+                    . ' "--private-key=' . $sshKeyFile . '"'
179
+                    . ' "--user=' . $sshUsername . '"';
180 180
 
181 181
         $command .= ' "' . $ansibleSettings->dir . DIRECTORY_SEPARATOR . $ansibleSettings->playbook . '"';
182 182
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             if (isset($machine->params)) {
87 87
                 $params = [];
88 88
                 foreach ($machine->params as $paramName => $paramValue) {
89
-                    $params[$paramName] = fromConfig()->get('hosts.' . $hostId . '.params.'.$paramName);
89
+                    $params[$paramName] = fromConfig()->get('hosts.' . $hostId . '.params.' . $paramName);
90 90
                 }
91 91
                 if (count($params)) {
92 92
                     usingProvisioningDefinition($provDef)->addParams($params)->toHost($hostId);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $rolesToHosts = array();
112 112
 
113 113
         // build up the list of roles
114
-        foreach($hosts as $hostId => $hostProps) {
114
+        foreach ($hosts as $hostId => $hostProps) {
115 115
             // what is the host's IP address?
116 116
             $ipAddress = fromHost($hostId)->getIpAddress();
117 117
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $sshKeyFile  = null;
155 155
 
156 156
         // now we need to write out the host files
157
-        foreach($hosts as $hostId => $hostProps) {
157
+        foreach ($hosts as $hostId => $hostProps) {
158 158
             // what is the host's IP address?
159 159
             $ipAddress   = fromHost($hostId)->getIpAddress();
160 160
             $sshUsername = fromHost($hostId)->getSshUsername();
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
         // does the target folder exist?
237 237
         $hostVarsFolder = dirname($filename);
238 238
         if (!file_exists($hostVarsFolder)) {
239
-            mkdir ($hostVarsFolder);
239
+            mkdir($hostVarsFolder);
240 240
         }
241 241
 
242 242
         // write the data
Please login to merge, or discard this patch.
DataSift/Storyplayer/ProvisioningLib/Provisioners/DsbuildProvisioner.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             if (isset($machine->params)) {
89 89
                 $params = [];
90 90
                 foreach ($machine->params as $paramName => $paramValue) {
91
-                    $params[$paramName]  = fromConfig()->get('hosts.' . $hostId . '.params.'.$paramName);
91
+                    $params[$paramName] = fromConfig()->get('hosts.' . $hostId . '.params.' . $paramName);
92 92
                 }
93 93
                 if (count($params)) {
94 94
                     usingProvisioningDefinition($provDef)->addParams($params)->toHost($hostId);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         $dsbuildParams = new BaseObject;
111 111
 
112 112
         // build up the list of settings to write out
113
-        foreach($hosts as $hostId => $hostProps) {
113
+        foreach ($hosts as $hostId => $hostProps) {
114 114
             // what is the host's IP address?
115 115
             $ipAddress = fromHost($hostId)->getIpAddress();
116 116
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         // at this point, we are ready to attempt provisioning
133 133
         //
134 134
         // provision each host in the order that they're listed
135
-        foreach($hosts as $hostId => $hostProps) {
135
+        foreach ($hosts as $hostId => $hostProps) {
136 136
             // which dsbuildfile are we going to run?
137 137
             $hostDir = fromHost($hostId)->getLocalFolder();
138 138
             $dsbuildFilename = $this->getDsbuildFilename($hostDir, $provConfig, $hostId);
@@ -148,11 +148,11 @@  discard block
 block discarded – undo
148 148
             // copy the dsbuildparams files to the target machine using scp
149 149
             // NOTE: the "vagrant rsync" command seems not working with some Vagrant provisioners (e.g. OpenStack)
150 150
             $command = 'scp'
151
-                .' '.$dsbuildParams->{'hosts_'.$hostId.'_scpOptions_0'}
152
-                .' '.$dsbuildParams->{'hosts_'.$hostId.'_scpOptions_1'}
151
+                .' ' . $dsbuildParams->{'hosts_' . $hostId . '_scpOptions_0'}
152
+                .' ' . $dsbuildParams->{'hosts_' . $hostId . '_scpOptions_1'}
153 153
                 .' dsbuildparams.*'
154
-                .' '.$dsbuildParams->{'hosts_'.$hostId.'_sshUsername'}
155
-                .'@'.$dsbuildParams->{'hosts_'.$hostId.'_ipAddress'}
154
+                .' ' . $dsbuildParams->{'hosts_' . $hostId . '_sshUsername'}
155
+                .'@' . $dsbuildParams->{'hosts_' . $hostId . '_ipAddress'}
156 156
                 .':/vagrant/';
157 157
             $result = $commandRunner->runSilently($command);
158 158
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      * @return array
230 230
      *         the flattened data
231 231
      */
232
-    protected function flattenData($inputData, $prefix="")
232
+    protected function flattenData($inputData, $prefix = "")
233 233
     {
234 234
         $retval = [];
235 235
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -233,8 +233,7 @@
 block discarded – undo
233 233
     {
234 234
         $retval = [];
235 235
 
236
-        foreach ($inputData as $name => $dataToFlatten)
237
-        {
236
+        foreach ($inputData as $name => $dataToFlatten) {
238 237
             if (is_object($dataToFlatten) || is_array($dataToFlatten)) {
239 238
                 $retval = array_merge($retval, $this->flattenData($dataToFlatten, $prefix . $name . "_"));
240 239
             }
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/Reports/JUnitReport.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -130,40 +130,40 @@  discard block
 block discarded – undo
130 130
     public function endStoryplayer($duration)
131 131
     {
132 132
         // generate the XML
133
-        $junitxml = '<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL;
133
+        $junitxml = '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL;
134 134
         $junitxml .= '<testsuite'
135
-            .' id="'.$this->testsuite['id'].'"'
136
-            .' name="'.$this->testsuite['name'].'"'
137
-            .' tests="'.$this->testsuite['tests'].'"'
138
-            .' disabled="'.$this->testsuite['disabled'].'"'
139
-            .' errors="'.$this->testsuite['errors'].'"'
140
-            .' failures="'.$this->testsuite['failures'].'"'
141
-            .' skipped="'.$this->testsuite['skipped'].'"'
142
-            .' time="'.round($duration, 6).'"'
143
-            .' timestamp="'.$this->testsuite['timestamp'].'">'.PHP_EOL;
135
+            .' id="' . $this->testsuite['id'] . '"'
136
+            .' name="' . $this->testsuite['name'] . '"'
137
+            .' tests="' . $this->testsuite['tests'] . '"'
138
+            .' disabled="' . $this->testsuite['disabled'] . '"'
139
+            .' errors="' . $this->testsuite['errors'] . '"'
140
+            .' failures="' . $this->testsuite['failures'] . '"'
141
+            .' skipped="' . $this->testsuite['skipped'] . '"'
142
+            .' time="' . round($duration, 6) . '"'
143
+            .' timestamp="' . $this->testsuite['timestamp'] . '">' . PHP_EOL;
144 144
 
145 145
         foreach ($this->testsuite['testcase'] as $testcase) {
146
-            $junitxml .= "\t".'<testcase'
147
-                .' name="'.$testcase['name'].'"'
148
-                .' assertions="'.$testcase['assertions'].'"'
149
-                .' classname="'.$testcase['classname'].'"'
150
-                .' status="'.$testcase['status'].'"'
151
-                .' time="'.round($testcase['time'], 6).'">'.PHP_EOL;
146
+            $junitxml .= "\t" . '<testcase'
147
+                .' name="' . $testcase['name'] . '"'
148
+                .' assertions="' . $testcase['assertions'] . '"'
149
+                .' classname="' . $testcase['classname'] . '"'
150
+                .' status="' . $testcase['status'] . '"'
151
+                .' time="' . round($testcase['time'], 6) . '">' . PHP_EOL;
152 152
 
153 153
             if ($testcase['skipped']) {
154
-                $junitxml .= "\t\t".'<skipped/>'.PHP_EOL;
154
+                $junitxml .= "\t\t" . '<skipped/>' . PHP_EOL;
155 155
             }
156 156
             if ($testcase['failure']) {
157
-                $junitxml .= "\t\t".'<failure/>'.PHP_EOL;
157
+                $junitxml .= "\t\t" . '<failure/>' . PHP_EOL;
158 158
             }
159 159
             if ($testcase['error']) {
160
-                $junitxml .= "\t\t".'<error/>'.PHP_EOL;
160
+                $junitxml .= "\t\t" . '<error/>' . PHP_EOL;
161 161
             }
162 162
 
163
-            $junitxml .= "\t".'</testcase>'.PHP_EOL;
163
+            $junitxml .= "\t" . '</testcase>' . PHP_EOL;
164 164
         }
165 165
 
166
-        $junitxml .= '</testsuite>'.PHP_EOL;
166
+        $junitxml .= '</testsuite>' . PHP_EOL;
167 167
 
168 168
         file_put_contents($this->filename, $junitxml);
169 169
     }
@@ -180,10 +180,10 @@  discard block
 block discarded – undo
180 180
         $name = htmlspecialchars($name, ENT_QUOTES | ENT_XML1, 'UTF-8');
181 181
         $this->testcase = array(
182 182
             'name'       => $name,
183
-            'assertions' => 0,     // number of assertions in the test case
183
+            'assertions' => 0, // number of assertions in the test case
184 184
             'classname'  => $name, // full class name for the class the test method is in
185
-            'status'     => '',    // result status string
186
-            'time'       => 0,     // time taken (in seconds) to execute the test
185
+            'status'     => '', // result status string
186
+            'time'       => 0, // time taken (in seconds) to execute the test
187 187
             'skipped'    => false,
188 188
             'failure'    => false,
189 189
             'error'      => false,
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/Reports/JsonReport.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,8 @@
 block discarded – undo
100 100
         $this->silentActivity = true;
101 101
     }
102 102
 
103
-    public function __construct($args) {
103
+    public function __construct($args)
104
+    {
104 105
         if (isset($args['filename'])) {
105 106
             $this->filename = $args['filename'];
106 107
         }
Please login to merge, or discard this patch.
php/DataSift/Storyplayer/TestEnvironmentsLib/HardCodedTestEnvironments.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,14 +71,14 @@
 block discarded – undo
71 71
     {
72 72
         // defaults for the local computer
73 73
         $rolesConfig = new BaseObject;
74
-        $rolesConfig->roles = [ '*' ];
74
+        $rolesConfig->roles = ['*'];
75 75
 
76 76
         $config = &$this->newConfig('localhost')->getConfig();
77 77
         $config->groups = new BaseObject;
78 78
         $config->groups->{'0'} = new BaseObject;
79 79
         $config->groups->{'0'}->type = "Blackboxes";
80 80
         $config->groups->{'0'}->details = new BaseObject;
81
-        $config->groups->{'0'}->details->machines = [ $rolesConfig ];
81
+        $config->groups->{'0'}->details->machines = [$rolesConfig];
82 82
 
83 83
         // all done
84 84
     }
Please login to merge, or discard this patch.