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 ( 264bc7...d8ccfa )
by Stuart
07:51
created
src/php/DataSift/Storyplayer/HostLib/Blackboxes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     public function createHost($groupDef, $provisioningVars = array())
89 89
     {
90 90
         // what are we doing?
91
-        $log =Log::usingLog()->startAction('register blackbox(es)');
91
+        $log = Log::usingLog()->startAction('register blackbox(es)');
92 92
 
93 93
         // make sure we like the provided details
94 94
         if (!isset($groupDef->details)) {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         if (empty($groupDef->details->machines)) {
101 101
             throw Exceptions::newActionFailedException(__METHOD__, "groupDef->details->machines cannot be empty");
102 102
         }
103
-        foreach($groupDef->details->machines as $hostId => $machine) {
103
+        foreach ($groupDef->details->machines as $hostId => $machine) {
104 104
             // TODO: it would be great to autodetect this one day
105 105
             if (!isset($machine->roles)) {
106 106
                 throw Exceptions::newActionFailedException(__METHOD__, "missing groupDef->details->machines['$hostId']->roles");
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         // if it is not, that is NOT our responsibility
122 122
 
123 123
         // store the details
124
-        foreach($groupDef->details->machines as $hostId => $machine)
124
+        foreach ($groupDef->details->machines as $hostId => $machine)
125 125
         {
126 126
             // we want all the details from the config file
127 127
             $vmDetails = clone $machine;
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     public function destroyHost($groupDef)
201 201
     {
202 202
         // what are we doing?
203
-        $log =Log::usingLog()->startAction("de-register blackbox(es)");
203
+        $log = Log::usingLog()->startAction("de-register blackbox(es)");
204 204
 
205 205
         // de-register all the hosts
206 206
         foreach ($groupDef->details->machines as $hostId => $machine)
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/HostLib/Ec2Vm.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
     public function createHost($vmDetails, $provisioningVars = array())
90 90
     {
91 91
         // what are we doing?
92
-        $log =Log::usingLog()->startAction('provision new VM');
92
+        $log = Log::usingLog()->startAction('provision new VM');
93 93
 
94 94
         // make sure we like the provided details
95
-        foreach(array('name', 'environment', 'osName', 'amiId', 'securityGroup') as $param) {
95
+        foreach (array('name', 'environment', 'osName', 'amiId', 'securityGroup') as $param) {
96 96
             if (!isset($vmDetails->$param)) {
97 97
                 throw Exceptions::newActionFailedException(__METHOD__, "missing vmDetails['{$param}']");
98 98
             }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                     $client->createTags(array(
133 133
                         'Resources' => array($response['Instances'][0]['InstanceId']),
134 134
                         'Tags' => array(
135
-                            array (
135
+                            array(
136 136
                                 'Key' => 'Name',
137 137
                                 'Value' => $vmDetails->ec2Name
138 138
                             )
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     public function startHost($vmDetails)
200 200
     {
201 201
         // what are we doing?
202
-        $log =Log::usingLog()->startAction("start VM");
202
+        $log = Log::usingLog()->startAction("start VM");
203 203
 
204 204
         // is the VM actually running?
205 205
         if ($this->isRunning($vmDetails)) {
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     public function stopHost($vmDetails)
265 265
     {
266 266
         // what are we doing?
267
-        $log =Log::usingLog()->startAction("stop VM");
267
+        $log = Log::usingLog()->startAction("stop VM");
268 268
 
269 269
         // is the VM actually running?
270 270
         if (!$this->isRunning($vmDetails)) {
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
     public function restartHost($vmDetails)
320 320
     {
321 321
         // what are we doing?
322
-        $log =Log::usingLog()->startAction("restart VM");
322
+        $log = Log::usingLog()->startAction("restart VM");
323 323
 
324 324
         // stop and start
325 325
         $this->stopHost($vmDetails);
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
     public function destroyHost($vmDetails)
351 351
     {
352 352
         // what are we doing?
353
-        $log =Log::usingLog()->startAction("destroy VM");
353
+        $log = Log::usingLog()->startAction("destroy VM");
354 354
 
355 355
         // get our Ec2 client from the SDK
356 356
         $client = fromAws()->getEc2Client();
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
     public function isRunning($vmDetails)
420 420
     {
421 421
         // what are we doing?
422
-        $log =Log::usingLog()->startAction("determine status of EC2 VM '{$vmDetails->hostId}'");
422
+        $log = Log::usingLog()->startAction("determine status of EC2 VM '{$vmDetails->hostId}'");
423 423
 
424 424
         // get the instance data
425 425
         $instance = fromEc2()->getInstance($vmDetails->hostId);
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
     public function determineIpAddress($vmDetails)
447 447
     {
448 448
         // what are we doing?
449
-        $log =Log::usingLog()->startAction("determine IP address of EC2 VM '{$vmDetails->hostId}'");
449
+        $log = Log::usingLog()->startAction("determine IP address of EC2 VM '{$vmDetails->hostId}'");
450 450
 
451 451
         // we need to get a fresh copy of the instance details
452 452
         $dnsName = fromEc2Instance($vmDetails->hostId)->getPublicDnsName();
Please login to merge, or discard this patch.