@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Crossjoin\Browscap\Source; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Crossjoin\Browscap\Command; |
| 5 | 5 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | 'ini-load', |
| 60 | 60 | null, |
| 61 | 61 | InputOption::VALUE_OPTIONAL, |
| 62 | - 'Will download the parser data (of the given type - "lite", "full" or "standard") for the update. ' . |
|
| 62 | + 'Will download the parser data (of the given type - "lite", "full" or "standard") for the update. '. |
|
| 63 | 63 | 'If no type set, the "standard" type is used.' |
| 64 | 64 | ) |
| 65 | 65 | ->addOption( |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Crossjoin\Browscap\Parser\Sqlite\Adapter; |
| 5 | 5 | |
@@ -53,11 +53,11 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | if ($this->connection === null) { |
| 55 | 55 | try { |
| 56 | - $this->connection = new \PDO('sqlite:' . $this->getFileName()); |
|
| 56 | + $this->connection = new \PDO('sqlite:'.$this->getFileName()); |
|
| 57 | 57 | $this->connection->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); |
| 58 | 58 | } catch (\PDOException $e) { |
| 59 | 59 | throw new ParserConfigurationException( |
| 60 | - "Could not connect to database '" . $this->getFileName() . "'.", 0, $e |
|
| 60 | + "Could not connect to database '".$this->getFileName()."'.", 0, $e |
|
| 61 | 61 | ); |
| 62 | 62 | } |
| 63 | 63 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Crossjoin\Browscap\Parser\Sqlite\Adapter; |
| 5 | 5 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $this->connection = new \SQLite3($this->getFileName()); |
| 57 | 57 | } catch (\Exception $e) { |
| 58 | 58 | throw new ParserConfigurationException( |
| 59 | - "Could not connect to database '" . $this->getFileName() . "'.", 0, $e |
|
| 59 | + "Could not connect to database '".$this->getFileName()."'.", 0, $e |
|
| 60 | 60 | ); |
| 61 | 61 | } |
| 62 | 62 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Crossjoin\Browscap\Parser\Sqlite; |
| 5 | 5 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | { |
| 27 | 27 | use PropertyFilterTrait; |
| 28 | 28 | |
| 29 | - const SUB_DIRECTORY = 'browscap' . DIRECTORY_SEPARATOR . 'sqlite'; |
|
| 29 | + const SUB_DIRECTORY = 'browscap'.DIRECTORY_SEPARATOR.'sqlite'; |
|
| 30 | 30 | const LINK_FILENAME = 'browscap.link'; |
| 31 | 31 | |
| 32 | 32 | /** |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $this->checkDirectory($directory, false); |
| 121 | 121 | |
| 122 | 122 | // Check/create sub directory |
| 123 | - $directory = $directory . DIRECTORY_SEPARATOR . self::SUB_DIRECTORY; |
|
| 123 | + $directory = $directory.DIRECTORY_SEPARATOR.self::SUB_DIRECTORY; |
|
| 124 | 124 | $this->checkDirectory($directory, true); |
| 125 | 125 | |
| 126 | 126 | $this->dataDirectory = $directory; |
@@ -203,9 +203,9 @@ discard block |
||
| 203 | 203 | sort($properties); |
| 204 | 204 | |
| 205 | 205 | return sha1( |
| 206 | - static::class . '|' . |
|
| 207 | - static::VERSION . '|' . |
|
| 208 | - get_class($filter) . '|' . |
|
| 206 | + static::class.'|'. |
|
| 207 | + static::VERSION.'|'. |
|
| 208 | + get_class($filter).'|'. |
|
| 209 | 209 | implode(',', $properties) |
| 210 | 210 | ); |
| 211 | 211 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Crossjoin\Browscap; |
| 5 | 5 | |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | $reader = $parser->getReader(true); |
| 182 | 182 | if ($reader->isUpdateRequired() === true) { |
| 183 | 183 | throw new ParserRuntimeException( |
| 184 | - 'There is something wrong with the parser. The data have been re-generated without errors, ' . |
|
| 184 | + 'There is something wrong with the parser. The data have been re-generated without errors, '. |
|
| 185 | 185 | 'but the reader still requires an update of the data...' |
| 186 | 186 | ); |
| 187 | 187 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Crossjoin\Browscap\Source; |
| 5 | 5 | |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | // Check status code |
| 138 | 138 | if ($response->getStatusCode() !== 200) { |
| 139 | 139 | throw new SourceUnavailableException( |
| 140 | - 'HTTP error: ' . $response->getStatusCode() . ' ' . $response->getReasonPhrase(), |
|
| 140 | + 'HTTP error: '.$response->getStatusCode().' '.$response->getReasonPhrase(), |
|
| 141 | 141 | 1459162268 |
| 142 | 142 | ); |
| 143 | 143 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Crossjoin\Browscap\Source; |
| 5 | 5 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | self::$sourceClasses = $rememberClasses; |
| 58 | 58 | |
| 59 | 59 | throw new InvalidArgumentException( |
| 60 | - "A value in the class name array is of type '" . gettype($className) . "'. String expected." |
|
| 60 | + "A value in the class name array is of type '".gettype($className)."'. String expected." |
|
| 61 | 61 | ); |
| 62 | 62 | } |
| 63 | 63 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Crossjoin\Browscap\Source\Ini; |
| 5 | 5 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function getReleaseTime() : int |
| 54 | 54 | { |
| 55 | - $stream = $this->loadContent(self::BASE_URI . '/version'); |
|
| 55 | + $stream = $this->loadContent(self::BASE_URI.'/version'); |
|
| 56 | 56 | |
| 57 | 57 | if (!$stream->isReadable()) { |
| 58 | 58 | throw new SourceUnavailableException('Source stream is not readable.', 1459162265); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function getVersion() : int |
| 71 | 71 | { |
| 72 | - $stream = $this->loadContent(self::BASE_URI . '/version-number'); |
|
| 72 | + $stream = $this->loadContent(self::BASE_URI.'/version-number'); |
|
| 73 | 73 | |
| 74 | 74 | if (!$stream->isReadable()) { |
| 75 | 75 | throw new SourceUnavailableException('Source stream is not readable.', 1459162266); |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | $this->type = $type; |
| 103 | - $this->setSourceUri(self::BASE_URI . '/stream?q=' . $sourceType); |
|
| 103 | + $this->setSourceUri(self::BASE_URI.'/stream?q='.$sourceType); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |