Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3.0261 |
Changes | 0 |
1 | <?php |
||
32 | 36 | protected function fireEvent($event, $halt = true) |
|
33 | { |
||
34 | 36 | if (! isset(static::$dispatcher)) { |
|
35 | return true; |
||
36 | } |
||
37 | |||
38 | 36 | $method = $halt ? 'until' : 'fire'; |
|
39 | |||
40 | 36 | return static::$dispatcher->{$method}( |
|
41 | 36 | "admin.component.{$event}: " . static::class, |
|
42 | 36 | $this |
|
43 | ); |
||
44 | } |
||
45 | |||
67 |