@@ -96,8 +96,8 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function __construct() |
| 98 | 98 | { |
| 99 | - if (! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
| 100 | - throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider'); |
|
| 99 | + if (!file_exists('vendor/'.$this->getPackageName().'/composer.json')) { |
|
| 100 | + throw new PackageNotLoadedException('You need to install the package '.$this->getPackageName().' to use this provider'); |
|
| 101 | 101 | } |
| 102 | 102 | } |
| 103 | 103 | |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * No result found? |
| 202 | 202 | */ |
| 203 | 203 | if ($this->hasResult($resultRaw) !== true) { |
| 204 | - throw new NoResultFoundException('No result found for user agent: ' . $userAgent); |
|
| 204 | + throw new NoResultFoundException('No result found for user agent: '.$userAgent); |
|
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | /* |
@@ -54,6 +54,6 @@ |
||
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - throw new Exception\NoResultFoundException('No result found for user agent: ' . $userAgent); |
|
| 57 | + throw new Exception\NoResultFoundException('No result found for user agent: '.$userAgent); |
|
| 58 | 58 | } |
| 59 | 59 | } |
@@ -97,8 +97,8 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | public function __construct(UserAgent $parser = null) |
| 99 | 99 | { |
| 100 | - if ($parser === null && ! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
| 101 | - throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider'); |
|
| 100 | + if ($parser === null && !file_exists('vendor/'.$this->getPackageName().'/composer.json')) { |
|
| 101 | + throw new PackageNotLoadedException('You need to install the package '.$this->getPackageName().' to use this provider'); |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | $this->parser = $parser; |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * No result found? |
| 211 | 211 | */ |
| 212 | 212 | if ($this->hasResult($browser, $os, $device) !== true) { |
| 213 | - throw new NoResultFoundException('No result found for user agent: ' . $userAgent); |
|
| 213 | + throw new NoResultFoundException('No result found for user agent: '.$userAgent); |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | /* |
@@ -201,15 +201,15 @@ |
||
| 201 | 201 | $version = $this->getMajor(); |
| 202 | 202 | |
| 203 | 203 | if ($this->getMinor() !== null) { |
| 204 | - $version .= '.' . $this->getMinor(); |
|
| 204 | + $version .= '.'.$this->getMinor(); |
|
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | if ($this->getPatch() !== null) { |
| 208 | - $version .= '.' . $this->getPatch(); |
|
| 208 | + $version .= '.'.$this->getPatch(); |
|
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | if ($this->getAlias() !== null) { |
| 212 | - $version = $this->getAlias() . ' - ' . $version; |
|
| 212 | + $version = $this->getAlias().' - '.$version; |
|
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | $this->complete = $version; |
@@ -96,8 +96,8 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function __construct() |
| 98 | 98 | { |
| 99 | - if (! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
| 100 | - throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider'); |
|
| 99 | + if (!file_exists('vendor/'.$this->getPackageName().'/composer.json')) { |
|
| 100 | + throw new PackageNotLoadedException('You need to install the package '.$this->getPackageName().' to use this provider'); |
|
| 101 | 101 | } |
| 102 | 102 | } |
| 103 | 103 | |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * No result found? |
| 202 | 202 | */ |
| 203 | 203 | if ($this->hasResult($resultRaw) !== true) { |
| 204 | - throw new NoResultFoundException('No result found for user agent: ' . $userAgent); |
|
| 204 | + throw new NoResultFoundException('No result found for user agent: '.$userAgent); |
|
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | /* |
@@ -97,8 +97,8 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | public function __construct(UserAgent $parser = null) |
| 99 | 99 | { |
| 100 | - if ($parser === null && ! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
| 101 | - throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider'); |
|
| 100 | + if ($parser === null && !file_exists('vendor/'.$this->getPackageName().'/composer.json')) { |
|
| 101 | + throw new PackageNotLoadedException('You need to install the package '.$this->getPackageName().' to use this provider'); |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | $this->parser = $parser; |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * No result found? |
| 211 | 211 | */ |
| 212 | 212 | if ($this->hasResult($browser, $os, $device) !== true) { |
| 213 | - throw new NoResultFoundException('No result found for user agent: ' . $userAgent); |
|
| 213 | + throw new NoResultFoundException('No result found for user agent: '.$userAgent); |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | /* |
@@ -96,8 +96,8 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function __construct() |
| 98 | 98 | { |
| 99 | - if (! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
| 100 | - throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider'); |
|
| 99 | + if (!file_exists('vendor/'.$this->getPackageName().'/composer.json')) { |
|
| 100 | + throw new PackageNotLoadedException('You need to install the package '.$this->getPackageName().' to use this provider'); |
|
| 101 | 101 | } |
| 102 | 102 | } |
| 103 | 103 | |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * No result found? |
| 202 | 202 | */ |
| 203 | 203 | if ($this->hasResult($resultRaw) !== true) { |
| 204 | - throw new NoResultFoundException('No result found for user agent: ' . $userAgent); |
|
| 204 | + throw new NoResultFoundException('No result found for user agent: '.$userAgent); |
|
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | /* |
@@ -96,8 +96,8 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function __construct() |
| 98 | 98 | { |
| 99 | - if (! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
| 100 | - throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider'); |
|
| 99 | + if (!file_exists('vendor/'.$this->getPackageName().'/composer.json')) { |
|
| 100 | + throw new PackageNotLoadedException('You need to install the package '.$this->getPackageName().' to use this provider'); |
|
| 101 | 101 | } |
| 102 | 102 | } |
| 103 | 103 | |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * No result found? |
| 202 | 202 | */ |
| 203 | 203 | if ($this->hasResult($resultRaw) !== true) { |
| 204 | - throw new NoResultFoundException('No result found for user agent: ' . $userAgent); |
|
| 204 | + throw new NoResultFoundException('No result found for user agent: '.$userAgent); |
|
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | /* |
@@ -97,8 +97,8 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | public function __construct(UserAgent $parser = null) |
| 99 | 99 | { |
| 100 | - if ($parser === null && ! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
| 101 | - throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider'); |
|
| 100 | + if ($parser === null && !file_exists('vendor/'.$this->getPackageName().'/composer.json')) { |
|
| 101 | + throw new PackageNotLoadedException('You need to install the package '.$this->getPackageName().' to use this provider'); |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | $this->parser = $parser; |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * No result found? |
| 211 | 211 | */ |
| 212 | 212 | if ($this->hasResult($browser, $os, $device) !== true) { |
| 213 | - throw new NoResultFoundException('No result found for user agent: ' . $userAgent); |
|
| 213 | + throw new NoResultFoundException('No result found for user agent: '.$userAgent); |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | /* |