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 ( b6562d...080777 )
by Stuart
08:15
created
src/php/DataSift/Storyplayer/Cli/ListHostsTable/Command.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $this->setLongDescription(
68 68
             "Use this command to get a list of all of the machines (physical or VM)"
69 69
             . " that are currently listed in Storyplayer's hoststable."
70
-            .PHP_EOL .PHP_EOL
70
+            .PHP_EOL . PHP_EOL
71 71
             ."This can help you to identify VMs that have been left running after "
72 72
             ."a test has completed."
73 73
             .PHP_EOL
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/Cli/ListProcesses/Switch.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,10 +67,10 @@
 block discarded – undo
67 67
         $this->setLongDesc(
68 68
             "Use this command to get a list of all of the processes that Storyplayer "
69 69
             ."has started in the background."
70
-            .PHP_EOL .PHP_EOL
70
+            .PHP_EOL . PHP_EOL
71 71
             ."This can help you to identify processes that have been left running after "
72 72
             ."a test has completed."
73
-            .PHP_EOL .PHP_EOL
73
+            .PHP_EOL . PHP_EOL
74 74
             ."You can use the '--kill-processes' switch to stop these processes."
75 75
         );
76 76
 
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/Cli/PlayStory/Command.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
         // do we have any parameters at this point?
360 360
         if (empty($cliParams)) {
361 361
             $msg = "no stories listed on the command-line." . PHP_EOL . PHP_EOL
362
-                 . "see 'storyplayer help play-story' for required params" . PHP_EOL;
362
+                    . "see 'storyplayer help play-story' for required params" . PHP_EOL;
363 363
             $this->output->logCliError($msg);
364 364
             exit(1);
365 365
         }
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
         // did we find anything?
439 439
         if (!count($filenames)) {
440 440
             $msg = "no stories found in '{$folder}'" . PHP_EOL . PHP_EOL
441
-                 . "do your stories' filenames end in 'Story.php'?";
441
+                    . "do your stories' filenames end in 'Story.php'?";
442 442
             $this->output->logCliError($msg);
443 443
             exit(1);
444 444
         }
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
         // do we skip destroying the test environment?
495 495
         if ($this->st->getPersistTestEnvironment()) {
496 496
             echo PHP_EOL . "* Warning: NOT destroying test environment" . PHP_EOL
497
-                 .         "           --reuse-target flag is set" . PHP_EOL;
497
+                    .         "           --reuse-target flag is set" . PHP_EOL;
498 498
         }
499 499
 
500 500
         // cleanup
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
         foreach ($engine->options->reports as $reportName => $reportFilename)
318 318
         {
319 319
             try {
320
-                $report = $injectables->reportLoader->loadReport($reportName, [ 'filename' => $reportFilename]);
320
+                $report = $injectables->reportLoader->loadReport($reportName, ['filename' => $reportFilename]);
321 321
             }
322 322
             catch (E4xx_NoSuchReport $e) {
323 323
                 $injectables->output->logCliError("no such report '{$reportName}'");
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
 
342 342
         // setup signal handling
343 343
         pcntl_signal(SIGTERM, array($this, 'sigtermHandler'));
344
-        pcntl_signal(SIGINT , array($this, 'sigtermHandler'));
344
+        pcntl_signal(SIGINT, array($this, 'sigtermHandler'));
345 345
     }
346 346
 
347 347
     /**
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -261,8 +261,7 @@  discard block
 block discarded – undo
261 261
         // $this->playerList contains one or more things to play
262 262
         //
263 263
         // let's play each of them in order
264
-        foreach ($this->playerList as $player)
265
-        {
264
+        foreach ($this->playerList as $player) {
266 265
             // execute each player in turn
267 266
             //
268 267
             // they may also have their own list of nested players
@@ -314,8 +313,7 @@  discard block
 block discarded – undo
314 313
 
315 314
         // setup the reports that have been requested
316 315
         $injectables->initReportLoaderSupport($injectables);
317
-        foreach ($engine->options->reports as $reportName => $reportFilename)
318
-        {
316
+        foreach ($engine->options->reports as $reportName => $reportFilename) {
319 317
             try {
320 318
                 $report = $injectables->reportLoader->loadReport($reportName, [ 'filename' => $reportFilename]);
321 319
             }
@@ -532,8 +530,7 @@  discard block
 block discarded – undo
532 530
         echo "FINAL RESULTS\n";
533 531
         echo "\n";
534 532
 
535
-        foreach ($storyResults as $result)
536
-        {
533
+        foreach ($storyResults as $result) {
537 534
             echo Story_Player::$outcomeToText[$result->resultCode] . " :: " . $result->story->getName() . "\n";
538 535
         }
539 536
     }
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/Cli/Script/Command.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
 
232 232
         // setup signal handling
233 233
         pcntl_signal(SIGTERM, array($this, 'sigtermHandler'));
234
-        pcntl_signal(SIGINT , array($this, 'sigtermHandler'));
234
+        pcntl_signal(SIGINT, array($this, 'sigtermHandler'));
235 235
     }
236 236
 
237 237
     /**
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,8 +194,7 @@
 block discarded – undo
194 194
         // $this->scriptList contains one or more things to run
195 195
         //
196 196
         // let's play each of them in order
197
-        foreach ($this->scriptList as $player)
198
-        {
197
+        foreach ($this->scriptList as $player) {
199 198
             // play the story(ies)
200 199
             $player->play($st, $injectables);
201 200
         }
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/Cli/ShowTestEnvironment/Command.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $this->setLongDescription(
68 68
             "Use this command to see what Storyplayer will use as the default "
69 69
             ."environment to test against."
70
-            .PHP_EOL.PHP_EOL
70
+            .PHP_EOL . PHP_EOL
71 71
             ."This command mostly exists to assist tab-completion scripts for UNIX shells."
72 72
         );
73 73
     }
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/Cli/StaticConfigManager.php 2 patches
Indentation   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -59,87 +59,87 @@
 block discarded – undo
59 59
  */
60 60
 class StaticConfigManager extends ConfigManagerBase
61 61
 {
62
-	const USER_DOTFILE = 'storyplayer.json';
62
+    const USER_DOTFILE = 'storyplayer.json';
63 63
 
64
-	/**
65
-	 * load the default config file
66
-	 *
67
-	 * @param StaticConfig $config
68
-	 * @return void
69
-	 */
70
-	public function loadDefaultConfig($config, $defaultConfigFilename)
71
-	{
72
-		// load the default config file
73
-		$this->configHelper->loadConfigFile($config, $defaultConfigFilename);
74
-	}
64
+    /**
65
+     * load the default config file
66
+     *
67
+     * @param StaticConfig $config
68
+     * @return void
69
+     */
70
+    public function loadDefaultConfig($config, $defaultConfigFilename)
71
+    {
72
+        // load the default config file
73
+        $this->configHelper->loadConfigFile($config, $defaultConfigFilename);
74
+    }
75 75
 
76
-	/**
77
-	 * @param  StaticConfig $config
78
-	 * @return void
79
-	 */
80
-	public function loadUserConfig($config)
81
-	{
82
-		try {
83
-			// We start with an empty config
84
-			$this->configHelper->loadDotFileConfig($config, self::APP_NAME, self::USER_DOTFILE);
85
-		}
86
-		catch (E4xx_ConfigFileNotFound $e) {
87
-			// we don't care - user configs are optional
88
-		}
89
-		// all done
90
-	}
76
+    /**
77
+     * @param  StaticConfig $config
78
+     * @return void
79
+     */
80
+    public function loadUserConfig($config)
81
+    {
82
+        try {
83
+            // We start with an empty config
84
+            $this->configHelper->loadDotFileConfig($config, self::APP_NAME, self::USER_DOTFILE);
85
+        }
86
+        catch (E4xx_ConfigFileNotFound $e) {
87
+            // we don't care - user configs are optional
88
+        }
89
+        // all done
90
+    }
91 91
 
92
-	/**
93
-	 *
94
-	 * @return array<string>
95
-	 */
96
-	public function getListOfConfigFiles($dirs)
97
-	{
98
-		// do we have a credible search list?
99
-		if (!is_array($dirs)) {
100
-			// fraid not
101
-			return [];
102
-		}
92
+    /**
93
+     *
94
+     * @return array<string>
95
+     */
96
+    public function getListOfConfigFiles($dirs)
97
+    {
98
+        // do we have a credible search list?
99
+        if (!is_array($dirs)) {
100
+            // fraid not
101
+            return [];
102
+        }
103 103
 
104
-		$return = [];
105
-		foreach ($dirs as $dirToSearch)
106
-		{
107
-			// find JSON config files
108
-			$files = $this->configHelper->getListOfConfigFilesIn($dirToSearch, 'json');
109
-			foreach ($files as $filename) {
110
-				$return[basename($filename, '.json')] = $filename;
111
-			}
112
-		}
104
+        $return = [];
105
+        foreach ($dirs as $dirToSearch)
106
+        {
107
+            // find JSON config files
108
+            $files = $this->configHelper->getListOfConfigFilesIn($dirToSearch, 'json');
109
+            foreach ($files as $filename) {
110
+                $return[basename($filename, '.json')] = $filename;
111
+            }
112
+        }
113 113
 
114
-		// all done
115
-		return $return;
116
-	}
114
+        // all done
115
+        return $return;
116
+    }
117 117
 
118
-	public function loadConfigFilesFrom($dirs)
119
-	{
120
-		// our list of loaded config files
121
-		$return = [];
118
+    public function loadConfigFilesFrom($dirs)
119
+    {
120
+        // our list of loaded config files
121
+        $return = [];
122 122
 
123
-		// the files to load
124
-		$filenames = $this->getListOfConfigFiles($dirs);
123
+        // the files to load
124
+        $filenames = $this->getListOfConfigFiles($dirs);
125 125
 
126
-		// load the files
127
-		foreach ($filenames as $filename)
128
-		{
129
-			$config = new BaseObject();
130
-			$this->configHelper->loadConfigFile($config, $filename);
131
-			$return[basename($filename, '.json')] = $config;
132
-		}
126
+        // load the files
127
+        foreach ($filenames as $filename)
128
+        {
129
+            $config = new BaseObject();
130
+            $this->configHelper->loadConfigFile($config, $filename);
131
+            $return[basename($filename, '.json')] = $config;
132
+        }
133 133
 
134
-		// all done
135
-		return $return;
136
-	}
134
+        // all done
135
+        return $return;
136
+    }
137 137
 
138
-	public function loadConfigFile($filename)
139
-	{
140
-		$config = new BaseObject();
141
-		$this->configHelper->loadConfigFile($config, $filename);
138
+    public function loadConfigFile($filename)
139
+    {
140
+        $config = new BaseObject();
141
+        $this->configHelper->loadConfigFile($config, $filename);
142 142
 
143
-		return $config;
144
-	}
143
+        return $config;
144
+    }
145 145
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -102,8 +102,7 @@  discard block
 block discarded – undo
102 102
 		}
103 103
 
104 104
 		$return = [];
105
-		foreach ($dirs as $dirToSearch)
106
-		{
105
+		foreach ($dirs as $dirToSearch) {
107 106
 			// find JSON config files
108 107
 			$files = $this->configHelper->getListOfConfigFilesIn($dirToSearch, 'json');
109 108
 			foreach ($files as $filename) {
@@ -124,8 +123,7 @@  discard block
 block discarded – undo
124 123
 		$filenames = $this->getListOfConfigFiles($dirs);
125 124
 
126 125
 		// load the files
127
-		foreach ($filenames as $filename)
128
-		{
126
+		foreach ($filenames as $filename) {
129 127
 			$config = new BaseObject();
130 128
 			$this->configHelper->loadConfigFile($config, $filename);
131 129
 			$return[basename($filename, '.json')] = $config;
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/CommandLib/CommandRunner.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
 
73 73
         // how we will talk with the command
74 74
         $pipesSpec = [
75
-            [ 'file', 'php://stdin', 'r' ],
76
-            [ 'pipe', 'w' ],
77
-            [ 'pipe', 'w' ]
75
+            ['file', 'php://stdin', 'r'],
76
+            ['pipe', 'w'],
77
+            ['pipe', 'w']
78 78
         ];
79 79
         $pipes = [];
80 80
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             // timeout has happened
111 111
             //
112 112
             // this makes sure that we do not burn CPU for the sake of it
113
-            $readable = [ $pipes[1], $pipes[2] ];
113
+            $readable = [$pipes[1], $pipes[2]];
114 114
             $writeable = $except = [];
115 115
             stream_select($readable, $writeable, $except, 1);
116 116
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,8 +104,7 @@
 block discarded – undo
104 104
         //
105 105
         // best thing to do is to keep reading from our pipes until
106 106
         // the pipes no longer exist
107
-        while (!feof($pipes[1]) || !feof($pipes[2]))
108
-        {
107
+        while (!feof($pipes[1]) || !feof($pipes[2])) {
109 108
             // block until there is something to read, or until the
110 109
             // timeout has happened
111 110
             //
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/CommandLib/LocalClient.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
152 152
         // build the full command
153 153
         //
154 154
         $fullCommand = 'cp '
155
-                     . "'" . $sourceFilename . "' "
156
-                     . "'" . $destFilename . "'";
155
+                        . "'" . $sourceFilename . "' "
156
+                        . "'" . $destFilename . "'";
157 157
 
158 158
         // run the command
159 159
         $commandRunner = $this->st->getNewCommandRunner();
@@ -182,8 +182,8 @@  discard block
 block discarded – undo
182 182
         // build the full command
183 183
         //
184 184
         $fullCommand = 'cp '
185
-                     . "'" . $sourceFilename . "' "
186
-                     . "'" . $destFilename . "'";
185
+                        . "'" . $sourceFilename . "' "
186
+                        . "'" . $destFilename . "'";
187 187
 
188 188
         // run the command
189 189
         $commandRunner = $this->st->getNewCommandRunner();
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/CommandLib/SshClient.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     {
159 159
         return [
160 160
             '-o StrictHostKeyChecking=no', // avoid prompting for accepting
161
-                                           // a host key
161
+                                            // a host key
162 162
         ];
163 163
     }
164 164
 
@@ -166,9 +166,9 @@  discard block
 block discarded – undo
166 166
     {
167 167
         return [
168 168
             '-o StrictHostKeyChecking=no', // avoid prompting for accepting
169
-                                           // a host key
169
+                                            // a host key
170 170
             '-n' // attach stdin to /dev/null - req to run SSH when not
171
-                 // connected to a terminal
171
+                    // connected to a terminal
172 172
         ];
173 173
     }
174 174
 
@@ -384,10 +384,10 @@  discard block
 block discarded – undo
384 384
         //    the command to run on the remote/guest OS
385 385
         //    (assumes the command will be globbed by the remote shell)
386 386
         $fullCommand = 'ssh '
387
-                     . ' ' . $this->getSshKeyForUse()
388
-                     . ' ' . $this->getSshOptionsForUse()
389
-                     . ' ' . $this->getSshUsername() . '@' . $this->getIpAddress()
390
-                     . ' "' . str_replace('"', '\"', $command) . '"';
387
+                        . ' ' . $this->getSshKeyForUse()
388
+                        . ' ' . $this->getSshOptionsForUse()
389
+                        . ' ' . $this->getSshUsername() . '@' . $this->getIpAddress()
390
+                        . ' "' . str_replace('"', '\"', $command) . '"';
391 391
 
392 392
         // run the command
393 393
         //$log->startStep("run command via SSH: {$fullCommand}");
@@ -435,11 +435,11 @@  discard block
 block discarded – undo
435 435
         // <additional SSH options>
436 436
         //    any other flags, such as -n to force non-interactive session
437 437
         $fullCommand = 'scp '
438
-                     . ' ' . $this->getSshKeyForUse()
439
-                     . ' ' . $this->getScpOptionsForUse()
440
-                     . ' "' . $this->getSshUsername() . '@' . $this->getIpAddress()
441
-                     . ':' . $sourceFilename . '"'
442
-                     . ' "' . $destFilename . '"';
438
+                        . ' ' . $this->getSshKeyForUse()
439
+                        . ' ' . $this->getScpOptionsForUse()
440
+                        . ' "' . $this->getSshUsername() . '@' . $this->getIpAddress()
441
+                        . ':' . $sourceFilename . '"'
442
+                        . ' "' . $destFilename . '"';
443 443
 
444 444
         // run the command
445 445
         $commandRunner = $this->st->getNewCommandRunner();
@@ -486,11 +486,11 @@  discard block
 block discarded – undo
486 486
         // <additional SSH options>
487 487
         //    any other flags, such as -n to force non-interactive session
488 488
         $fullCommand = 'scp '
489
-                     . ' ' . $this->getSshKeyForUse()
490
-                     . ' ' . $this->getScpOptionsForUse()
491
-                     . ' "' . $sourceFilename . '" '
492
-                     . ' "' . $this->getSshUsername() . '@' . $this->getIpAddress()
493
-                     . ':' . $destFilename . '"';
489
+                        . ' ' . $this->getSshKeyForUse()
490
+                        . ' ' . $this->getScpOptionsForUse()
491
+                        . ' "' . $sourceFilename . '" '
492
+                        . ' "' . $this->getSshUsername() . '@' . $this->getIpAddress()
493
+                        . ':' . $destFilename . '"';
494 494
 
495 495
         // run the command
496 496
         $commandRunner = $this->st->getNewCommandRunner();
Please login to merge, or discard this patch.