Code Duplication    Length = 8-8 lines in 4 locations

src/Sensorario/Resources/Container.php 4 locations

@@ 96-103 (lines=8) @@
93
        return $allowed;
94
    }
95
96
    public function mandatory($resource)
97
    {
98
        if (isset($this->resources['resources'][$resource]['constraints']['mandatory'])) {
99
            return $this->resources['resources'][$resource]['constraints']['mandatory'];
100
        }
101
102
        return [];
103
    }
104
105
    public function defaults($resource)
106
    {
@@ 105-112 (lines=8) @@
102
        return [];
103
    }
104
105
    public function defaults($resource)
106
    {
107
        if (isset($this->resources['resources'][$resource]['constraints']['defaults'])) {
108
            return $this->resources['resources'][$resource]['constraints']['defaults'];
109
        }
110
111
        return [];
112
    }
113
114
    public function rules($resource)
115
    {
@@ 114-121 (lines=8) @@
111
        return [];
112
    }
113
114
    public function rules($resource)
115
    {
116
        if (isset($this->resources['resources'][$resource]['constraints']['rules'])) {
117
            return $this->resources['resources'][$resource]['constraints']['rules'];
118
        }
119
120
        return [];
121
    }
122
123
    public function allowedValues($resource)
124
    {
@@ 123-130 (lines=8) @@
120
        return [];
121
    }
122
123
    public function allowedValues($resource)
124
    {
125
        if (isset($this->resources['resources'][$resource]['constraints']['allowedValues'])) {
126
            return $this->resources['resources'][$resource]['constraints']['allowedValues'];
127
        }
128
129
        return [];
130
    }
131
132
    public function rewrites()
133
    {