| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 19 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 22 | protected function parseDefaults(&$args, $defaults = null) | ||
| 23 |     { | ||
| 24 |         if ($defaults === null) { | ||
| 25 | return; | ||
| 26 | } | ||
| 27 | |||
| 28 |         foreach (get_object_vars($defaults) as $k => $v) { | ||
| 29 |             switch ($k) { | ||
| 30 | case 'inputfile': | ||
| 31 | // prepend inputPath arg | ||
| 32 | $script = array_shift($args); | ||
| 33 | array_unshift($args, $this->inputPath = $this->readInputFile($v)); | ||
| 34 | array_unshift($args, $script); | ||
| 35 | break; | ||
| 36 | default: | ||
| 37 | $this->$k = $v; | ||
| 38 | } | ||
| 39 | } | ||
| 40 | } | ||
| 41 | |||
| 49 |