| @@ 43-50 (lines=8) @@ | ||
| 40 | * |
|
| 41 | * @return $this |
|
| 42 | */ |
|
| 43 | public function setAttribute($key, $value) |
|
| 44 | { |
|
| 45 | if (is_scalar($value) && $value === '') { |
|
| 46 | $value = null; |
|
| 47 | } |
|
| 48 | ||
| 49 | return parent::setAttribute($key, $value); |
|
| 50 | } |
|
| 51 | } |
|
| 52 | ||
| @@ 64-71 (lines=8) @@ | ||
| 61 | * |
|
| 62 | * @return $this |
|
| 63 | */ |
|
| 64 | public function setAttribute($key, $value) |
|
| 65 | { |
|
| 66 | if (is_scalar($value) && $value === '') { |
|
| 67 | $value = null; |
|
| 68 | } |
|
| 69 | ||
| 70 | return parent::setAttribute($key, $value); |
|
| 71 | } |
|
| 72 | } |
|
| 73 | ||
| @@ 50-56 (lines=7) @@ | ||
| 47 | * |
|
| 48 | * @return $this |
|
| 49 | */ |
|
| 50 | public function setAttribute($key, $value) |
|
| 51 | { |
|
| 52 | if (is_scalar($value) && $value === '') { |
|
| 53 | $value = null; |
|
| 54 | } |
|
| 55 | ||
| 56 | return parent::setAttribute($key, $value); |
|
| 57 | } |
|
| 58 | ||
| 59 | public function getPublishDateAttribute() |
|
| @@ 167-174 (lines=8) @@ | ||
| 164 | * |
|
| 165 | * @return $this |
|
| 166 | */ |
|
| 167 | public function setAttribute($key, $value) |
|
| 168 | { |
|
| 169 | if (is_scalar($value) && $value === '') { |
|
| 170 | $value = null; |
|
| 171 | } |
|
| 172 | ||
| 173 | return parent::setAttribute($key, $value); |
|
| 174 | } |
|
| 175 | ||
| 176 | public function getDestroyDate($status) |
|
| 177 | { |
|