Completed
Push — FVSv2 ( 53711e...3f1577 )
by Patrick
01:30
created
api/v1/class.VolunteerAPI.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -5,6 +5,9 @@
 block discarded – undo
5 5
     protected $isAdmin = null;
6 6
     protected $isLead = null;
7 7
 
8
+    /**
9
+     * @param string $dataTableName
10
+     */
8 11
     public function __construct($dataTableName, $idField = '_id')
9 12
     {
10 13
         parent::__construct('fvs', $dataTableName, $idField);
Please login to merge, or discard this patch.
api/v1/class.DepartmentAPI.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -109,6 +109,9 @@  discard block
 block discarded – undo
109 109
         return $response->withJson($shifts);
110 110
     }
111 111
 
112
+    /**
113
+     * @param string $table
114
+     */
112 115
     protected function createEntityForDepartment($request, $response, $args, $table)
113 116
     {
114 117
         $deptId = $args['dept'];
@@ -212,6 +215,9 @@  discard block
 block discarded – undo
212 215
         return $response;
213 216
     }
214 217
 
218
+    /**
219
+     * @param string $type
220
+     */
215 221
     public function generateGridSchedule($dept, $shifts, $response, $type)
216 222
     {
217 223
         $ss = new \Schedules\GridSchedule($dept, $shifts);
Please login to merge, or discard this patch.
api/v1/class.Processor.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@  discard block
 block discarded – undo
12 12
 
13 13
     protected abstract function isVolunteerAdmin($request);
14 14
 
15
+    /**
16
+     * @param VolunteerProfile|null $user
17
+     */
15 18
     public function canUserDoRole($user, $role)
16 19
     {
17 20
         static $certs = null;
@@ -155,6 +158,9 @@  discard block
 block discarded – undo
155 158
         return !in_array($deptId, $privateDepts);
156 159
     }
157 160
 
161
+    /**
162
+     * @param VolunteerShift $shift
163
+     */
158 164
     protected function doShiftTimeChecks($shift, $entry)
159 165
     {
160 166
         $now = new DateTime();
Please login to merge, or discard this patch.