| Conditions | 6 | 
| Paths | 4 | 
| Total Lines | 15 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 35 | protected function isFillable(string $field): bool | ||
| 36 |     { | ||
| 37 |         if (!empty($this->schema[ModelSchema::FILLABLE]) && $this->schema[ModelSchema::FILLABLE] === '*') { | ||
| 38 | return true; | ||
| 39 | } | ||
| 40 | |||
| 41 |         if (!empty($this->schema[ModelSchema::FILLABLE])) { | ||
| 42 | return in_array($field, $this->schema[ModelSchema::FILLABLE]); | ||
| 43 | } | ||
| 44 | |||
| 45 |         if (!empty($this->schema[ModelSchema::SECURED]) && $this->schema[ModelSchema::SECURED] === '*') { | ||
| 46 | return false; | ||
| 47 | } | ||
| 48 | |||
| 49 | return !in_array($field, $this->schema[ModelSchema::SECURED]); | ||
| 50 | } | ||
| 64 |