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.
Passed
Pull Request — master (#38)
by Choraimy
15:14
created
src/Contracts/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,5 +18,5 @@
 block discarded – undo
18 18
      * @param array $options
19 19
      * @return \LaraCrafts\UrlShortener\Builder
20 20
      */
21
-    public function shorten($uri, array $options = []);
21
+    public function shorten($uri, array $options = [ ]);
22 22
 }
Please login to merge, or discard this patch.
src/UrlShortenerManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      */
12 12
     public function getDefaultDriver()
13 13
     {
14
-        return $this->app['config']['url-shortener.default'];
14
+        return $this->app[ 'config' ][ 'url-shortener.default' ];
15 15
     }
16 16
 
17 17
     /**
@@ -22,6 +22,6 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function setDefaultDriver(string $name)
24 24
     {
25
-        $this->app['config']['session.driver'] = $name;
25
+        $this->app[ 'config' ][ 'session.driver' ] = $name;
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/UrlShortener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      * @param array $options
17 17
      * @return void
18 18
      */
19
-    public function __construct($driver, array $options = [])
19
+    public function __construct($driver, array $options = [ ])
20 20
     {
21 21
         $this->driver = $driver;
22 22
         $this->options = $options;
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     /**
34 34
      * {@inheritDoc}
35 35
      */
36
-    public function shorten($uri, array $options = [])
36
+    public function shorten($uri, array $options = [ ])
37 37
     {
38 38
         return new Builder($this, $uri, array_merge_recursive($this->options, $options));
39 39
     }
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         }
116 116
 
117 117
         if (is_string($uri) || (is_object($uri) && method_exists($uri, '__toString'))) {
118
-            return new Uri((string)$uri);
118
+            return new Uri((string) $uri);
119 119
         }
120 120
 
121 121
         throw new InvalidArgumentException('URI must be a string or UriInterface');
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         if (is_array($key)) {
153 153
             $this->options = array_merge($this->options, $key);
154 154
         } else {
155
-            $this->options[$key] = $value;
155
+            $this->options[ $key ] = $value;
156 156
         }
157 157
 
158 158
         return $this;
@@ -165,6 +165,6 @@  discard block
 block discarded – undo
165 165
      */
166 166
     public function __toString()
167 167
     {
168
-        return (string)$this->get();
168
+        return (string) $this->get();
169 169
     }
170 170
 }
Please login to merge, or discard this patch.