| Conditions | 9 |
| Paths | 10 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 4 |
| Ratio | 23.53 % |
| Changes | 0 | ||
| 1 | <? |
||
| 31 | /*private function validate($caller, $parent) { |
||
| 32 | $valid = true; |
||
| 33 | foreach($this->getFieldConfiguration() as $field => $conf) { |
||
| 34 | if(isset($conf['type']) && !isset($conf['relType'])){ |
||
| 35 | $val = $this->get($field); |
||
| 36 | $model = strtolower(str_replace('\\','.',$class)); |
||
| 37 | // check required fields |
||
| 38 | if ($valid && isset($conf['required'])) |
||
| 39 | $valid = \Validation::instance()->required($val,$field,'error.'.$model.'.'.$field); |
||
| 40 | // check unique |
||
| 41 | if ($valid && isset($conf['unique'])) |
||
| 42 | $valid = \Validation::instance()->unique($self,$val,$field,'error.'.$model.'.'.$field); |
||
| 43 | if (!$valid) |
||
| 44 | break; |
||
| 45 | } |
||
| 46 | } |
||
| 47 | return $valid; |
||
| 48 | }*/ |
||
| 49 | } |
Short opening tags are disabled in PHP?s default configuration. In such a case, all content of this file is output verbatim to the browser without being parsed, or executed.
As a precaution to avoid these problems better use the long opening tag
<?php.