@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | |
| 10 | 10 | public function concat($str1, $str2 = null) |
| 11 | 11 | { |
| 12 | - return "concat(" . implode(func_get_args(), ', ') . ")"; |
|
| 12 | + return "concat(".implode(func_get_args(), ', ').")"; |
|
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | /** |
@@ -26,12 +26,12 @@ discard block |
||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | if (stripos($sql, ' LIMIT ') === false) { |
| 29 | - $sql = $sql . " LIMIT x, y"; |
|
| 29 | + $sql = $sql." LIMIT x, y"; |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | return preg_replace( |
| 33 | 33 | '~(\s[Ll][Ii][Mm][Ii][Tt])\s.*?,\s*.*~', |
| 34 | - '$1 ' . $start .', ' .$qty, |
|
| 34 | + '$1 '.$start.', '.$qty, |
|
| 35 | 35 | $sql |
| 36 | 36 | ); |
| 37 | 37 | } |
@@ -32,12 +32,12 @@ |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | if (stripos($sql, ' LIMIT ') === false) { |
| 35 | - $sql = $sql . " LIMIT x, y"; |
|
| 35 | + $sql = $sql." LIMIT x, y"; |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | return preg_replace( |
| 39 | 39 | '~(\s[Ll][Ii][Mm][Ii][Tt])\s.*?,\s*.*~', |
| 40 | - '$1 ' . $start .', ' .$qty, |
|
| 40 | + '$1 '.$start.', '.$qty, |
|
| 41 | 41 | $sql |
| 42 | 42 | ); |
| 43 | 43 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | public function __construct(ConnectionManagement $connMngt) |
| 12 | 12 | { |
| 13 | - $strcnn = $connMngt->getDriver() . ":dbname=" . DbOci8Driver::getTnsString($connMngt); |
|
| 13 | + $strcnn = $connMngt->getDriver().":dbname=".DbOci8Driver::getTnsString($connMngt); |
|
| 14 | 14 | |
| 15 | 15 | $postOptions = [ |
| 16 | 16 | PDO::ATTR_EMULATE_PREPARES => true |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | private $_connectionManagement; |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | - |
|
| 23 | 22 | * @var NoSqlDriverInterface |
| 24 | 23 | */ |
| 25 | 24 | private $_dbDriver = 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); |
@@ -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 | |