| Conditions | 6 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 6.1666 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | 2 | public function add($arg, $alias = null) |
|
| 45 | { |
||
| 46 | 2 | if ($alias !== null && is_array($arg) && (! $arg instanceof self || $arg->count() > 0)) { |
|
| 47 | 2 | foreach ($arg as $v) { |
|
| 48 | 2 | parent::add(sprintf('%s.%s', $alias, $v)); |
|
| 49 | } |
||
| 50 | |||
| 51 | 2 | return $this; |
|
| 52 | } |
||
| 53 | |||
| 54 | return parent::add($arg); |
||
| 55 | } |
||
| 57 |