Code Duplication    Length = 9-10 lines in 2 locations

src/php/Apix/Entity/EntityClass.php 1 location

@@ 103-112 (lines=10) @@
100
        $actions = $this->getActions();
101
102
        // doc for all methods
103
        foreach ($this->getMethods() as $key => $method) {
104
            if ( $key = array_search($method->name, $actions) ) {
105
106
               $_docs = Reflection::parsePhpDoc( $method );
107
                $_docs['method'] = $key;
108
109
                // temp
110
                $docs['methods'][$key] = $_docs;
111
            }
112
        }
113
114
        return $docs;
115
    }

src/php/Apix/Entity/EntityClosure.php 1 location

@@ 111-119 (lines=9) @@
108
        $docs = $this->group;
109
110
        // doc for all methods
111
        foreach ($this->getActions() as $key => $func) {
112
            $ref = $this->reflectedFunc($key);
113
114
            $_docs = Reflection::parsePhpDoc($ref); // <- TODO (required args)
115
            $_docs['method'] = $key;
116
            // $_docs['path'] = $key . ' '; //. $this->getAction($key); // tood here
117
118
            $docs['methods'][$key] = $_docs;
119
        }
120
121
        return $docs;
122
    }