Code Duplication    Length = 11-11 lines in 2 locations

app/lib/FFCMS/Controllers/API/Mapper.php 2 locations

@@ 260-270 (lines=11) @@
257
     * @param \Base $f3
258
     * @return null|array|boolean
259
     */
260
    public function listingAdmin(\Base $f3)
261
    {
262
        // must be an admin
263
        $isAdmin = $f3->get('isAdmin');
264
        if (!$isAdmin) {
265
            $this->failure('authentication_error', "User does not have permission.", 401);
266
            return $this->setOAuthError('access_denied');
267
        }
268
269
        $this->data = $this->getListingResults($f3, $this->getMapper());
270
    }
271
272
273
    /**
@@ 305-315 (lines=11) @@
302
     * @param \Base $f3
303
     * @return null|array|boolean
304
     */
305
    public function searchAdmin(\Base $f3)
306
    {
307
        // must be an admin
308
        $isAdmin = $f3->get('isAdmin');
309
        if (!$isAdmin) {
310
            $this->failure('authentication_error', "User does not have permission.", 401);
311
            return $this->setOAuthError('access_denied');
312
        }
313
314
        $this->data = $this->getSearchResults($f3, $this->getMapper());
315
    }
316
317
318
    /**