| Total Complexity | 2 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class OpcachePrimer |
||
| 14 | { |
||
| 15 | public function __construct() |
||
| 19 | } |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Prime/Warm the cache for given paths. |
||
| 24 | * |
||
| 25 | * @param array $paths |
||
| 26 | * |
||
| 27 | * @return int The count of files whose opcache primed/warmed. |
||
| 28 | */ |
||
| 29 | public function prime(array $paths): int |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Normalize paths. |
||
| 46 | * |
||
| 47 | * @param array $paths |
||
| 48 | * |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | protected function normalizePaths(array $paths): array |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Filter php files. |
||
| 58 | * |
||
| 59 | * @param \RecursiveIteratorIterator $iterator |
||
| 60 | * |
||
| 61 | * @return \FilterIterator |
||
| 62 | */ |
||
| 63 | protected function filter(\RecursiveIteratorIterator $iterator): \FilterIterator |
||
| 69 | } |
||
| 70 | }; |
||
| 71 | } |
||
| 73 |