@@ -147,12 +147,12 @@ |
||
147 | 147 | |
148 | 148 | // Define the query key |
149 | 149 | if (is_array($arKey2) && count($arKey2) > 0) { |
150 | - $key2 = ":" . md5(json_encode($arKey2)); |
|
150 | + $key2 = ":".md5(json_encode($arKey2)); |
|
151 | 151 | } else { |
152 | 152 | $key2 = ""; |
153 | 153 | } |
154 | 154 | |
155 | - return "qry:" . $key1 . $key2; |
|
155 | + return "qry:".$key1.$key2; |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | public function getScalar($sql, $array = null) |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | if (!preg_match("~^https?://~", $source)) { |
39 | 39 | if (!file_exists($this->source)) { |
40 | - throw new NotFoundException("The specified file " . $this->source . " does not exists"); |
|
40 | + throw new NotFoundException("The specified file ".$this->source." does not exists"); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | $this->sourceType = "FILE"; |
@@ -74,8 +74,8 @@ discard block |
||
74 | 74 | if (!$handle) { |
75 | 75 | throw new DatasetException("TextFileDataset Socket error: $errstr ($errno)"); |
76 | 76 | } else { |
77 | - $out = "GET " . $urlParts[4] . " HTTP/1.1\r\n"; |
|
78 | - $out .= "Host: " . $urlParts[2] . "\r\n"; |
|
77 | + $out = "GET ".$urlParts[4]." HTTP/1.1\r\n"; |
|
78 | + $out .= "Host: ".$urlParts[2]."\r\n"; |
|
79 | 79 | $out .= "Connection: Close\r\n\r\n"; |
80 | 80 | |
81 | 81 | fwrite($handle, $out); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | if (!is_null($attr)) { |
106 | 106 | $sr->addField($attr->nodeValue, $field->nodeValue); |
107 | 107 | } else { |
108 | - throw new \InvalidArgumentException('Malformed anydataset file ' . basename($filepath)); |
|
108 | + throw new \InvalidArgumentException('Malformed anydataset file '.basename($filepath)); |
|
109 | 109 | } |
110 | 110 | } |
111 | 111 | $sr->acceptChanges(); |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | $left = $right = array(); |
321 | 321 | |
322 | 322 | $cntSeq = count($seq); |
323 | - for ($i = 1; $i < $cntSeq; $i ++) { |
|
323 | + for ($i = 1; $i < $cntSeq; $i++) { |
|
324 | 324 | if ($seq[$i]->getField($field) <= $key->getField($field)) { |
325 | 325 | $left[] = $seq[$i]; |
326 | 326 | } else { |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | |
331 | 331 | return array_merge( |
332 | 332 | $this->quickSortExec($left, $field), |
333 | - [ $key ], |
|
333 | + [$key], |
|
334 | 334 | $this->quickSortExec($right, $field) |
335 | 335 | ); |
336 | 336 | } |
@@ -103,7 +103,7 @@ |
||
103 | 103 | $fields[$fieldDef->fieldName] = substr($buffer, $fieldDef->startPos, $fieldDef->length); |
104 | 104 | if (!empty($fieldDef->requiredValue) |
105 | 105 | && ( |
106 | - !preg_match("/^[" . $fieldDef->requiredValue . "]$/", $fields[$fieldDef->fieldName]) |
|
106 | + !preg_match("/^[".$fieldDef->requiredValue."]$/", $fields[$fieldDef->fieldName]) |
|
107 | 107 | ) |
108 | 108 | ) { |
109 | 109 | throw new IteratorException( |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | $parts = array(); |
169 | 169 | if (!preg_match($pat, $this->getDbConnectionString(), $parts)) { |
170 | 170 | throw new InvalidArgumentException( |
171 | - "Connection string " . $this->getDbConnectionString() . " is invalid! Please fix it." |
|
171 | + "Connection string ".$this->getDbConnectionString()." is invalid! Please fix it." |
|
172 | 172 | ); |
173 | 173 | } |
174 | 174 | |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | |
178 | 178 | if (!isset($parts['path']) && !isset($parts['host'])) { |
179 | 179 | throw new InvalidArgumentException( |
180 | - "Connection string " . $this->getDbConnectionString() . " is invalid! Please fix it." |
|
180 | + "Connection string ".$this->getDbConnectionString()." is invalid! Please fix it." |
|
181 | 181 | ); |
182 | 182 | } |
183 | 183 |