@@ -92,7 +92,7 @@ |
||
92 | 92 | */ |
93 | 93 | public function __construct() |
94 | 94 | { |
95 | - if (! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
95 | + if (!file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
96 | 96 | throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider'); |
97 | 97 | } |
98 | 98 | } |
@@ -200,7 +200,7 @@ |
||
200 | 200 | |
201 | 201 | /** |
202 | 202 | * |
203 | - * @param Model\UserAgent $device |
|
203 | + * @param Model\Device $device |
|
204 | 204 | * @param DeviceDetector $dd |
205 | 205 | */ |
206 | 206 | private function hydrateDevice(Model\Device $device, DeviceDetector $dd) |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * no json returned? |
114 | 114 | */ |
115 | 115 | $contentType = $response->getHeader('Content-Type'); |
116 | - if (! isset($contentType[0]) || $contentType[0] != 'application/json') { |
|
116 | + if (!isset($contentType[0]) || $contentType[0] != 'application/json') { |
|
117 | 117 | throw new Exception\RequestException('Could not get valid "application/json" response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"'); |
118 | 118 | } |
119 | 119 | |
@@ -144,14 +144,14 @@ discard block |
||
144 | 144 | throw new Exception\InvalidCredentialsException('Your API key "' . $this->apiKey . '" is not valid for ' . $this->getName()); |
145 | 145 | } |
146 | 146 | |
147 | - if (! isset($content->result) || $content->result !== 'success') { |
|
147 | + if (!isset($content->result) || $content->result !== 'success') { |
|
148 | 148 | throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"'); |
149 | 149 | } |
150 | 150 | |
151 | 151 | /* |
152 | 152 | * Missing data? |
153 | 153 | */ |
154 | - if (! $content instanceof stdClass || ! isset($content->parse) || ! $content->parse instanceof stdClass) { |
|
154 | + if (!$content instanceof stdClass || !isset($content->parse) || !$content->parse instanceof stdClass) { |
|
155 | 155 | throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . print_r($content, true) . '"'); |
156 | 156 | } |
157 | 157 |
@@ -92,7 +92,7 @@ |
||
92 | 92 | */ |
93 | 93 | public function __construct() |
94 | 94 | { |
95 | - if (! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
95 | + if (!file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
96 | 96 | throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider'); |
97 | 97 | } |
98 | 98 | } |
@@ -114,7 +114,6 @@ |
||
114 | 114 | /** |
115 | 115 | * |
116 | 116 | * @param Model\Bot $bot |
117 | - * @param array $browserRaw |
|
118 | 117 | */ |
119 | 118 | private function hydrateBot(Model\Bot $bot, array $resultRaw) |
120 | 119 | { |
@@ -92,7 +92,7 @@ |
||
92 | 92 | */ |
93 | 93 | public function __construct() |
94 | 94 | { |
95 | - if (! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
95 | + if (!file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
96 | 96 | throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider'); |
97 | 97 | } |
98 | 98 | } |
@@ -109,7 +109,7 @@ |
||
109 | 109 | |
110 | 110 | public function getVersion() |
111 | 111 | { |
112 | - $version = $this->getParser()->getWurflInfo()->version; |
|
112 | + $version = $this->getParser()->getWurflInfo()->version; |
|
113 | 113 | |
114 | 114 | preg_match("/\d+(?:\.\d+)+/", $version, $result); |
115 | 115 |
@@ -74,7 +74,7 @@ |
||
74 | 74 | */ |
75 | 75 | public function __construct(Parser $parser = null) |
76 | 76 | { |
77 | - if ($parser === null && ! file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
77 | + if ($parser === null && !file_exists('vendor/' . $this->getPackageName() . '/composer.json')) { |
|
78 | 78 | throw new PackageNotLoadedException('You need to install the package ' . $this->getPackageName() . ' to use this provider'); |
79 | 79 | } |
80 | 80 |