@@ -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 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | { |
110 | 110 | if (!is_string($statement)) { |
111 | 111 | throw new InvalidArgumentException( |
112 | - "Invalid type '" . gettype($statement) . "' for argument 'statement'." |
|
112 | + "Invalid type '".gettype($statement)."' for argument 'statement'." |
|
113 | 113 | ); |
114 | 114 | } |
115 | 115 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | { |
139 | 139 | if (!is_string($statement)) { |
140 | 140 | throw new InvalidArgumentException( |
141 | - "Invalid type '" . gettype($statement) . "' for argument 'statement'." |
|
141 | + "Invalid type '".gettype($statement)."' for argument 'statement'." |
|
142 | 142 | ); |
143 | 143 | } |
144 | 144 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | { |
163 | 163 | if (!is_string($statement)) { |
164 | 164 | throw new InvalidArgumentException( |
165 | - "Invalid type '" . gettype($statement) . "' for argument 'statement'." |
|
165 | + "Invalid type '".gettype($statement)."' for argument 'statement'." |
|
166 | 166 | ); |
167 | 167 | } |
168 | 168 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | if (!is_string($fileName)) { |
48 | 48 | throw new InvalidArgumentException( |
49 | - "Invalid type '" . gettype($fileName) . "' for argument 'fileName'." |
|
49 | + "Invalid type '".gettype($fileName)."' for argument 'fileName'." |
|
50 | 50 | ); |
51 | 51 | } |
52 | 52 |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | { |
35 | 35 | if (!is_string($fileName)) { |
36 | 36 | throw new InvalidArgumentException( |
37 | - "Invalid type '" . gettype($fileName) . "' for argument 'fileName'." |
|
37 | + "Invalid type '".gettype($fileName)."' for argument 'fileName'." |
|
38 | 38 | ); |
39 | 39 | } |
40 | 40 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | self::$adapterClasses = $rememberClasses; |
69 | 69 | |
70 | 70 | throw new InvalidArgumentException( |
71 | - "A value in the class name array is of type '" . gettype($className) . "'. String expected." |
|
71 | + "A value in the class name array is of type '".gettype($className)."'. String expected." |
|
72 | 72 | ); |
73 | 73 | } |
74 | 74 | } |
@@ -86,12 +86,12 @@ discard block |
||
86 | 86 | { |
87 | 87 | if (!is_string($className)) { |
88 | 88 | throw new InvalidArgumentException( |
89 | - "Invalid type '" . gettype($className) . "' for argument 'className'." |
|
89 | + "Invalid type '".gettype($className)."' for argument 'className'." |
|
90 | 90 | ); |
91 | 91 | } |
92 | 92 | if (!is_string($fileName)) { |
93 | 93 | throw new InvalidArgumentException( |
94 | - "Invalid type '" . gettype($fileName) . "' for argument 'fileName'." |
|
94 | + "Invalid type '".gettype($fileName)."' for argument 'fileName'." |
|
95 | 95 | ); |
96 | 96 | } |
97 | 97 |
@@ -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 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | { |
107 | 107 | if (!is_string($statement)) { |
108 | 108 | throw new InvalidArgumentException( |
109 | - "Invalid type '" . gettype($statement) . "' for argument 'statement'." |
|
109 | + "Invalid type '".gettype($statement)."' for argument 'statement'." |
|
110 | 110 | ); |
111 | 111 | } |
112 | 112 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | { |
129 | 129 | if (!is_string($statement)) { |
130 | 130 | throw new InvalidArgumentException( |
131 | - "Invalid type '" . gettype($statement) . "' for argument 'statement'." |
|
131 | + "Invalid type '".gettype($statement)."' for argument 'statement'." |
|
132 | 132 | ); |
133 | 133 | } |
134 | 134 | |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | { |
152 | 152 | if (!is_string($statement)) { |
153 | 153 | throw new InvalidArgumentException( |
154 | - "Invalid type '" . gettype($statement) . "' for argument 'statement'." |
|
154 | + "Invalid type '".gettype($statement)."' for argument 'statement'." |
|
155 | 155 | ); |
156 | 156 | } |
157 | 157 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | { |
24 | 24 | if (!is_bool($returnArray)) { |
25 | 25 | throw new InvalidArgumentException( |
26 | - "Invalid type '" . gettype($returnArray) . "' for argument 'returnArray'." |
|
26 | + "Invalid type '".gettype($returnArray)."' for argument 'returnArray'." |
|
27 | 27 | ); |
28 | 28 | } |
29 | 29 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | { |
43 | 43 | if (!is_int($options)) { |
44 | 44 | throw new InvalidArgumentException( |
45 | - "Invalid type '" . gettype($options) . "' for argument 'options'." |
|
45 | + "Invalid type '".gettype($options)."' for argument 'options'." |
|
46 | 46 | ); |
47 | 47 | } |
48 | 48 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | { |
67 | 67 | if (!is_int($options)) { |
68 | 68 | throw new InvalidArgumentException( |
69 | - "Invalid type '" . gettype($options) . "' for argument 'options'." |
|
69 | + "Invalid type '".gettype($options)."' for argument 'options'." |
|
70 | 70 | ); |
71 | 71 | } |
72 | 72 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | { |
110 | 110 | if (!is_string($key)) { |
111 | 111 | throw new InvalidArgumentException( |
112 | - "Invalid type '" . gettype($key) . "' for argument 'key'." |
|
112 | + "Invalid type '".gettype($key)."' for argument 'key'." |
|
113 | 113 | ); |
114 | 114 | } |
115 | 115 | |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | { |
135 | 135 | if (!is_string($key)) { |
136 | 136 | throw new InvalidArgumentException( |
137 | - "Invalid type '" . gettype($key) . "' for argument 'key'." |
|
137 | + "Invalid type '".gettype($key)."' for argument 'key'." |
|
138 | 138 | ); |
139 | 139 | } |
140 | 140 | |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | { |
179 | 179 | if (!is_string($key)) { |
180 | 180 | throw new InvalidArgumentException( |
181 | - "Invalid type '" . gettype($key) . "' for argument 'key'." |
|
181 | + "Invalid type '".gettype($key)."' for argument 'key'." |
|
182 | 182 | ); |
183 | 183 | } |
184 | 184 | |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | { |
218 | 218 | if (!is_string($key)) { |
219 | 219 | throw new InvalidArgumentException( |
220 | - "Invalid type '" . gettype($key) . "' for argument 'key'." |
|
220 | + "Invalid type '".gettype($key)."' for argument 'key'." |
|
221 | 221 | ); |
222 | 222 | } |
223 | 223 | |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | { |
245 | 245 | if (!is_string($key)) { |
246 | 246 | throw new InvalidArgumentException( |
247 | - "Invalid type '" . gettype($key) . "' for argument 'key'." |
|
247 | + "Invalid type '".gettype($key)."' for argument 'key'." |
|
248 | 248 | ); |
249 | 249 | } |
250 | 250 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | if (!is_string($property)) { |
23 | 23 | throw new InvalidArgumentException( |
24 | - "Invalid type '" . gettype($property) . "' for argument 'property'." |
|
24 | + "Invalid type '".gettype($property)."' for argument 'property'." |
|
25 | 25 | ); |
26 | 26 | } |
27 | 27 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | 'ini-load', |
59 | 59 | null, |
60 | 60 | InputOption::VALUE_OPTIONAL, |
61 | - 'Will download the parser data (of the given type - "lite", "full" or "standard") for the update. ' . |
|
61 | + 'Will download the parser data (of the given type - "lite", "full" or "standard") for the update. '. |
|
62 | 62 | 'If no type set, the "standard" type is used.' |
63 | 63 | ) |
64 | 64 | ->addOption( |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | { |
108 | 108 | if (!is_int($autoUpdateProbability)) { |
109 | 109 | throw new InvalidArgumentException( |
110 | - "Invalid type '" . gettype($autoUpdateProbability) . "' for argument 'autoUpdateProbability'." |
|
110 | + "Invalid type '".gettype($autoUpdateProbability)."' for argument 'autoUpdateProbability'." |
|
111 | 111 | ); |
112 | 112 | } |
113 | 113 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | { |
129 | 129 | if (!is_string($userAgent) && $userAgent !== null) { |
130 | 130 | throw new InvalidArgumentException( |
131 | - "Invalid type '" . gettype($userAgent) . "' for argument 'userAgent'." |
|
131 | + "Invalid type '".gettype($userAgent)."' for argument 'userAgent'." |
|
132 | 132 | ); |
133 | 133 | } |
134 | 134 | |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | { |
178 | 178 | if (!is_bool($forceUpdate)) { |
179 | 179 | throw new InvalidArgumentException( |
180 | - "Invalid type '" . gettype($forceUpdate) . "' for argument 'forceUpdate'." |
|
180 | + "Invalid type '".gettype($forceUpdate)."' for argument 'forceUpdate'." |
|
181 | 181 | ); |
182 | 182 | } |
183 | 183 | |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | $reader = $parser->getReader(true); |
205 | 205 | if ($reader->isUpdateRequired() === true) { |
206 | 206 | throw new ParserRuntimeException( |
207 | - 'There is something wrong with the parser. The data have been re-generated without errors, ' . |
|
207 | + 'There is something wrong with the parser. The data have been re-generated without errors, '. |
|
208 | 208 | 'but the reader still requires an update of the data...' |
209 | 209 | ); |
210 | 210 | } |
@@ -228,12 +228,12 @@ discard block |
||
228 | 228 | { |
229 | 229 | if (!is_string($userAgent)) { |
230 | 230 | throw new InvalidArgumentException( |
231 | - "Invalid type '" . gettype($userAgent) . "' for argument 'userAgent'." |
|
231 | + "Invalid type '".gettype($userAgent)."' for argument 'userAgent'." |
|
232 | 232 | ); |
233 | 233 | } |
234 | 234 | if (!is_bool($returnArray)) { |
235 | 235 | throw new InvalidArgumentException( |
236 | - "Invalid type '" . gettype($returnArray) . "' for argument 'returnArray'." |
|
236 | + "Invalid type '".gettype($returnArray)."' for argument 'returnArray'." |
|
237 | 237 | ); |
238 | 238 | } |
239 | 239 |