| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | protected function rebuildCommandWithCallbacks($command) |
||
| 20 | { |
||
| 21 | foreach ($this->beforeSavingCallbacks as $key => $callback) { |
||
| 22 | $newCommand = call_user_func($callback, $command); |
||
| 23 | |||
| 24 | $command = !is_null($newCommand) ? $newCommand : $command; |
||
| 25 | |||
| 26 | unset($this->beforeSavingCallbacks[$key]); |
||
| 27 | } |
||
| 28 | |||
| 29 | return $command; |
||
| 30 | } |
||
| 32 |