Completed
Push — master ( 7c601e...33c13a )
by Patrick
01:46
created
app/class.VolunteerShift.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -177,6 +177,9 @@
 block discarded – undo
177 177
         return $res;
178 178
     }
179 179
 
180
+    /**
181
+     * @param Data\DataTable $dataTable
182
+     */
180 183
     public function makeCopy($dataTable)
181 184
     {
182 185
         $tmp = $this->dbData;
Please login to merge, or discard this patch.
api/v1/class.ShiftAPI.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     protected function canUpdate($request, $entity)
36 36
     {
37
- 	if($this->isVolunteerAdmin($request))
37
+        if($this->isVolunteerAdmin($request))
38 38
         {
39 39
             return true;
40 40
         }
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
             $ret = $dataTable->update($filter, $entArray[$i]);
108 108
             if($ret === false)
109 109
             {
110
-               $myRet = false;
111
-               array_push($errors, $array[$i]);
110
+                $myRet = false;
111
+                array_push($errors, $array[$i]);
112 112
             }
113 113
         }
114 114
         if($myRet)
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         $entity = $this->processShift($entity, $request);
197 197
         if(isset($entity['minShifts']) && $entity['minShifts'] > 0)
198 198
         {
199
-          $shift->makeCopy($dataTable);
199
+            $shift->makeCopy($dataTable);
200 200
         }
201 201
         if(isset($entity['overlap']) && $entity['overlap'])
202 202
         {
Please login to merge, or discard this patch.