| Total Complexity | 6 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class PruneEntries |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * The Laravel application instance. |
||
| 12 | * |
||
| 13 | * @var \Illuminate\Contracts\Foundation\Application |
||
| 14 | */ |
||
| 15 | protected $app; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The pruning configuration options. |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $config; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Create a new prune entries instance. |
||
| 26 | * |
||
| 27 | * @param \Illuminate\Contracts\Foundation\Application $app |
||
| 28 | */ |
||
| 29 | public function __construct($app) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Prune the Telescope entries. |
||
| 39 | * |
||
| 40 | * @return int |
||
| 41 | */ |
||
| 42 | public function prune() |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Check if Telescope pruning is enabled. |
||
| 56 | * |
||
| 57 | * @return boolean |
||
| 58 | */ |
||
| 59 | protected function isEnabled() |
||
| 69 |