Code Duplication    Length = 8-8 lines in 2 locations

src/Sensorario/Resources/Container.php 2 locations

@@ 80-87 (lines=8) @@
77
        return $allowed;
78
    }
79
80
    public function mandatory($resource)
81
    {
82
        if (isset($this->resources['resources'][$resource]['constraints']['mandatory'])) {
83
            return $this->resources['resources'][$resource]['constraints']['mandatory'];
84
        }
85
86
        return [];
87
    }
88
89
    public function defaults($resource)
90
    {
@@ 89-96 (lines=8) @@
86
        return [];
87
    }
88
89
    public function defaults($resource)
90
    {
91
        if (isset($this->resources['resources'][$resource]['constraints']['defaults'])) {
92
            return $this->resources['resources'][$resource]['constraints']['defaults'];
93
        }
94
95
        return [];
96
    }
97
}
98