Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function triggerSuccess() |
||
33 | { |
||
34 | if ($this->getErrorOutput()) { |
||
35 | $this->triggerError(); |
||
36 | |||
37 | return; |
||
38 | } |
||
39 | |||
40 | $output = $this->getOutput(); |
||
41 | |||
42 | foreach ($this->successCallbacks as $callback) { |
||
43 | call_user_func_array($callback, [$output]); |
||
44 | } |
||
45 | |||
46 | return $output; |
||
47 | } |
||
48 | |||
69 |