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
Pull Request — master (#16)
by Rob
05:47 queued 03:12
created
src/Libraries/Data/Data.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,9 +48,9 @@
 block discarded – undo
48 48
      */
49 49
     public static function formatUrls(array $urls): array
50 50
     {
51
-        $formattedUrls = [];
51
+        $formattedUrls = [ ];
52 52
         foreach ($urls as $url) {
53
-            $formattedUrls[] = ['url' => $url];
53
+            $formattedUrls[ ] = [ 'url' => $url ];
54 54
         }
55 55
 
56 56
         return $formattedUrls;
Please login to merge, or discard this patch.
tests/Libraries/Data/DataTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@  discard block
 block discarded – undo
10 10
 class DataTest extends TestCase
11 11
 {
12 12
     private $formattedUrls = [
13
-        ['url' => 'https://www.google.com'],
14
-        ['url' => 'https://github.com'],
15
-        ['url' => 'https://github.styleci.io'],
16
-        ['url' => 'https://travis-ci.org'],
17
-        ['url' => 'https://packagist.org'],
13
+        [ 'url' => 'https://www.google.com' ],
14
+        [ 'url' => 'https://github.com' ],
15
+        [ 'url' => 'https://github.styleci.io' ],
16
+        [ 'url' => 'https://travis-ci.org' ],
17
+        [ 'url' => 'https://packagist.org' ],
18 18
     ];
19 19
 
20 20
     private $urls = [
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     public function testPayloadSingleUrl()
53 53
     {
54 54
         $formattedUrl = [
55
-            ['url' => 'https://www.google.com'],
55
+            [ 'url' => 'https://www.google.com' ],
56 56
         ];
57 57
 
58 58
         $url = [
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             //['url' => ''],
83 83
         ];
84 84
 
85
-        $urls = [];
85
+        $urls = [ ];
86 86
 
87 87
         $expected = [
88 88
             'client' => [
@@ -111,10 +111,10 @@  discard block
 block discarded – undo
111 111
 
112 112
     public function testFormatUrlsSingle()
113 113
     {
114
-        $url = ['https://www.google.com'];
114
+        $url = [ 'https://www.google.com' ];
115 115
 
116 116
         $expected = [
117
-            ['url' => 'https://www.google.com'],
117
+            [ 'url' => 'https://www.google.com' ],
118 118
         ];
119 119
 
120 120
         $actual = Data::formatUrls($url);
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
 
124 124
     public function testFormatUrlsNone()
125 125
     {
126
-        $urls = [];
126
+        $urls = [ ];
127 127
 
128
-        $expected = [];
128
+        $expected = [ ];
129 129
 
130 130
         $actual = Data::formatUrls($urls);
131 131
         $this->assertEquals($expected, $actual);
Please login to merge, or discard this patch.