Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public static function generateArray(): array |
||
26 | { |
||
27 | return [ |
||
28 | 'allows' => static::where('type', Robots::ALLOW)->get('action')->toArray(), |
||
29 | 'disallows' => static::where('type', Robots::DISALLOW)->get('action')->toArray(), |
||
30 | 'hosts' => static::where('type', Robots::HOST)->get('action')->toArray(), |
||
31 | 'sitemaps' => static::where('type', Robots::SITEMAP)->get('action')->toArray(), |
||
32 | 'userAgents' => static::where('type', Robots::USER_AGENT)->get('action')->toArray(), |
||
33 | ]; |
||
36 |