@@ -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\Parser\Sqlite; |
5 | 5 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | protected function getDatabasePath() : string |
91 | 91 | { |
92 | - $databasePath = $this->getDataDirectory() . DIRECTORY_SEPARATOR . $this->getDatabaseFileName(); |
|
92 | + $databasePath = $this->getDataDirectory().DIRECTORY_SEPARATOR.$this->getDatabaseFileName(); |
|
93 | 93 | |
94 | 94 | if (!$this->isFileReadable($databasePath)) { |
95 | 95 | if (!file_exists($databasePath)) { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | { |
117 | 117 | // Get database to use, saved in the link file (as symlinks are not available or only |
118 | 118 | // with admin permissions on Windows). |
119 | - $linkFile = $this->getDataDirectory() . DIRECTORY_SEPARATOR . Parser::LINK_FILENAME; |
|
119 | + $linkFile = $this->getDataDirectory().DIRECTORY_SEPARATOR.Parser::LINK_FILENAME; |
|
120 | 120 | if ($this->isFileReadable($linkFile)) { |
121 | 121 | return (string)file_get_contents($linkFile); |
122 | 122 | } elseif (!file_exists($linkFile)) { |
@@ -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 | } |