@@ -162,9 +162,9 @@ discard block |
||
162 | 162 | } |
163 | 163 | } |
164 | 164 | |
165 | - if (method_exists($obj, 'get' . $propName)) { |
|
166 | - if (is_callable([$obj, 'get' . $propName])) { |
|
167 | - return $obj->{'get' . $propName}(); |
|
165 | + if (method_exists($obj, 'get'.$propName)) { |
|
166 | + if (is_callable([$obj, 'get'.$propName])) { |
|
167 | + return $obj->{'get'.$propName}(); |
|
168 | 168 | } |
169 | 169 | } else if (is_null($prop)) { |
170 | 170 | return $obj->{$propName}; |
@@ -195,8 +195,8 @@ discard block |
||
195 | 195 | |
196 | 196 | if ($obj instanceof SingleRow) { |
197 | 197 | $obj->setField($propName, $value); |
198 | - } else if (method_exists($obj, 'set' . $propName)) { |
|
199 | - $obj->{'set' . $propName}($value); |
|
198 | + } else if (method_exists($obj, 'set'.$propName)) { |
|
199 | + $obj->{'set'.$propName}($value); |
|
200 | 200 | } elseif (isset($obj->{$propName}) || $obj instanceof stdClass) { |
201 | 201 | $obj->{$propName} = $value; |
202 | 202 | } else { |
@@ -148,7 +148,7 @@ |
||
148 | 148 | public function getDbFunctions() |
149 | 149 | { |
150 | 150 | if (is_null($this->_dbFunction)) { |
151 | - $dbFunc = "\\ByJG\\AnyDataset\\Database\\DB" . ucfirst($this->_connectionManagement->getDriver()) . "Functions"; |
|
151 | + $dbFunc = "\\ByJG\\AnyDataset\\Database\\DB".ucfirst($this->_connectionManagement->getDriver())."Functions"; |
|
152 | 152 | $this->_dbFunction = new $dbFunc(); |
153 | 153 | } |
154 | 154 |
@@ -42,10 +42,10 @@ discard block |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | $this->_rows = array(); |
45 | - $rowsaux = preg_split("/" . $this->_rowsep . "/", $linha); |
|
45 | + $rowsaux = preg_split("/".$this->_rowsep."/", $linha); |
|
46 | 46 | sort($rowsaux); |
47 | 47 | foreach ($rowsaux as $key => $value) { |
48 | - $colsaux = preg_split("/" . $this->_colsep . "/", $value); |
|
48 | + $colsaux = preg_split("/".$this->_colsep."/", $value); |
|
49 | 49 | if (sizeof($colsaux) == sizeof($fieldnames)) { |
50 | 50 | $this->_rows[] = $value; |
51 | 51 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function moveNext() |
80 | 80 | { |
81 | - $cols = preg_split("/" . $this->_colsep . "/", $this->_rows[$this->_current]); |
|
81 | + $cols = preg_split("/".$this->_colsep."/", $this->_rows[$this->_current]); |
|
82 | 82 | $this->_current++; |
83 | 83 | |
84 | 84 | $sr = new SingleRow(); |
@@ -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 |
@@ -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); |