@@ -53,13 +53,13 @@ discard block |
||
53 | 53 | } |
54 | 54 | if(!isset($obj['departmentID'])) |
55 | 55 | { |
56 | - return false; |
|
56 | + return false; |
|
57 | 57 | } |
58 | 58 | if(isset($obj['unbounded']) && $obj['unbounded']) |
59 | 59 | { |
60 | 60 | if(!isset($obj['minShifts']) || $obj['minShifts'] === 0 || $obj['minShifts'] === '') |
61 | 61 | { |
62 | - $obj['minShifts'] = '1'; |
|
62 | + $obj['minShifts'] = '1'; |
|
63 | 63 | } |
64 | 64 | } |
65 | 65 | return $this->isUserDepartmentLead($obj['departmentID'], $this->user); |
@@ -152,8 +152,8 @@ discard block |
||
152 | 152 | $ret = $dataTable->update($filter, $entArray[$i]); |
153 | 153 | if($ret === false) |
154 | 154 | { |
155 | - $myRet = false; |
|
156 | - array_push($errors, $array[$i]); |
|
155 | + $myRet = false; |
|
156 | + array_push($errors, $array[$i]); |
|
157 | 157 | } |
158 | 158 | } |
159 | 159 | if($myRet) |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | $entity = $this->processShift($entity, $request); |
265 | 265 | if(isset($entity['minShifts']) && $entity['minShifts'] > 0) |
266 | 266 | { |
267 | - $shift->makeCopy($dataTable); |
|
267 | + $shift->makeCopy($dataTable); |
|
268 | 268 | } |
269 | 269 | if(isset($entity['overlap']) && $entity['overlap']) |
270 | 270 | { |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | $entity['signupTime'] = ''; |
332 | 332 | if(isset($entity['needEEApproval'])) |
333 | 333 | { |
334 | - unset($entity['needEEApproval']); |
|
334 | + unset($entity['needEEApproval']); |
|
335 | 335 | } |
336 | 336 | return $response->withJSON($dataTable->update($filter, $entity)); |
337 | 337 | } |
@@ -567,7 +567,7 @@ discard block |
||
567 | 567 | $entity['status'] = 'unfilled'; |
568 | 568 | if(isset($entity['needEEApproval'])) |
569 | 569 | { |
570 | - unset($entity['needEEApproval']); |
|
570 | + unset($entity['needEEApproval']); |
|
571 | 571 | } |
572 | 572 | $ret = $dataTable->update($filter, $entity); |
573 | 573 | if($ret) |
@@ -598,7 +598,7 @@ discard block |
||
598 | 598 | $entity['status'] = 'unfilled'; |
599 | 599 | if(isset($entity['needEEApproval'])) |
600 | 600 | { |
601 | - unset($entity['needEEApproval']); |
|
601 | + unset($entity['needEEApproval']); |
|
602 | 602 | } |
603 | 603 | return $response->withJSON($dataTable->update($filter, $entity)); |
604 | 604 | } |