| Total Complexity | 3 | 
| Total Lines | 41 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 9 | class Dummy extends BaseDocset  | 
            ||
| 10 | { | 
            ||
| 11 | public const CODE = 'dummy';  | 
            ||
| 12 | public const NAME = 'Dummy';  | 
            ||
| 13 | public const URL = 'sleeplessmind.info';  | 
            ||
| 14 | public const INDEX = 'index.html';  | 
            ||
| 15 | public const PLAYGROUND = '';  | 
            ||
| 16 | public const ICON_16 = 'favicon-16x16.png';  | 
            ||
| 17 | public const ICON_32 = 'favicon-32x32.png';  | 
            ||
| 18 | public const EXTERNAL_DOMAINS = [];  | 
            ||
| 19 | |||
| 20 | |||
| 21 | public function entries(string $file): Collection  | 
            ||
| 22 |     { | 
            ||
| 23 | $entries = collect();  | 
            ||
| 24 | |||
| 25 | $crawler = HtmlPageCrawler::create(Storage::get($file));  | 
            ||
| 26 | |||
| 27 |         $crawler->filter('a.nav-item')->each(static function (HtmlPageCrawler $node) use ($entries) { | 
            ||
| 28 | $entries->push([  | 
            ||
| 29 | 'name' => $node->text(),  | 
            ||
| 30 | 'type' => 'Guide',  | 
            ||
| 31 |                 'path' => $node->attr('href') | 
            ||
| 32 | ]);  | 
            ||
| 33 | });  | 
            ||
| 34 | |||
| 35 | return $entries;  | 
            ||
| 36 | }  | 
            ||
| 37 | |||
| 38 | public function format(string $html): string  | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 | protected function removeNavbar(HtmlPageCrawler $crawler)  | 
            ||
| 50 | }  | 
            ||
| 51 | }  | 
            ||
| 52 |