Test Setup Failed
Pull Request — master (#666)
by Mohamed
07:32
created
app/Console/Commands/CallPromotionCommand.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         ];
57 57
         if(in_array($mode,['AL','1-5','SP','6-11'])){
58 58
             array_walk($institutions,array($this,'callPromotion'),$params);
59
-        }else{
59
+        } else{
60 60
             die('The give mode not support');
61 61
         }
62 62
        
Please login to merge, or discard this patch.
app/Console/Commands/UpdateClassEntriyWithZeroId.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
                 $this->output->writeln("student record  :".$student['student_id'] );
144 144
             }
145 145
         }
146
-       }catch(\Exception $e){
146
+       } catch(\Exception $e){
147 147
             dd($e);
148 148
        }
149 149
     }
Please login to merge, or discard this patch.
app/Models/Student_guardian.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,10 +68,11 @@  discard block
 block discarded – undo
68 68
     public static function createStudentGuardian($student,$guardian,$user){
69 69
      
70 70
         $exist = true;
71
-        if(!is_null($guardian))
72
-            $exist = self::where('student_id', $student->student_id)
71
+        if(!is_null($guardian)) {
72
+                    $exist = self::where('student_id', $student->student_id)
73 73
             ->where('guardian_relation_id', $guardian->guardian_relation_id)
74 74
             ->exists();
75
+        }
75 76
 
76 77
         $totalGuardians = self::where('student_id',$student->student_id)->count();
77 78
 
@@ -84,7 +85,7 @@  discard block
 block discarded – undo
84 85
         if(!$exist){
85 86
             $data['created'] = now();
86 87
             self::create($data);
87
-        }else{
88
+        } else{
88 89
             $data['modified'] = now();
89 90
             self::where('student_id' , $student->student_id)
90 91
             ->where('guardian_relation_id',$guardian->guardian_relation_id)
Please login to merge, or discard this patch.
app/Models/User_body_mass.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
                 // dd($data);
72 72
                 if($count == 0){
73 73
                     self::create($data);
74
-                }else{
74
+                } else{
75 75
                     self::where('security_user_id',$studentId)
76 76
                     ->update($data);
77 77
                 }         
Please login to merge, or discard this patch.
app/helpers.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
             $Initials = $Initials . '' . mb_substr($names[$i], 0, 1, "UTF-8");
17 17
         }
18 18
         $nameWithInitials = $Initials . ' ' . $names[$length - 1];
19
-    }else{
19
+    } else{
20 20
         $nameWithInitials = $fullname;
21 21
     }
22 22
     return $nameWithInitials;
@@ -38,8 +38,9 @@  discard block
 block discarded – undo
38 38
 function getMatchingKeys($array){
39 39
     $keys = [];
40 40
     foreach ($array as $key => $value){
41
-        if(strstr($key , 'option'))
42
-            $keys[] = $key;
41
+        if(strstr($key , 'option')) {
42
+                    $keys[] = $key;
43
+        }
43 44
     }
44 45
     return $keys;
45 46
 }
@@ -54,7 +55,9 @@  discard block
 block discarded – undo
54 55
 
55 56
 function isEmptyRow($row) {
56 57
     foreach($row as $cell){
57
-        if (null !== $cell) return false;
58
+        if (null !== $cell) {
59
+            return false;
60
+        }
58 61
     }
59 62
     return true;
60 63
 }
@@ -95,7 +98,9 @@  discard block
 block discarded – undo
95 98
 function array_value_recursive($key, array $arr){
96 99
     $val = array();
97 100
     array_walk_recursive($arr, function($v, $k) use($key, &$val){
98
-        if($k == $key) array_push($val, $v);
101
+        if($k == $key) {
102
+            array_push($val, $v);
103
+        }
99 104
     });
100 105
     return count($val) > 1 ? $val : array_pop($val);
101 106
 }
Please login to merge, or discard this patch.