| Total Complexity | 4 |
| Total Lines | 79 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class SiteReviewsDefaults extends Defaults |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | public $casts = [ |
||
| 15 | 'debug' => 'bool', |
||
| 16 | 'display' => 'int', |
||
| 17 | 'hide' => 'array', |
||
| 18 | 'page' => 'int', |
||
| 19 | 'rating' => 'int', |
||
| 20 | 'schema' => 'bool', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string[] |
||
| 25 | */ |
||
| 26 | public $guarded = [ |
||
| 27 | 'fallback', |
||
| 28 | 'title', |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var array |
||
| 33 | */ |
||
| 34 | public $mapped = [ |
||
| 35 | 'assigned_to' => 'assigned_posts', |
||
| 36 | 'category' => 'assigned_terms', |
||
| 37 | 'count' => 'display', // @deprecated in v4.1.0 |
||
| 38 | 'per_page' => 'display', |
||
| 39 | 'user' => 'assigned_users', |
||
| 40 | ]; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var array |
||
| 44 | */ |
||
| 45 | public $sanitize = [ |
||
| 46 | 'id' => 'id', |
||
| 47 | ]; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return array |
||
| 51 | */ |
||
| 52 | 8 | protected function defaults() |
|
| 73 | ]; |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Normalize provided values, this always runs first. |
||
| 78 | * @return array |
||
| 79 | */ |
||
| 80 | 8 | protected function normalize(array $values = []) |
|
| 90 |