Conditions | 5 |
Paths | 5 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | public function replaceDates($obj, $reset = true) { |
||
8 | //prevent infinite recursion, only process each object once |
||
9 | if ($this->checkCache($obj, $reset)) return $obj; |
||
10 | |||
11 | if ($this->isIterable($obj)) foreach ($obj as &$o) $o = $this->replaceDates($o, false); |
||
12 | if ($this->isPossiblyDateString($obj)) $obj = $this->tryToGetDateObjFromString($obj); |
||
13 | return $obj; |
||
14 | } |
||
44 |