| @@ 230-237 (lines=8) @@ | ||
| 227 | return $from->diff($to)->format('%a d, %h h, %i m and %s s'); |
|
| 228 | } |
|
| 229 | ||
| 230 | public function scopeIsUp($query) |
|
| 231 | { |
|
| 232 | return $query->where([ |
|
| 233 | ['status', '=', 1], |
|
| 234 | ['ignore', '=', 0], |
|
| 235 | ['disabled', '=', 0] |
|
| 236 | ]); |
|
| 237 | } |
|
| 238 | ||
| 239 | public function scopeIsDown($query) |
|
| 240 | { |
|
| @@ 239-246 (lines=8) @@ | ||
| 236 | ]); |
|
| 237 | } |
|
| 238 | ||
| 239 | public function scopeIsDown($query) |
|
| 240 | { |
|
| 241 | return $query->where([ |
|
| 242 | ['status', '=', 0], |
|
| 243 | ['ignore', '=', 0], |
|
| 244 | ['disabled', '=', 0] |
|
| 245 | ]); |
|
| 246 | } |
|
| 247 | ||
| 248 | public function scopeIsIgnored($query) |
|
| 249 | { |
|