| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 1 | public static function initModelsValidators(&$config){ |
|
| 18 | 1 | $models=CacheManager::getModels($config,true); |
|
| 19 | 1 | foreach ($models as $model){ |
|
| 20 | 1 | $parser=new ValidationModelParser(); |
|
| 21 | 1 | $parser->parse($model); |
|
| 22 | 1 | $validators=$parser->getValidators(); |
|
| 23 | 1 | if(sizeof($validators)>0){ |
|
| 24 | 1 | self::store($model, $parser->__toString()); |
|
| 25 | } |
||
| 39 |