| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 90.91% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class EventSubscriber |
||
| 9 | { |
||
| 10 | /** @var XDebug */ |
||
| 11 | protected $xdebug; |
||
| 12 | |||
| 13 | 205 | public function __construct(XDebug $xdebug) |
|
| 14 | { |
||
| 15 | 205 | $this->xdebug = $xdebug; |
|
| 16 | 205 | } |
|
| 17 | |||
| 18 | 3 | public function setXDebug() |
|
| 19 | { |
||
| 20 | 3 | if (setting('use_xdebug', 'on') === 'off') { |
|
| 21 | $this->xdebug->turnOff(); |
||
| 22 | } |
||
| 23 | |||
| 24 | 3 | $this->xdebug->turnOn(); |
|
| 25 | 3 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Register the listeners for the subscriber. |
||
| 29 | * |
||
| 30 | * @param \Illuminate\Events\Dispatcher $events |
||
| 31 | * |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | 205 | public function subscribe($events) |
|
| 38 | 205 | } |
|
| 39 | } |
||
| 40 |