Code Duplication    Length = 3-6 lines in 2 locations

src/Sensorario/Resources/Container.php 2 locations

@@ 92-97 (lines=6) @@
89
        $allowed = [];
90
91
        foreach ($this->allowed as $item) {
92
            if (isset($this->resources['resources'][$resource]['constraints'][$item])) {
93
                $allowed = array_merge(
94
                    $allowed,
95
                    $this->resources['resources'][$resource]['constraints'][$item]
96
                );
97
            }
98
        }
99
100
        return $allowed;
@@ 107-109 (lines=3) @@
104
        $constraintName,
105
        $resource
106
    ) {
107
        if (isset($this->resources['resources'][$resource]['constraints'][$constraintName])) {
108
            return $this->resources['resources'][$resource]['constraints'][$constraintName];
109
        }
110
111
        return [];
112
    }