Code Duplication    Length = 5-5 lines in 2 locations

api/v1/class.ShiftAPI.php 2 locations

@@ 301-305 (lines=5) @@
298
            }
299
            return $response->withJSON($ret);
300
        }
301
        if(isset($entity['available']) && $entity['available'])
302
        {
303
            $ret = $this->doSignup($this->user->uid, 'filled', $entity, $filter, $dataTable);
304
            return $response->withJSON($ret);
305
        }
306
        if(isset($entity['status']) && $entity['status'] === 'groupPending')
307
        {
308
            $ret = $this->doSignup($this->user->uid, 'filled', $entity, $filter, $dataTable);
@@ 306-310 (lines=5) @@
303
            $ret = $this->doSignup($this->user->uid, 'filled', $entity, $filter, $dataTable);
304
            return $response->withJSON($ret);
305
        }
306
        if(isset($entity['status']) && $entity['status'] === 'groupPending')
307
        {
308
            $ret = $this->doSignup($this->user->uid, 'filled', $entity, $filter, $dataTable);
309
            return $response->withJSON($ret);
310
        }
311
        print_r($entity); die();
312
    }
313