Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 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 | ]; |
||
34 | } |
||
35 | } |
||
36 |