@@ -170,7 +170,7 @@ |
||
| 170 | 170 | //by default count() return 1 if the parameter is not an array |
| 171 | 171 | //object or object implements Countable. |
| 172 | 172 | if (is_array($result) || is_object($result) || $result instanceof Countable) { |
| 173 | - $numRows = count($result); |
|
| 173 | + $numRows = count($result); |
|
| 174 | 174 | } |
| 175 | 175 | } else { |
| 176 | 176 | $numRows = $this->pdoStatment->rowCount(); |
@@ -359,13 +359,13 @@ discard block |
||
| 359 | 359 | public function setMessage() { |
| 360 | 360 | $numArgs = func_num_args(); |
| 361 | 361 | if ($numArgs == 2) { |
| 362 | - foreach ($this->post(null) as $key => $val) { |
|
| 362 | + foreach ($this->post(null) as $key => $val) { |
|
| 363 | 363 | $this->_errorMsgOverrides[$key][func_get_arg(0)] = func_get_arg(1); |
| 364 | 364 | } |
| 365 | 365 | return true; |
| 366 | 366 | } else if ($numArgs == 3) { |
| 367 | 367 | $this->_errorMsgOverrides[func_get_arg(1)][func_get_arg(0)] = func_get_arg(2); |
| 368 | - return true; |
|
| 368 | + return true; |
|
| 369 | 369 | } |
| 370 | 370 | return false; |
| 371 | 371 | } |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | $returnValue = $this->data[$key]; |
| 406 | 406 | if ($trim) { |
| 407 | 407 | if (is_array($this->data[$key])) { |
| 408 | - $returnValue = array_map('trim', $this->data[$key]); |
|
| 408 | + $returnValue = array_map('trim', $this->data[$key]); |
|
| 409 | 409 | } else { |
| 410 | 410 | $returnValue = trim($this->data[$key]); |
| 411 | 411 | } |
@@ -476,7 +476,7 @@ discard block |
||
| 476 | 476 | if (!empty($regexRule[0])) { |
| 477 | 477 | $ruleSets[] = $regexRule[0]; |
| 478 | 478 | } |
| 479 | - $ruleStringRegex = explode('|', $ruleStringTemp); |
|
| 479 | + $ruleStringRegex = explode('|', $ruleStringTemp); |
|
| 480 | 480 | foreach ($ruleStringRegex as $rule) { |
| 481 | 481 | $rule = trim($rule); |
| 482 | 482 | if ($rule) { |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | $attributes['accept-charset'] = get_config('charset', 'UTF-8'); |
| 46 | 46 | } |
| 47 | 47 | if (!empty($enctype)) { |
| 48 | - $attributes['enctype'] = $enctype; |
|
| 48 | + $attributes['enctype'] = $enctype; |
|
| 49 | 49 | } |
| 50 | 50 | $str .= attributes_to_string($attributes); |
| 51 | 51 | $str .= '>'; |