Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
32 | 1 | public function addClient($callable, $order = Pimp::ORDER_AS_IS) { |
|
33 | // TODO - override |
||
34 | |||
35 | 1 | if (empty($this->clients[$order])) { |
|
36 | 1 | $this->clients[$order] = []; |
|
37 | |||
38 | // Rearranging by order |
||
39 | 1 | asort($this->clients); |
|
40 | 1 | } |
|
41 | |||
42 | 1 | $this->clients[$order][] = $callable; |
|
43 | 1 | } |
|
83 |