Completed
Push — master ( c09f30...aef5a7 )
by Patrick
01:39
created
api/v1/class.ShiftAPI.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     protected function canUpdate($request, $entity)
33 33
     {
34
- 	if($this->isVolunteerAdmin($request))
34
+        if($this->isVolunteerAdmin($request))
35 35
         {
36 36
             return true;
37 37
         }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         }
52 52
         if(!isset($obj['departmentID']))
53 53
         {
54
-             return false;
54
+                return false;
55 55
         }
56 56
         return $this->isUserDepartmentLead($obj['departmentID'], $this->user);
57 57
     }
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
             $ret = $dataTable->update($filter, $entArray[$i]);
118 118
             if($ret === false)
119 119
             {
120
-               $myRet = false;
121
-               array_push($errors, $array[$i]);
120
+                $myRet = false;
121
+                array_push($errors, $array[$i]);
122 122
             }
123 123
         }
124 124
         if($myRet)
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         $entity = $this->processShift($entity, $request);
207 207
         if(isset($entity['minShifts']) && $entity['minShifts'] > 0)
208 208
         {
209
-          $shift->makeCopy($dataTable);
209
+            $shift->makeCopy($dataTable);
210 210
         }
211 211
         if(isset($entity['overlap']) && $entity['overlap'])
212 212
         {
Please login to merge, or discard this patch.