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 — master ( b592f6...d63ed1 )
by Rob
03:19
created
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
 
53 53
     public function testPayloadNoUrls()
54 54
     {
55
-        $urls = [];
55
+        $urls = [ ];
56 56
 
57 57
         $expected = self::_payload($urls);
58 58
 
@@ -70,10 +70,10 @@  discard block
 block discarded – undo
70 70
 
71 71
     public function testFormatUrlsSingle()
72 72
     {
73
-        $url = ['https://www.google.com'];
73
+        $url = [ 'https://www.google.com' ];
74 74
 
75 75
         $expected = [
76
-            ['url' => 'https://www.google.com'],
76
+            [ 'url' => 'https://www.google.com' ],
77 77
         ];
78 78
 
79 79
         $actual = Data::formatUrls($url);
@@ -82,15 +82,15 @@  discard block
 block discarded – undo
82 82
 
83 83
     public function testFormatUrlsNone()
84 84
     {
85
-        $urls = [];
85
+        $urls = [ ];
86 86
 
87
-        $expected = [];
87
+        $expected = [ ];
88 88
 
89 89
         $actual = Data::formatUrls($urls);
90 90
         $this->assertEquals($expected, $actual);
91 91
     }
92 92
 
93
-    private static function _payload(array $urls, array $threatTypes = [], array $platformTypes = [], array $threatEntryTypes = []): array
93
+    private static function _payload(array $urls, array $threatTypes = [ ], array $platformTypes = [ ], array $threatEntryTypes = [ ]): array
94 94
     {
95 95
         return [
96 96
             'client' => [
Please login to merge, or discard this patch.
tests/Libraries/Curl/CurlTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public function testMalwareSocialEngineeringAnyPlatformUrl()
21 21
     {
22 22
 
23
-        $postUrl = Defaults::GOOGLE_API_URL . Config::googleApiKey();
23
+        $postUrl = Defaults::GOOGLE_API_URL.Config::googleApiKey();
24 24
 
25 25
         $threatTypes = [
26 26
             'MALWARE',
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $this->assertTrue(true);
70 70
 
71 71
         } catch (\ErrorException $e) {
72
-            $this->fail("Curl creation failed. Error message: " . $e->getMessage());
72
+            $this->fail("Curl creation failed. Error message: ".$e->getMessage());
73 73
         }
74 74
     }
75 75
 }
Please login to merge, or discard this patch.
src/SafeUrlsServiceProvider.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     public function register()
45 45
     {
46 46
         // Register the service the package provides.
47
-        $this->app->singleton('safe-urls', function () {
47
+        $this->app->singleton('safe-urls', function() {
48 48
             return new SafeUrls();
49 49
         });
50 50
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function provides()
58 58
     {
59
-        return ['safe-urls'];
59
+        return [ 'safe-urls' ];
60 60
     }
61 61
 
62 62
     /**
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         ], 'safe-urls');
73 73
 
74 74
         // Registering package commands.
75
-        $this->commands(['safe-urls']);
75
+        $this->commands([ 'safe-urls' ]);
76 76
     }
77 77
 
78 78
     /**
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
      */
85 85
     protected function mergeConfigFrom($path, $key)
86 86
     {
87
-        $config = $this->app['config']->get($key, []);
88
-        $this->app['config']->set($key, $this->mergeConfig($config, require $path));
87
+        $config = $this->app[ 'config' ]->get($key, [ ]);
88
+        $this->app[ 'config' ]->set($key, $this->mergeConfig($config, require $path));
89 89
     }
90 90
     /**
91 91
      * Merges the configs together and takes multi-dimensional arrays into account.
@@ -98,16 +98,16 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $array = array_merge($original, $merging);
100 100
         foreach ($original as $key => $value) {
101
-            if (! is_array($value)) {
101
+            if (!is_array($value)) {
102 102
                 continue;
103 103
             }
104
-            if (! Arr::exists($merging, $key)) {
104
+            if (!Arr::exists($merging, $key)) {
105 105
                 continue;
106 106
             }
107 107
             if (is_numeric($key)) {
108 108
                 continue;
109 109
             }
110
-            $array[$key] = $this->mergeConfig($value, $merging[$key]);
110
+            $array[ $key ] = $this->mergeConfig($value, $merging[ $key ]);
111 111
         }
112 112
         return $array;
113 113
     }
Please login to merge, or discard this patch.
src/Libraries/Data/Data.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @return array The generated payload.
28 28
      */
29
-    public static function payload(array $urls, array $threatTypes = [], array $platformTypes = [], array $threatEntryTypes = []): array
29
+    public static function payload(array $urls, array $threatTypes = [ ], array $platformTypes = [ ], array $threatEntryTypes = [ ]): array
30 30
     {
31 31
         return [
32 32
             'client' => [
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public static function formatUrls(array $urls): array
53 53
     {
54
-        $formattedUrls = [];
54
+        $formattedUrls = [ ];
55 55
         foreach ($urls as $url) {
56
-            $formattedUrls[] = ['url' => $url];
56
+            $formattedUrls[ ] = [ 'url' => $url ];
57 57
         }
58 58
 
59 59
         return $formattedUrls;
Please login to merge, or discard this patch.