@@ -84,6 +84,10 @@ |
||
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | + /** |
|
| 88 | + * @param string $buffer |
|
| 89 | + * @param FixedTextDefinition[] $fieldDefinition |
|
| 90 | + */ |
|
| 87 | 91 | protected function processBuffer($buffer, $fieldDefinition) |
| 88 | 92 | { |
| 89 | 93 | $cntDef = count($fieldDefinition); |
@@ -27,7 +27,9 @@ discard block |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | if ($path != "") { |
| 30 | - if ($path[0] == "/") $path = substr($path, 1); |
|
| 30 | + if ($path[0] == "/") { |
|
| 31 | + $path = substr($path, 1); |
|
| 32 | + } |
|
| 31 | 33 | |
| 32 | 34 | $pathAr = explode("/", $path); |
| 33 | 35 | |
@@ -44,7 +46,9 @@ discard block |
||
| 44 | 46 | } |
| 45 | 47 | } |
| 46 | 48 | $this->_jsonObject = $newjsonObject; |
| 47 | - } else $this->_jsonObject = $jsonObject; |
|
| 49 | + } else { |
|
| 50 | + $this->_jsonObject = $jsonObject; |
|
| 51 | + } |
|
| 48 | 52 | |
| 49 | 53 | $this->_current = 0; |
| 50 | 54 | } |
@@ -33,7 +33,9 @@ |
||
| 33 | 33 | if (($buffer !== false) && (trim($buffer) != "")) { |
| 34 | 34 | $this->_current++; |
| 35 | 35 | $this->_currentBuffer = $buffer; |
| 36 | - } else $this->readNextLine(); |
|
| 36 | + } else { |
|
| 37 | + $this->readNextLine(); |
|
| 38 | + } |
|
| 37 | 39 | } |
| 38 | 40 | } |
| 39 | 41 | |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * @access public |
| 74 | - * @return DBIterator |
|
| 74 | + * @return XmlIterator |
|
| 75 | 75 | */ |
| 76 | 76 | public function getIterator() |
| 77 | 77 | { |
@@ -160,6 +160,9 @@ |
||
| 160 | 160 | $this->fieldDeliRight = $right; |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | + /** |
|
| 164 | + * @param string $sql |
|
| 165 | + */ |
|
| 163 | 166 | public static function createSafeSQL($sql, $list) |
| 164 | 167 | { |
| 165 | 168 | return str_replace(array_keys($list), array_values($list), $sql); |
@@ -310,6 +310,10 @@ discard block |
||
| 310 | 310 | return; |
| 311 | 311 | } |
| 312 | 312 | |
| 313 | + /** |
|
| 314 | + * @param SingleRow[] $seq |
|
| 315 | + * @param string $field |
|
| 316 | + */ |
|
| 313 | 317 | protected function quickSortExec($seq, $field) |
| 314 | 318 | { |
| 315 | 319 | if (!count($seq)) { |
@@ -337,7 +341,7 @@ discard block |
||
| 337 | 341 | |
| 338 | 342 | /** |
| 339 | 343 | * @param $document |
| 340 | - * @return array|string |
|
| 344 | + * @return string |
|
| 341 | 345 | */ |
| 342 | 346 | public static function fixUTF8($document) |
| 343 | 347 | { |
@@ -131,6 +131,9 @@ |
||
| 131 | 131 | return $arrayDS->getIterator(); |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | + /** |
|
| 135 | + * @param string $sql |
|
| 136 | + */ |
|
| 134 | 137 | protected function getQueryKey($sql, $array) |
| 135 | 138 | { |
| 136 | 139 | $key1 = md5($sql); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * |
| 76 | - * @param $array |
|
| 76 | + * @param SingleRow[] $array |
|
| 77 | 77 | * @return SingleRow[] |
| 78 | 78 | */ |
| 79 | 79 | public function match($array) |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | /** |
| 244 | 244 | * |
| 245 | 245 | * @param SingleRow $singleRow |
| 246 | - * @return string |
|
| 246 | + * @return boolean |
|
| 247 | 247 | */ |
| 248 | 248 | private function evalString(SingleRow $singleRow) |
| 249 | 249 | { |
@@ -265,7 +265,9 @@ |
||
| 265 | 265 | |
| 266 | 266 | $field = $singleRow->getField($name); |
| 267 | 267 | |
| 268 | - if (!is_array($field)) $field = array($field); |
|
| 268 | + if (!is_array($field)) { |
|
| 269 | + $field = array($field); |
|
| 270 | + } |
|
| 269 | 271 | |
| 270 | 272 | foreach ($field as $valueparam) { |
| 271 | 273 | switch ($relation) { |