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 ( fdb351...008b6e )
by Stuart
05:27
created
src/php/Storyplayer/TestEnvironments/Vagrant/E4xx/NoVagrantFile.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@
 block discarded – undo
60 60
  */
61 61
 class Vagrant_E4xx_NoVagrantFile extends Vagrant_E4xx_Exception
62 62
 {
63
-	public function __construct($candidates)
64
-	{
65
-		$msg = "Cannot find your Vagrantfile. Expected to find it in one of these folders: " . implode(", ", $candidates);
66
-		parent::__construct(400, $msg, $msg);
67
-	}
63
+    public function __construct($candidates)
64
+    {
65
+        $msg = "Cannot find your Vagrantfile. Expected to find it in one of these folders: " . implode(", ", $candidates);
66
+        parent::__construct(400, $msg, $msg);
67
+    }
68 68
 }
69 69
\ No newline at end of file
Please login to merge, or discard this patch.
src/php/Storyplayer/TestEnvironments/Vagrant/GroupAdapter.php 1 patch
Indentation   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -59,48 +59,48 @@  discard block
 block discarded – undo
59 59
 
60 60
 class Vagrant_GroupAdapter implements GroupAdapter
61 61
 {
62
-	public function __construct()
63
-	{
64
-		$this->determineBaseFolder();
65
-	}
62
+    public function __construct()
63
+    {
64
+        $this->determineBaseFolder();
65
+    }
66 66
 
67
-	// ==================================================================
68
-	//
69
-	// Base folder support goes here
70
-	//
71
-	// ------------------------------------------------------------------
67
+    // ==================================================================
68
+    //
69
+    // Base folder support goes here
70
+    //
71
+    // ------------------------------------------------------------------
72 72
 
73
-	protected $baseFolder;
73
+    protected $baseFolder;
74 74
 
75
-	/**
76
-	 * automagically work out where our test environment's files and
77
-	 * such like are
78
-	 *
79
-	 * @return void
80
-	 */
81
-	protected function determineBaseFolder()
82
-	{
83
-		// where should we be looking?
84
-		//
85
-		// first match wins!
86
-		$candidates = [
87
-			dirname(debug_backtrace()[1]['file']),
88
-			getcwd()
89
-		];
75
+    /**
76
+     * automagically work out where our test environment's files and
77
+     * such like are
78
+     *
79
+     * @return void
80
+     */
81
+    protected function determineBaseFolder()
82
+    {
83
+        // where should we be looking?
84
+        //
85
+        // first match wins!
86
+        $candidates = [
87
+            dirname(debug_backtrace()[1]['file']),
88
+            getcwd()
89
+        ];
90 90
 
91
-		foreach ($candidates as $folder) {
92
-			if (file_exists($folder . '/Vagrantfile')) {
93
-				$this->baseFolder = str_replace(getcwd(), '.', $folder);
91
+        foreach ($candidates as $folder) {
92
+            if (file_exists($folder . '/Vagrantfile')) {
93
+                $this->baseFolder = str_replace(getcwd(), '.', $folder);
94 94
 
95
-				// all done
96
-				return;
97
-			}
98
-		}
95
+                // all done
96
+                return;
97
+            }
98
+        }
99 99
 
100
-		// if we get here, then we do not know where the Vagrantfile
101
-		// is, and it is time to bail
102
-		throw new Vagrant_E4xx_NoVagrantFile($candidates);
103
-	}
100
+        // if we get here, then we do not know where the Vagrantfile
101
+        // is, and it is time to bail
102
+        throw new Vagrant_E4xx_NoVagrantFile($candidates);
103
+    }
104 104
 
105 105
     /**
106 106
      * which folder should SPv2 be in when interacting with this group
@@ -110,33 +110,33 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function getBaseFolder()
112 112
     {
113
-    	return $this->baseFolder;
113
+        return $this->baseFolder;
114 114
     }
115 115
 
116
-	// ==================================================================
117
-	//
118
-	// Host support goes here
119
-	//
120
-	// ------------------------------------------------------------------
116
+    // ==================================================================
117
+    //
118
+    // Host support goes here
119
+    //
120
+    // ------------------------------------------------------------------
121 121
 
122
-	/**
123
-	 * how do we validate any host adapters used by hosts in this group?
124
-	 *
125
-	 * @return HostAdapterValidator
126
-	 */
127
-	public function getHostAdapterValidator()
128
-	{
129
-		return new Vagrant_HostAdapterValidator($this);
130
-	}
122
+    /**
123
+     * how do we validate any host adapters used by hosts in this group?
124
+     *
125
+     * @return HostAdapterValidator
126
+     */
127
+    public function getHostAdapterValidator()
128
+    {
129
+        return new Vagrant_HostAdapterValidator($this);
130
+    }
131 131
 
132
-	// ==================================================================
133
-	//
134
-	// Stuff to support SPv2.0-style internals goes here
135
-	//
136
-	// Everything below here is technical debt, and the plan is to
137
-	// gradually phase it all out over several SPv2 releases
138
-	//
139
-	// ------------------------------------------------------------------
132
+    // ==================================================================
133
+    //
134
+    // Stuff to support SPv2.0-style internals goes here
135
+    //
136
+    // Everything below here is technical debt, and the plan is to
137
+    // gradually phase it all out over several SPv2 releases
138
+    //
139
+    // ------------------------------------------------------------------
140 140
 
141 141
     /**
142 142
      * what type of group are we?
@@ -146,8 +146,8 @@  discard block
 block discarded – undo
146 146
      *
147 147
      * @return string
148 148
      */
149
-	public function getType()
150
-	{
151
-		return "LocalVagrantVms";
152
-	}
149
+    public function getType()
150
+    {
151
+        return "LocalVagrantVms";
152
+    }
153 153
 }
