Code Duplication    Length = 4-5 lines in 3 locations

Alpha/Controller/SequenceController.php 1 location

@@ 122-125 (lines=4) @@
119
120
        $body .= View::renderDeleteForm($this->request->getURI());
121
122
        foreach ($records as $record) {
123
            $view = View::getInstance($record);
124
            $body .= $view->listView(array('URI' => $request->getURI()));
125
        }
126
127
        $body .= View::displayPageFoot($this);
128

Alpha/Controller/ActiveRecordController.php 1 location

@@ 288-292 (lines=5) @@
285
286
                $body .= View::renderDeleteForm($this->request->getURI());
287
288
                foreach ($records as $record) {
289
                    $view = View::getInstance($record, false, $accept);
290
                    $fields = array('formAction' => $this->request->getURI());
291
                    $body .= $view->listView($fields);
292
                }
293
294
                if ($accept == 'application/json') {
295
                    $body = rtrim($body, ',');

Alpha/Controller/DEnumController.php 1 location

@@ 173-176 (lines=4) @@
170
171
            $body .= View::renderDeleteForm($request->getURI());
172
173
            foreach ($objects as $object) {
174
                $temp = View::getInstance($object);
175
                $body .= $temp->listView(array('URI' => $request->getURI()));
176
            }
177
        }
178
179
        $body .= View::displayPageFoot($this);