| @@ -55,7 +55,7 @@ | ||
| 55 | 55 | */ | 
| 56 | 56 | private function getComposerPackages() | 
| 57 | 57 |      { | 
| 58 | -        if (! file_exists('composer.lock')) { | |
| 58 | +        if (!file_exists('composer.lock')) { | |
| 59 | 59 | return; | 
| 60 | 60 | } | 
| 61 | 61 | |
| @@ -83,7 +83,7 @@ discard block | ||
| 83 | 83 | */ | 
| 84 | 84 | private function hasResult(stdClass $resultRaw) | 
| 85 | 85 |      { | 
| 86 | -        if (! isset($resultRaw->browser)) { | |
| 86 | +        if (!isset($resultRaw->browser)) { | |
| 87 | 87 | return false; | 
| 88 | 88 | } | 
| 89 | 89 | |
| @@ -101,7 +101,7 @@ discard block | ||
| 101 | 101 | */ | 
| 102 | 102 | private function isBot(stdClass $resultRaw) | 
| 103 | 103 |      { | 
| 104 | -        if (! isset($resultRaw->crawler) || $resultRaw->crawler !== true) { | |
| 104 | +        if (!isset($resultRaw->crawler) || $resultRaw->crawler !== true) { | |
| 105 | 105 | return false; | 
| 106 | 106 | } | 
| 107 | 107 | |
| @@ -40,7 +40,7 @@ | ||
| 40 | 40 | |
| 41 | 41 | public function __construct() | 
| 42 | 42 |      { | 
| 43 | -        if (! function_exists('parse_user_agent')) { | |
| 43 | +        if (!function_exists('parse_user_agent')) { | |
| 44 | 44 |              throw new Exception\PackageNotLoaded('You need to install ' . $this->getComposerPackageName() . ' to use this provider'); | 
| 45 | 45 | } | 
| 46 | 46 | } | 
| @@ -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) | 
| @@ -131,7 +131,7 @@ discard block | ||
| 131 | 131 | * no json returned? | 
| 132 | 132 | */ | 
| 133 | 133 |          $contentType = $response->getHeader('Content-Type'); | 
| 134 | -        if (! isset($contentType[0]) || $contentType[0] != 'application/json') { | |
| 134 | +        if (!isset($contentType[0]) || $contentType[0] != 'application/json') { | |
| 135 | 135 |              throw new Exception\RequestException('Could not get valid "application/json" response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"'); | 
| 136 | 136 | } | 
| 137 | 137 | |
| @@ -147,7 +147,7 @@ discard block | ||
| 147 | 147 | /* | 
| 148 | 148 | * Missing data? | 
| 149 | 149 | */ | 
| 150 | -        if (! $content instanceof stdClass || ! isset($content->info)) { | |
| 150 | +        if (!$content instanceof stdClass || !isset($content->info)) { | |
| 151 | 151 |              throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"'); | 
| 152 | 152 | } | 
| 153 | 153 | |
| @@ -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) | 
| @@ -126,7 +126,7 @@ discard block | ||
| 126 | 126 | * no json returned? | 
| 127 | 127 | */ | 
| 128 | 128 |          $contentType = $response->getHeader('Content-Type'); | 
| 129 | -        if (! isset($contentType[0]) || $contentType[0] != 'application/json') { | |
| 129 | +        if (!isset($contentType[0]) || $contentType[0] != 'application/json') { | |
| 130 | 130 |              throw new Exception\RequestException('Could not get valid "application/json" response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"'); | 
| 131 | 131 | } | 
| 132 | 132 | |
| @@ -142,7 +142,7 @@ discard block | ||
| 142 | 142 | /* | 
| 143 | 143 | * Missing data? | 
| 144 | 144 | */ | 
| 145 | -        if (! $content instanceof stdClass || ! isset($content->data)) { | |
| 145 | +        if (!$content instanceof stdClass || !isset($content->data)) { | |
| 146 | 146 |              throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Data is missing "' . $response->getBody()->getContents() . '"'); | 
| 147 | 147 | } | 
| 148 | 148 | |
| @@ -126,7 +126,7 @@ discard block | ||
| 126 | 126 | * no json returned? | 
| 127 | 127 | */ | 
| 128 | 128 |          $contentType = $response->getHeader('Content-Type'); | 
| 129 | -        if (! isset($contentType[0]) || $contentType[0] != 'application/json;charset=UTF-8') { | |
| 129 | +        if (!isset($contentType[0]) || $contentType[0] != 'application/json;charset=UTF-8') { | |
| 130 | 130 |              throw new Exception\RequestException('Could not get valid "application/json" response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"'); | 
| 131 | 131 | } | 
| 132 | 132 | |
| @@ -155,7 +155,7 @@ discard block | ||
| 155 | 155 | /* | 
| 156 | 156 | * Missing data? | 
| 157 | 157 | */ | 
| 158 | -        if (! $content instanceof stdClass) { | |
| 158 | +        if (!$content instanceof stdClass) { | |
| 159 | 159 |              throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"'); | 
| 160 | 160 | } | 
| 161 | 161 | |
| @@ -103,13 +103,13 @@ | ||
| 103 | 103 | * no json returned? | 
| 104 | 104 | */ | 
| 105 | 105 |          $contentType = $response->getHeader('Content-Type'); | 
| 106 | -        if (! isset($contentType[0]) || $contentType[0] != 'application/json') { | |
| 106 | +        if (!isset($contentType[0]) || $contentType[0] != 'application/json') { | |
| 107 | 107 |              throw new Exception\RequestException('Could not get valid "application/json" response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"'); | 
| 108 | 108 | } | 
| 109 | 109 | |
| 110 | 110 | $content = json_decode($response->getBody()->getContents()); | 
| 111 | 111 | |
| 112 | -        if (! $content instanceof stdClass) { | |
| 112 | +        if (!$content instanceof stdClass) { | |
| 113 | 113 |              throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"'); | 
| 114 | 114 | } | 
| 115 | 115 | |
| @@ -107,7 +107,7 @@ discard block | ||
| 107 | 107 | * no json returned? | 
| 108 | 108 | */ | 
| 109 | 109 |          $contentType = $response->getHeader('Content-Type'); | 
| 110 | -        if (! isset($contentType[0]) || $contentType[0] != 'application/json') { | |
| 110 | +        if (!isset($contentType[0]) || $contentType[0] != 'application/json') { | |
| 111 | 111 |              throw new Exception\RequestException('Could not get valid "application/json" response from "' . $request->getUri() . '". Response is "' . $response->getBody()->getContents() . '"'); | 
| 112 | 112 | } | 
| 113 | 113 | |
| @@ -145,7 +145,7 @@ discard block | ||
| 145 | 145 | /* | 
| 146 | 146 | * Missing data? | 
| 147 | 147 | */ | 
| 148 | -        if (! $content instanceof stdClass || ! isset($content->parse) || ! $content->parse instanceof stdClass) { | |
| 148 | +        if (!$content instanceof stdClass || !isset($content->parse) || !$content->parse instanceof stdClass) { | |
| 149 | 149 |              throw new Exception\RequestException('Could not get valid response from "' . $request->getUri() . '". Response is "' . print_r($content, true) . '"'); | 
| 150 | 150 | } | 
| 151 | 151 | |
| @@ -99,7 +99,7 @@ | ||
| 99 | 99 | public function getUpdateDate() | 
| 100 | 100 |      { | 
| 101 | 101 | // 2015-10-16 11:09:44 -0400 | 
| 102 | - $lastUpdated = $this->getParser()->getWurflInfo()->lastUpdated; | |
| 102 | + $lastUpdated = $this->getParser()->getWurflInfo()->lastUpdated; | |
| 103 | 103 | |
| 104 | 104 |          if ($lastUpdated == '') { | 
| 105 | 105 | return; |