Code Duplication    Length = 8-8 lines in 4 locations

src/Sensorario/Resources/Container.php 4 locations

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