154 154
\ No newline at end of file
Please login to merge, or discard this patch.
src/php/Storyplayer/TestEnvironments/Vagrant/HostAdapterValidator.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -59,20 +59,20 @@
 block discarded – undo
59 59
 
60 60
 class Vagrant_HostAdapterValidator implements HostAdapterValidator
61 61
 {
62
-	/**
63
-	 * check to make sure that a host adapter plugin is compatible with
64
-	 * the group adapter
65
-	 *
66
-	 * @param  HostAdapter $hostAdapter
67
-	 *         the adapter to validate
68
-	 * @return boolean
69
-	 */
70
-	public function validate(HostAdapter $hostAdapter)
71
-	{
72
-		if (!$hostAdapter instanceof Vagrant_HostAdapter) {
73
-			return false;
74
-		}
62
+    /**
63
+     * check to make sure that a host adapter plugin is compatible with
64
+     * the group adapter
65
+     *
66
+     * @param  HostAdapter $hostAdapter
67
+     *         the adapter to validate
68
+     * @return boolean
69
+     */
70
+    public function validate(HostAdapter $hostAdapter)
71
+    {
72
+        if (!$hostAdapter instanceof Vagrant_HostAdapter) {
73
+            return false;
74
+        }
75 75
 
76
-		return true;
77
-	}
76
+        return true;
77
+    }
78 78
 }
79 79
\ No newline at end of file
Please login to merge, or discard this patch.
storyplayer/test-environments/vagrant-vbox-ubuntu-14.04-server/main.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,14 +9,14 @@
 block discarded – undo
9 9
 
10 10
 $group1 = $testEnv->newGroup('vagrant', new Vagrant_GroupAdapter);
11 11
 $group1->newHost('default', new Vagrant_VirtualboxHostAdapter)
