| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class CleanHtmlInput implements CastsAttributes |
||
| 8 | { |
||
| 9 | use WithConfig; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Cast the given value. Does not clean the HTML. |
||
| 13 | * |
||
| 14 | * @param \Illuminate\Database\Eloquent\Model $model |
||
| 15 | * @param string $key |
||
| 16 | * @param mixed $value |
||
| 17 | * @param array $attributes |
||
| 18 | * @return array |
||
| 19 | */ |
||
| 20 | public function get($model, $key, $value, $attributes) |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Prepare the given value for storage by cleaning the HTML. |
||
| 27 | * |
||
| 28 | * @param \Illuminate\Database\Eloquent\Model $model |
||
| 29 | * @param string $key |
||
| 30 | * @param array $value |
||
| 31 | * @param array $attributes |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function set($model, $key, $value, $attributes) |
||
| 39 |