Total Complexity | 2 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class Alfred4 extends BaseDocset |
||
11 | { |
||
12 | public const CODE = 'alfred-4'; |
||
13 | public const NAME = 'Alfred 4'; |
||
14 | public const URL = 'alfred-4.com'; |
||
15 | public const INDEX = 'index.html'; |
||
16 | public const PLAYGROUND = ''; |
||
17 | public const ICON_16 = 'favicon-16x16.png'; |
||
18 | public const ICON_32 = 'favicon-32x32.png'; |
||
19 | public const EXTERNAL_DOMAINS = [ |
||
20 | '', |
||
21 | ]; |
||
22 | |||
23 | public function entries(string $file): Collection |
||
24 | { |
||
25 | $crawler = HtmlPageCrawler::create(Storage::get($file)); |
||
26 | |||
27 | $crawler->filter('h1')->each(function (HtmlPageCrawler $node) use ($entries) { |
||
28 | $entries->push([ |
||
29 | 'name' => 'What Shows up in Dash', |
||
30 | 'type' => 'One of the Million of Dash Entry Type', |
||
31 | 'path' => 'The Path to the File', |
||
32 | ]); |
||
33 | }); |
||
34 | |||
35 | return $entries; |
||
36 | } |
||
37 | |||
38 | public function format(string $file): string |
||
48 | } |
||
49 | } |
||
50 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.