Code Duplication    Length = 5-5 lines in 2 locations

api/v1/class.ShiftAPI.php 2 locations

@@ 294-298 (lines=5) @@
291
            }
292
            return $response->withJSON($ret);
293
        }
294
        if(isset($entity['available']) && $entity['available'])
295
        {
296
            $ret = $this->doSignup($this->user->uid, 'filled', $entity, $filter, $dataTable);
297
            return $response->withJSON($ret);
298
        }
299
        if(isset($entity['status']) && $entity['status'] === 'groupPending')
300
        {
301
            $ret = $this->doSignup($this->user->uid, 'filled', $entity, $filter, $dataTable);
@@ 299-303 (lines=5) @@
296
            $ret = $this->doSignup($this->user->uid, 'filled', $entity, $filter, $dataTable);
297
            return $response->withJSON($ret);
298
        }
299
        if(isset($entity['status']) && $entity['status'] === 'groupPending')
300
        {
301
            $ret = $this->doSignup($this->user->uid, 'filled', $entity, $filter, $dataTable);
302
            return $response->withJSON($ret);
303
        }
304
        print_r($entity); die();
305
    }
306