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