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 (#94)
by Martin
04:45
created
src/Provider/DetectRight.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -77,12 +77,12 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function __construct($dataFile)
79 79
     {
80
-        if (! class_exists('\DetectRight')) {
81
-            throw new PackageNotLoadedException('You need to download and include the package by hand from ' . $this->getHomepage() . ' to use this provider');
80
+        if (!class_exists('\DetectRight')) {
81
+            throw new PackageNotLoadedException('You need to download and include the package by hand from '.$this->getHomepage().' to use this provider');
82 82
         }
83 83
 
84
-        if (! file_exists($dataFile)) {
85
-            throw new InvalidArgumentException('Data file not found ' . $dataFile);
84
+        if (!file_exists($dataFile)) {
85
+            throw new InvalidArgumentException('Data file not found '.$dataFile);
86 86
         }
87 87
 
88 88
         $this->dataFile = $dataFile;
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     {
201 201
         $headers['User-Agent'] = $userAgent;
202 202
 
203
-        \DetectRight::initialize('DRSQLite//' . realpath($this->getDataFile()));
203
+        \DetectRight::initialize('DRSQLite//'.realpath($this->getDataFile()));
204 204
 
205 205
         \DetectRight::adaptiveProfileOnDeviceNotFound();
206 206
         $resultRaw = \DetectRight::getProfileFromHeaders($headers);
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
          * No result found?
210 210
          */
211 211
         if ($this->hasResult($resultRaw) !== true) {
212
-            throw new NoResultFoundException('No result found for user agent: ' . $userAgent);
212
+            throw new NoResultFoundException('No result found for user agent: '.$userAgent);
213 213
         }
214 214
 
215 215
         /*
Please login to merge, or discard this patch.