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 ( d5b9de...71add1 )
by Rob
07:41
created
tests/SafeUrlsTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
         $urlToRemove = 'https://testsafebrowsing.appspot.com/s/phishing.html';
44 44
 
45 45
         $expected = [
46
-            $this->urlsToTest[1],
47
-            $this->urlsToTest[2],
48
-            $this->urlsToTest[3],
49
-            $this->urlsToTest[4],
46
+            $this->urlsToTest[ 1 ],
47
+            $this->urlsToTest[ 2 ],
48
+            $this->urlsToTest[ 3 ],
49
+            $this->urlsToTest[ 4 ],
50 50
         ];
51
-        $this->safeUrls->remove([$urlToRemove]);
51
+        $this->safeUrls->remove([ $urlToRemove ]);
52 52
 
53 53
         $actual = $this->safeUrls->getCurrentUrls(true);
54 54
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $this->safeUrls->add($this->urlsToTest);
61 61
 
62
-        $expected = [];
62
+        $expected = [ ];
63 63
         $this->safeUrls->remove($this->urlsToTest);
64 64
         $actual = $this->safeUrls->getCurrentUrls(true);
65 65
 
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
 
77 77
         $expected = '{ "status": 200, "response": { "matches": [ { "threatType": "SOCIAL_ENGINEERING", "platformType": "ANY_PLATFORM", "threat": { "url": "https://testsafebrowsing.appspot.com/s/phishing.html" }, "cacheDuration": "300s", "threatEntryType": "URL" }, { "threatType": "MALWARE", "platformType": "ANY_PLATFORM", "threat": { "url": "https://testsafebrowsing.appspot.com/s/malware.html" }, "cacheDuration": "300s", "threatEntryType": "URL" }, { "threatType": "MALWARE", "platformType": "ANY_PLATFORM", "threat": { "url": "http://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/MALWARE/URL/" }, "cacheDuration": "300s", "threatEntryType": "URL" }, { "threatType": "SOCIAL_ENGINEERING", "platformType": "ANY_PLATFORM", "threat": { "url": "http://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/SOCIAL_ENGINEERING/URL/" }, "cacheDuration": "300s", "threatEntryType": "URL" }, { "threatType": "MALWARE", "platformType": "ANY_PLATFORM", "threat": { "url": "http://malware.testing.google.test/testing/malware/" }, "cacheDuration": "300s", "threatEntryType": "URL" }, { "threatType": "SOCIAL_ENGINEERING", "platformType": "ANY_PLATFORM", "threat": { "url": "http://malware.testing.google.test/testing/malware/" }, "cacheDuration": "300s", "threatEntryType": "URL" } ] } }';
78 78
 
79
-        $expected = json_decode($expected, true)['status'];
80
-        $actual = json_decode((string) $this->safeUrls->execute()->getResults(), true)['status'];
79
+        $expected = json_decode($expected, true)[ 'status' ];
80
+        $actual = json_decode((string) $this->safeUrls->execute()->getResults(), true)[ 'status' ];
81 81
 
82 82
         $this->assertEquals($expected, $actual);
83 83
     }
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
     public function testCheck()
91 91
     {
92 92
         $expected = '{ "status": 200, "response": { "matches": [ { "threatType": "SOCIAL_ENGINEERING", "platformType": "ANY_PLATFORM", "threat": { "url": "https://testsafebrowsing.appspot.com/s/phishing.html" }, "cacheDuration": "300s", "threatEntryType": "URL" }, { "threatType": "MALWARE", "platformType": "ANY_PLATFORM", "threat": { "url": "https://testsafebrowsing.appspot.com/s/malware.html" }, "cacheDuration": "300s", "threatEntryType": "URL" }, { "threatType": "MALWARE", "platformType": "ANY_PLATFORM", "threat": { "url": "http://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/MALWARE/URL/" }, "cacheDuration": "300s", "threatEntryType": "URL" }, { "threatType": "SOCIAL_ENGINEERING", "platformType": "ANY_PLATFORM", "threat": { "url": "http://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/SOCIAL_ENGINEERING/URL/" }, "cacheDuration": "300s", "threatEntryType": "URL" }, { "threatType": "MALWARE", "platformType": "ANY_PLATFORM", "threat": { "url": "http://malware.testing.google.test/testing/malware/" }, "cacheDuration": "300s", "threatEntryType": "URL" }, { "threatType": "SOCIAL_ENGINEERING", "platformType": "ANY_PLATFORM", "threat": { "url": "http://malware.testing.google.test/testing/malware/" }, "cacheDuration": "300s", "threatEntryType": "URL" } ] } }';
93
-        $expected = json_decode($expected, true)['status'];
93
+        $expected = json_decode($expected, true)[ 'status' ];
94 94
 
95
-        $actual = json_decode($this->safeUrls::check($this->urlsToTest), true)['status'];
95
+        $actual = json_decode($this->safeUrls::check($this->urlsToTest), true)[ 'status' ];
96 96
 
97 97
         $this->assertEquals($expected, $actual);
98 98
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $this->safeUrls->add($this->urlsToTest);
106 106
 
107 107
         $safeUrlsMock = $this->getMockBuilder(SafeUrls::class)
108
-            ->setMethods(['callStatic'])
108
+            ->setMethods([ 'callStatic' ])
109 109
             ->getMock();
110 110
 
111 111
         /** @scrutinizer ignore-call */
Please login to merge, or discard this patch.