12
-       ->setOperatingSystem(new Ubuntu_1404_HostAdapter)
13
-       ->setRoles([
12
+        ->setOperatingSystem(new Ubuntu_1404_HostAdapter)
13
+        ->setRoles([
14 14
             "host_target",
15 15
             "upload_target",
16 16
             "ssl_target",
17 17
             "zmq_target",
18 18
         ])
19
-       ->setStorySettings((object)[
19
+        ->setStorySettings((object)[
20 20
             "host" => (object)[
21 21
                 "expected" => "successfully retrieved this storySetting :)",
22 22
             ],
Please login to merge, or discard this patch.
vagrant-vbox-ubuntu-15.04-server/files/zmq/zmq-echo-server.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -20,24 +20,24 @@
 block discarded – undo
20 20
 
21 21
 $events = 0;
22 22
 while(true) {
23
-	try {
24
-		$readable = $writeable = [];
25
-		$events = $poller->poll($readable, $writeable, -1);
26
-	}
27
-	catch (Exception $e) {
28
-		// do nothing
29
-	}
23
+    try {
24
+        $readable = $writeable = [];
25
+        $events = $poller->poll($readable, $writeable, -1);
26
+    }
27
+    catch (Exception $e) {
28
+        // do nothing
29
+    }
30 30
 
31
-	if ($events > 0) {
32
-		foreach($readable as $r) {
33
-			if ($r === $single['in']) {
34
-				$msg = $r->recv();
35
-				$single['out']->send($msg);
36
-			}
37
-			else {
38
-				$msg = $r->recvmulti();
39
-				$multi['out']->sendmulti($msg);
40
-			}
41
-		}
42
-	}
31
+    if ($events > 0) {
32
+        foreach($readable as $r) {
33
+            if ($r === $single['in']) {
34
+                $msg = $r->recv();
35
+                $single['out']->send($msg);
36
+            }
37
+            else {
38
+                $msg = $r->recvmulti();
39
+                $multi['out']->sendmulti($msg);
40
+            }
41
+        }
42
+    }
43 43
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 $single  = array();
6 6
 $single['in']  = $context->getSocket(ZMQ::SOCKET_PULL);
7 7
 $single['out'] = $context->getSocket(ZMQ::SOCKET_PUSH);
8
-$multi  = array();
8
+$multi = array();
9 9
 $multi['in']  = $context->getSocket(ZMQ::SOCKET_PULL);
10 10
 $multi['out'] = $context->getSocket(ZMQ::SOCKET_PUSH);
11 11
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 $poller->add($multi['in'], ZMQ::POLL_IN);
20 20
 
21 21
 $events = 0;
22
-while(true) {
22
+while (true) {
23 23
 	try {
24 24
 		$readable = $writeable = [];
25 25
 		$events = $poller->poll($readable, $writeable, -1);
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	}
30 30
 
31 31
 	if ($events > 0) {
32
-		foreach($readable as $r) {
32
+		foreach ($readable as $r) {
33 33
 			if ($r === $single['in']) {
34 34
 				$msg = $r->recv();
35 35
 				$single['out']->send($msg);
Please login to merge, or discard this patch.
storyplayer/test-environments/vagrant-vbox-ubuntu-15.04-server/main.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,14 +9,14 @@
 block discarded – undo
9 9
 
10 10
 $group1 = $testEnv->newGroup('vagrant', new Vagrant_GroupAdapter);
11 11
 $group1->newHost('default', new Vagrant_VirtualboxHostAdapter)
12
-       ->setOperatingSystem(new Ubuntu_1504_HostAdapter)
13
-       ->setRoles([
12
+        ->setOperatingSystem(new Ubuntu_1504_HostAdapter)
13
+        ->setRoles([
14 14
             "host_target",
15 15
             "upload_target",
16 16
             "ssl_target",
17 17
             "zmq_target",
18 18
         ])
19
-       ->setStorySettings((object)[
19
+        ->setStorySettings((object)[
20 20
             "host" => (object)[
21 21
                 "expected" => "successfully retrieved this storySetting :)",
22 22
             ],
Please login to merge, or discard this patch.
src/php/Prose/BaseCleanup.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      * __construct
60 60
      *
61 61
      * @param StoryTeller $st The StoryTeller object
62
-     * @param array $args Any arguments to be used in this Prose module
62
+     * @param string[] $args Any arguments to be used in this Prose module
63 63
      *
64 64
      * @return parent::__construct
65 65
      */
Please login to merge, or discard this patch.
src/php/DataSift/Storyplayer/Cli/KillProcesses/Switch.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/Console/DefaultConsole.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -270,8 +270,8 @@
 block discarded – undo
270 270
     public function logCliErrorWithException($msg, $e)
271 271
     {
272 272
         $this->write("*** error: $msg" . PHP_EOL . PHP_EOL
273
-             . "This was caused by an unexpected exception " . get_class($e) . PHP_EOL . PHP_EOL
274
-             . $e->getTraceAsString() . PHP_EOL);
273
+                . "This was caused by an unexpected exception " . get_class($e) . PHP_EOL . PHP_EOL
274
+                . $e->getTraceAsString() . PHP_EOL);
275 275
     }
276 276
 
277 277
     /**
Please login to merge, or discard this patch.