@@ -218,7 +218,7 @@ |
||
| 218 | 218 | if (is_array($this->_row)) { |
| 219 | 219 | return json_decode(json_encode($this->_row)); |
| 220 | 220 | } else { |
| 221 | - throw new UnexpectedValueException('I expected that getRawFormat is array() but ' . gettype($this->_row) . ' was given'); |
|
| 221 | + throw new UnexpectedValueException('I expected that getRawFormat is array() but '.gettype($this->_row).' was given'); |
|
| 222 | 222 | } |
| 223 | 223 | } |
| 224 | 224 | |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | if (function_exists('dba_open')) { |
| 30 | - $cache = sys_get_temp_dir() . "/caps.db"; |
|
| 30 | + $cache = sys_get_temp_dir()."/caps.db"; |
|
| 31 | 31 | $this->_db->capabilityCache($cache); |
| 32 | 32 | } |
| 33 | 33 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $this->_source = $source; |
| 41 | 41 | |
| 42 | 42 | if (!file_exists($this->_source)) { |
| 43 | - throw new NotFoundException("The specified file " . $this->_source . " does not exists"); |
|
| 43 | + throw new NotFoundException("The specified file ".$this->_source." does not exists"); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | $this->_sourceType = "FILE"; |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | if (!preg_match("~^https?://~", $source)) { |
| 40 | 40 | if (!file_exists($this->_source)) { |
| 41 | - throw new NotFoundException("The specified file " . $this->_source . " does not exists"); |
|
| 41 | + throw new NotFoundException("The specified file ".$this->_source." does not exists"); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | $this->_sourceType = "FILE"; |
@@ -75,8 +75,8 @@ discard block |
||
| 75 | 75 | if (!$handle) { |
| 76 | 76 | throw new DatasetException("TextFileDataset Socket error: $errstr ($errno)"); |
| 77 | 77 | } else { |
| 78 | - $out = "GET " . $urlParts[4] . " HTTP/1.1\r\n"; |
|
| 79 | - $out .= "Host: " . $urlParts[2] . "\r\n"; |
|
| 78 | + $out = "GET ".$urlParts[4]." HTTP/1.1\r\n"; |
|
| 79 | + $out .= "Host: ".$urlParts[2]."\r\n"; |
|
| 80 | 80 | $out .= "Connection: Close\r\n\r\n"; |
| 81 | 81 | |
| 82 | 82 | fwrite($handle, $out); |
@@ -48,11 +48,11 @@ |
||
| 48 | 48 | |
| 49 | 49 | // Define the query key |
| 50 | 50 | if (is_array($arKey2) && count($arKey2) > 0) { |
| 51 | - $key2 = ":" . md5(json_encode($arKey2)); |
|
| 51 | + $key2 = ":".md5(json_encode($arKey2)); |
|
| 52 | 52 | } else { |
| 53 | 53 | $key2 = ""; |
| 54 | 54 | } |
| 55 | - $key = "qry:" . $key1 . $key2; |
|
| 55 | + $key = "qry:".$key1.$key2; |
|
| 56 | 56 | |
| 57 | 57 | // Get the CACHE |
| 58 | 58 | $cache = $this->_cacheEngine->get($key, $ttl); |
@@ -92,9 +92,9 @@ |
||
| 92 | 92 | $fieldDef = $fieldDefinition[$i]; |
| 93 | 93 | |
| 94 | 94 | $fields[$fieldDef->fieldName] = substr($buffer, $fieldDef->startPos, $fieldDef->length); |
| 95 | - if (!empty($fieldDef->requiredValue) && (!preg_match("/^[" . $fieldDef->requiredValue . "]$/", |
|
| 95 | + if (!empty($fieldDef->requiredValue) && (!preg_match("/^[".$fieldDef->requiredValue."]$/", |
|
| 96 | 96 | $fields[$fieldDef->fieldName]))) { |
| 97 | - throw new IteratorException("Expected the value '" . $fieldDef->requiredValue . "' and I got '" . $fields[$fieldDef->fieldName] . "'"); |
|
| 97 | + throw new IteratorException("Expected the value '".$fieldDef->requiredValue."' and I got '".$fields[$fieldDef->fieldName]."'"); |
|
| 98 | 98 | } elseif (is_array($fieldDef->subTypes)) { |
| 99 | 99 | $fields[$fieldDef->fieldName] = $this->processBuffer($fields[$fieldDef->fieldName], $fieldDef->subTypes); |
| 100 | 100 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | if (!is_null($attr)) { |
| 105 | 105 | $sr->addField($attr->nodeValue, $field->nodeValue); |
| 106 | 106 | } else { |
| 107 | - throw new \InvalidArgumentException('Malformed anydataset file ' . basename($filepath)); |
|
| 107 | + throw new \InvalidArgumentException('Malformed anydataset file '.basename($filepath)); |
|
| 108 | 108 | } |
| 109 | 109 | } |
| 110 | 110 | $sr->acceptChanges(); |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | $x = $y = array(); |
| 317 | 317 | |
| 318 | 318 | $cntSeq = count($seq); |
| 319 | - for ($i = 1; $i < $cntSeq; $i ++) { |
|
| 319 | + for ($i = 1; $i < $cntSeq; $i++) { |
|
| 320 | 320 | if ($seq[$i]->getField($field) <= $k->getField($field)) { |
| 321 | 321 | $x [] = $seq [$i]; |
| 322 | 322 | } else { |