Code Duplication    Length = 8-8 lines in 2 locations

src/Fields/Field.php 2 locations

@@ 286-293 (lines=8) @@
283
    /**
284
     * @return bool
285
     */
286
    public function isGuarded()
287
    {
288
        if (!isset($this->options->model['guarded'])) {
289
            return false;
290
        }
291
292
        return $this->isInArray($this->name, $this->options->model['guarded']);
293
    }
294
295
296
    /**
@@ 299-306 (lines=8) @@
296
    /**
297
     * @return bool
298
     */
299
    public function isHidden()
300
    {
301
        if (!isset($this->options->model['hidden'])) {
302
            return false;
303
        }
304
305
        return $this->isInArray($this->name, $this->options->model['hidden']);
306
    }
307
308
    /**
309
     * @return bool