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/DefinitionLib/E4xx/NeedGroupAdapter.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 {
64 64
     public function __construct($testEnvironmentName, $groupId)
65 65
     {
66
-    	$msg = "in test environment {$testEnvironmentName}, group {$groupId}: need a group adapter first";
66
+        $msg = "in test environment {$testEnvironmentName}, group {$groupId}: need a group adapter first";
67 67
         parent::__construct(400, $msg, $msg);
68 68
     }
69 69
 }
70 70
\ No newline at end of file
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/DeviceLib.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -58,34 +58,34 @@
 block discarded – undo
58 58
  */
59 59
 class DeviceLib
60 60
 {
61
-	/**
62
-	 * @param \DataSift\Stone\ObjectLib\BaseObject $deviceDetails
63
-	 */
64
-	public static function getDeviceAdapter($deviceDetails)
65
-	{
66
-		// which namespace do our device adapters live in?
67
-		$namespace = 'DataSift\Storyplayer\DeviceLib\\';
61
+    /**
62
+     * @param \DataSift\Stone\ObjectLib\BaseObject $deviceDetails
63
+     */
64
+    public static function getDeviceAdapter($deviceDetails)
65
+    {
66
+        // which namespace do our device adapters live in?
67
+        $namespace = 'DataSift\Storyplayer\DeviceLib\\';
68 68
 
69
-		// where do we want to get the device from?
70
-		$adapterClass = $namespace . $deviceDetails->adapter . 'Adapter';
69
+        // where do we want to get the device from?
70
+        $adapterClass = $namespace . $deviceDetails->adapter . 'Adapter';
71 71
 
72
-		// do we have the adapter?
73
-		if (!class_exists($adapterClass)) {
74
-			throw new E4xx_NoSuchDeviceAdapter($deviceDetails->adapter);
75
-		}
72
+        // do we have the adapter?
73
+        if (!class_exists($adapterClass)) {
74
+            throw new E4xx_NoSuchDeviceAdapter($deviceDetails->adapter);
75
+        }
76 76
 
77
-		// create the adapter
78
-		$deviceAdapter = new $adapterClass;
77
+        // create the adapter
78
+        $deviceAdapter = new $adapterClass;
79 79
 
80
-		// is this an adapter we're happy with?
81
-		if (!$deviceAdapter instanceof \DataSift\Storyplayer\DeviceLib\DeviceAdapter) {
82
-			throw new E5xx_BadDeviceAdapter($adapterClass);
83
-		}
80
+        // is this an adapter we're happy with?
81
+        if (!$deviceAdapter instanceof \DataSift\Storyplayer\DeviceLib\DeviceAdapter) {
82
+            throw new E5xx_BadDeviceAdapter($adapterClass);
83
+        }
84 84
 
85
-		// initialise the adapter
86
-		$deviceAdapter->init($deviceDetails);
85
+        // initialise the adapter
86
+        $deviceAdapter->init($deviceDetails);
87 87
 
88
-		// all done
89
-		return $deviceAdapter;
90
-	}
88
+        // all done
89
+        return $deviceAdapter;
90
+    }
91 91
 }
92 92
\ No newline at end of file
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/DeviceLib/BaseAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         // make sure it is an array, as that is what the
90 90
         // underlying WebDriver library requires
91 91
         else if (is_object($browserDetails->desiredCapabilities)) {
92
-            $browserDetails->desiredCapabilities = (array) ($browserDetails->desiredCapabilities);
92
+            $browserDetails->desiredCapabilities = (array)($browserDetails->desiredCapabilities);
93 93
         }
94 94
     }
95 95
 
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/DeviceLib/E4xx/NoSuchDeviceProvider.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,8 @@
 block discarded – undo
62 62
      *
63 63
      * @param string $provider
64 64
      */
