Code Duplication    Length = 2-2 lines in 2 locations

lib/Dwoo/Security/Policy.php 2 locations

@@ 152-153 (lines=2) @@
149
    public function allowMethod($class, $method = null)
150
    {
151
        if (is_array($class)) {
152
            foreach ($class as $elem) {
153
                $this->allowedMethods[strtolower($elem[0])][strtolower($elem[1])] = true;
154
            }
155
        } else {
156
            $this->allowedMethods[strtolower($class)][strtolower($method)] = true;
@@ 169-170 (lines=2) @@
166
    public function disallowMethod($class, $method = null)
167
    {
168
        if (is_array($class)) {
169
            foreach ($class as $elem) {
170
                unset($this->allowedMethods[strtolower($elem[0])][strtolower($elem[1])]);
171
            }
172
        } else {
173
            unset($this->allowedMethods[strtolower($class)][strtolower($method)]);