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 ( fed686...61a1e4 )
by Rob
03:18
created
src/SafeUrlsServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $this->mergeConfigFrom(__DIR__.'/../config/safe-urls.php', 'safe-urls');
46 46
 
47 47
         // Register the service the package provides.
48
-        $this->app->singleton('safe-urls', function () {
48
+        $this->app->singleton('safe-urls', function() {
49 49
             return new SafeUrls();
50 50
         });
51 51
     }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function provides()
59 59
     {
60
-        return ['safe-urls'];
60
+        return [ 'safe-urls' ];
61 61
     }
62 62
 
63 63
     /**
@@ -73,6 +73,6 @@  discard block
 block discarded – undo
73 73
         ], 'safe-urls.config');
74 74
 
75 75
         // Registering package commands.
76
-        $this->commands(['safe-urls']);
76
+        $this->commands([ 'safe-urls' ]);
77 77
     }
78 78
 }
Please login to merge, or discard this patch.
src/Libraries/Curl/Curl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
      */
82 82
     public function getData()
83 83
     {
84
-        return [];
84
+        return [ ];
85 85
     }
86 86
 
87 87
     /**
Please login to merge, or discard this patch.
src/SafeUrls.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
     public function __construct()
30 30
     {
31 31
         // Initialise the list of urls as an empty array.
32
-        $this->urls = [];
32
+        $this->urls = [ ];
33 33
 
34 34
         // Initialise the list of urls as an empty array.
35
-        $this->results = [];
35
+        $this->results = [ ];
36 36
     }
37 37
 
38 38
     /**
@@ -131,6 +131,6 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public static function format(array $urls): array
133 133
     {
134
-        return [];
134
+        return [ ];
135 135
     }
136 136
 }
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
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     protected function setUp(): void
27 27
     {
28 28
         $this->postUrl = '';
29
-        $this->headers = [];
30
-        $this->payload = [];
29
+        $this->headers = [ ];
30
+        $this->payload = [ ];
31 31
         $this->timeout = 10;
32 32
         $this->curl = new Curl(
33 33
             $this->postUrl,
Please login to merge, or discard this patch.
tests/TestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
      */
16 16
     protected function getPackageProviders($app)
17 17
     {
18
-        return [SafeUrlsServiceProvider::class];
18
+        return [ SafeUrlsServiceProvider::class ];
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
src/Libraries/Config/Config.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $threatTypes = config('safe-urls.google.threat_types');
67 67
 
68
-        return !empty($threatTypes) ? $threatTypes : [];
68
+        return !empty($threatTypes) ? $threatTypes : [ ];
69 69
     }
70 70
 
71 71
     /**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $platformTypes = config('safe-urls.google.threat_platform_types');
79 79
 
80
-        return !empty($platformTypes) ? $platformTypes : [];
80
+        return !empty($platformTypes) ? $platformTypes : [ ];
81 81
     }
82 82
 
83 83
     /**
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         $threatEntryTypes = config('safe-urls.google.threat_entry_types');
91 91
 
92
-        return !empty($threatEntryTypes) ? $threatEntryTypes : [self::DEFAULT_THREAT_ENTRY_TYPE];
92
+        return !empty($threatEntryTypes) ? $threatEntryTypes : [ self::DEFAULT_THREAT_ENTRY_TYPE ];
93 93
     }
94 94
 
95 95
     /**
Please login to merge, or discard this patch.
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
         return $formattedUrls;
56 56
     }
Please login to merge, or discard this patch.
tests/Libraries/Data/DataTest.php 1 patch
Spacing   +16 added lines, -16 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 = [
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
         $this->assertEquals($expected, $actual);
50 50
     }
51 51
 
52
-    public function testPayloadSingleUrl(){
52
+    public function testPayloadSingleUrl() {
53 53
         $formattedUrl = [
54
-            ['url' => 'https://www.google.com'],
54
+            [ 'url' => 'https://www.google.com' ],
55 55
         ];
56 56
 
57 57
         $url = [
@@ -75,12 +75,12 @@  discard block
 block discarded – undo
75 75
         $this->assertEquals($expected, $actual);
76 76
     }
77 77
 
78
-    public function testPayloadNoUrls(){
78
+    public function testPayloadNoUrls() {
79 79
         $formattedUrls = [
80 80
             //['url' => ''],
81 81
         ];
82 82
 
83
-        $urls = [];
83
+        $urls = [ ];
84 84
 
85 85
         $expected = [
86 86
             'client' => [
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         $this->assertEquals($expected, $actual);
100 100
     }
101 101
 
102
-    public function testFormatUrlsMultiple(){
102
+    public function testFormatUrlsMultiple() {
103 103
 
104 104
         $expected = $this->formattedUrls;
105 105
 
@@ -107,23 +107,23 @@  discard block
 block discarded – undo
107 107
         $this->assertEquals($expected, $actual);
108 108
     }
109 109
 
110
-    public function testFormatUrlsSingle(){
110
+    public function testFormatUrlsSingle() {
111 111
 
112
-        $url = ['https://www.google.com'];
112
+        $url = [ 'https://www.google.com' ];
113 113
 
114 114
         $expected = [
115
-            ['url' => 'https://www.google.com']
115
+            [ 'url' => 'https://www.google.com' ]
116 116
         ];
117 117
 
118 118
         $actual = Data::formatUrls($url);
119 119
         $this->assertEquals($expected, $actual);
120 120
     }
121 121
 
122
-    public function testFormatUrlsNone(){
122
+    public function testFormatUrlsNone() {
123 123
 
124
-        $urls = [];
124
+        $urls = [ ];
125 125
 
126
-        $expected = [];
126
+        $expected = [ ];
127 127
 
128 128
         $actual = Data::formatUrls($urls);
129 129
         $this->assertEquals($expected, $actual);
Please login to merge, or discard this patch.