65
-    public function __construct($provider) {
65
+    public function __construct($provider)
66
+    {
66 67
         $msg = "Unknown device adapter '{$provider}'";
67 68
         parent::__construct(400, $msg, $msg);
68 69
     }
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/DeviceLib/E5xx/BadDeviceAdapter.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,8 @@
 block discarded – undo
61 61
     /**
62 62
      * @param string $classname
63 63
      */
64
-    public function __construct($classname) {
64
+    public function __construct($classname)
65
+    {
65 66
         $msg = "Unable to use class '{$classname}' as a device adapter; it does not implement the DeviceAdapter interface";
66 67
         parent::__construct(500, $msg, $msg);
67 68
     }
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/DeviceLib/HardCodedDevices.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,17 +72,17 @@
 block discarded – undo
72 72
         // defaults for Chrome, running locally
73 73
         $config = $this->newConfig('chrome')->getConfig();
74 74
         $config->adapter = 'LocalWebDriver';
75
-        $config->browser  = 'chrome';
75
+        $config->browser = 'chrome';
76 76
 
77 77
         // defaults for Firefox, running locally
78 78
         $config = $this->newConfig('firefox')->getConfig();
79 79
         $config->adapter = 'LocalWebDriver';
80
-        $config->browser  = 'firefox';
80
+        $config->browser = 'firefox';
81 81
 
82 82
         // defaults for Safari, running locally
83 83
         $config = $this->newConfig('safari')->getConfig();
84 84
         $config->adapter = 'LocalWebDriver';
85
-        $config->browser  = 'safari';
85
+        $config->browser = 'safari';
86 86
 
87 87
         // ----------------------------------------------------------------
88 88
         //
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/DeviceLib/KnownDevices.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,17 +70,17 @@
 block discarded – undo
70 70
         // defaults for Chrome, running locally
71 71
         $this->chrome = new BaseObject;
72 72
         $this->chrome->adapter = 'LocalWebDriver';
73
-        $this->chrome->browser  = 'chrome';
73
+        $this->chrome->browser = 'chrome';
74 74
 
75 75
         // defaults for Firefox, running locally
76 76
         $this->firefox = new BaseObject;
77 77
         $this->firefox->adapter = 'LocalWebDriver';
78
-        $this->firefox->browser  = 'firefox';
78
+        $this->firefox->browser = 'firefox';
79 79
 
80 80
         // defaults for Safari, running locally
81 81
         $this->safari = new BaseObject;
82 82
         $this->safari->adapter = 'LocalWebDriver';
83
-        $this->safari->browser  = 'safari';
83
+        $this->safari->browser = 'safari';
84 84
 
85 85
         // ----------------------------------------------------------------
86 86
         //
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/DeviceLib/SauceLabsWebDriverAdapter.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,10 +73,10 @@
 block discarded – undo
73 73
 
74 74
         // build the Sauce Labs url
75 75
         $url = "http://"
76
-             . urlencode($this->browserDetails->saucelabs->username)
77
-             . ':'
78
-             . urlencode($this->browserDetails->saucelabs->accesskey)
79
-             . '@ondemand.saucelabs.com/wd/hub';
76
+                . urlencode($this->browserDetails->saucelabs->username)
77
+                . ':'
78
+                . urlencode($this->browserDetails->saucelabs->accesskey)
79
+                . '@ondemand.saucelabs.com/wd/hub';
80 80
 
81 81
         // build the Sauce Labs capabilities array
82 82
         $desiredCapabilities = $this->browserDetails->desiredCapabilities;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         // due to encoding errors at SauceLabs, we can't use '>' as a
88 88
         // delimiter in the story's name
89 89
         $story = $st->getStory();
90
-        $desiredCapabilities['name'] = $st->getTestEnvironmentName() . ' / ' . $st->getCurrentPhase() . ': ' . $st->getCurrentPhaseName() . ' / '. $story->getName();
90
+        $desiredCapabilities['name'] = $st->getTestEnvironmentName() . ' / ' . $st->getCurrentPhase() . ': ' . $st->getCurrentPhaseName() . ' / ' . $story->getName();
91 91
 
92 92
         // create the browser session
93 93
         $webDriver = new WebDriverClient($url);
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -104,15 +104,13 @@
 block discarded – undo
104 104
     public function stop()
105 105
     {
106 106
         // stop the web browser
107
-        if (is_object($this->browserSession))
108
-        {
107
+        if (is_object($this->browserSession)) {
109 108
             $this->browserSession->close();
110 109
             $this->browserSession = null;
111 110
         }
112 111
 
113 112
         // now stop the proxy
114
-        if (is_object($this->proxySession))
115
-        {
113
+        if (is_object($this->proxySession)) {
116 114
             try {
117 115
                 $this->proxySession->close();
118 116
             }
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/HostLib/Ec2Vm.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $log = usingLog()->startAction('provision new VM');
92 92
 
93 93
         // make sure we like the provided details
94
-        foreach(array('name', 'environment', 'osName', 'amiId', 'securityGroup') as $param) {
94
+        foreach (array('name', 'environment', 'osName', 'amiId', 'securityGroup') as $param) {
95 95
             if (!isset($vmDetails->$param)) {
96 96
                 throw new E5xx_ActionFailed(__METHOD__, "missing vmDetails['{$param}']");
97 97
             }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                     $client->createTags(array(
132 132
                         'Resources' => array($response['Instances'][0]['InstanceId']),
133 133
                         'Tags' => array(
134
-                            array (
134
+                            array(
135 135
                                 'Key' => 'Name',
136 136
                                 'Value' => $vmDetails->ec2Name
137 137
                             )
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -140,8 +140,7 @@  discard block
 block discarded – undo
140 140
                 }
141 141
             });
142 142
         }
143
-        catch (Exception $e)
144
-        {
143
+        catch (Exception $e) {
145 144
             // something went wrong
146 145
             $log->endAction("VM failed to provision :(");
147 146
             throw new E5xx_ActionFailed(__METHOD__, $e->getMessage());
@@ -163,8 +162,7 @@  discard block
 block discarded – undo
163 162
                 $vmDetails->ec2Instance = $response['Instances'][0];
164 163
             });
165 164
         }
166
-        catch (Exception $e)
167
-        {
165
+        catch (Exception $e) {
168 166
             // something went wrong
169 167
             $log->endAction("VM failed to start :(");
170 168
             throw new E5xx_ActionFailed(__METHOD__, $e->getMessage());
@@ -236,8 +234,7 @@  discard block
 block discarded – undo
236 234
                 $vmDetails->ec2Instance = $response['Instances'][0];
237 235
             });
238 236
         }
239
-        catch (Exception $e)
240
-        {
237
+        catch (Exception $e) {
241 238
             // something went wrong
242 239
             $log->endAction("VM failed to start :(");
243 240
             throw new E5xx_ActionFailed(__METHOD__, $e->getMessage());
@@ -299,8 +296,7 @@  discard block
 block discarded – undo
299 296
                 $vmDetails->ec2Instance = $response['Instances'][0];
300 297
             });
301 298
         }
302
-        catch (Exception $e)
303
-        {
299
+        catch (Exception $e) {
304 300
             // something went wrong
305 301
             $log->endAction("VM failed to stop :(");
306 302
             throw new E5xx_ActionFailed(__METHOD__, $e->getMessage());
@@ -374,8 +370,7 @@  discard block
 block discarded – undo
374 370
                 ));
375 371
             });
376 372
         }
377
-        catch (Exception $e)
378
-        {
373
+        catch (Exception $e) {
379 374
             // something went wrong
380 375
             $log->endAction("VM failed to terminate :(");
381 376
             throw new E5xx_ActionFailed(__METHOD__, $e->getMessage());
Please login to merge, or discard this patch.