@@ 97-102 (lines=6) @@ | ||
94 | $allowed = []; |
|
95 | ||
96 | foreach ($this->allowed as $item) { |
|
97 | if (isset($this->resources['resources'][$resource]['constraints'][$item])) { |
|
98 | $allowed = array_merge( |
|
99 | $allowed, |
|
100 | $this->resources['resources'][$resource]['constraints'][$item] |
|
101 | ); |
|
102 | } |
|
103 | } |
|
104 | ||
105 | return $allowed; |
|
@@ 112-114 (lines=3) @@ | ||
109 | $constraintName, |
|
110 | $resource |
|
111 | ) { |
|
112 | if (isset($this->resources['resources'][$resource]['constraints'][$constraintName])) { |
|
113 | return $this->resources['resources'][$resource]['constraints'][$constraintName]; |
|
114 | } |
|
115 | ||
116 | return []; |
|
117 | } |