@@ -18,5 +18,5 @@ |
||
| 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 | } |
@@ -11,7 +11,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -16,7 +16,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -115,7 +115,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 165 | 165 | */ |
| 166 | 166 | public function __toString() |
| 167 | 167 | { |
| 168 | - return (string)$this->get(); |
|
| 168 | + return (string) $this->get(); |
|
| 169 | 169 | } |
| 170 | 170 | } |