Completed
Push — FVSv2 ( 2079dd...e85196 )
by Patrick
01:41
created
api/v1/class.Processor.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -1,6 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 trait Processor
3 3
 {
4
+    /**
5
+     * @param string $certType
6
+     */
4 7
     protected function certCheck($requirements, $certs, $certType)
5 8
     {
6 9
         if(isset($requirements[$certType]) && $requirements[$certType])
@@ -12,6 +15,9 @@  discard block
 block discarded – undo
12 15
 
13 16
     protected abstract function isVolunteerAdmin($request);
14 17
 
18
+    /**
19
+     * @param VolunteerProfile|null $user
20
+     */
15 21
     public function canUserDoRole($user, $role)
16 22
     {
17 23
         if($role['publicly_visible'] === true)
@@ -152,6 +158,9 @@  discard block
 block discarded – undo
152 158
         return !in_array($deptId, $privateDepts);
153 159
     }
154 160
 
161
+    /**
162
+     * @param VolunteerShift $shift
163
+     */
155 164
     protected function doShiftTimeChecks($shift, $entry)
156 165
     {
157 166
         $now = new DateTime();
Please login to merge, or discard this patch.