Test Setup Failed
Pull Request — master (#654)
by Mohamed
06:54
created
app/Console/Commands/cleanConfig.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         if($year == '2019' || $year == '2018/19'){
59 59
             die('Academic Year 2019 or earlier can`t be deleted');
60
-        }else{
60
+        } else{
61 61
             $this->clone->cleanConfig($params);
62 62
         }
63 63
     }
Please login to merge, or discard this patch.
app/Http/Controllers/CloneController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
            DB::beginTransaction();
45 45
             array_walk($shift, array($this, 'process'), $params);
46 46
             DB::commit();
47
-        }catch(\Exception $e){
47
+        } catch(\Exception $e){
48 48
             $this->output->writeln('Terminating ' . $shift['institution_id']);
49 49
             DB::rollBack();
50 50
         }
Please login to merge, or discard this patch.
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/Providers/ValidatorExtended.php 1 patch
Braces   +9 added lines, -20 removed lines patch added patch discarded remove patch
@@ -266,8 +266,7 @@  discard block
 block discarded – undo
266 266
                if(!strcmp($data['identity_type'],"BC"))
267 267
                {
268 268
                     $out = 1;
269
-               }
270
-               else 
269
+               } else 
271 270
                {
272 271
                    $out = 2;
273 272
                }
@@ -277,44 +276,34 @@  discard block
 block discarded – undo
277 276
                     //dd(true);
278 277
                     return true;
279 278
     
280
-                }
281
-                
282
-                elseif (($out == 2) &&(preg_match('/^[0-9]{9}[VX]{1}+$/',$value)))
279
+                } elseif (($out == 2) &&(preg_match('/^[0-9]{9}[VX]{1}+$/',$value)))
283 280
                  {
284 281
                     return true;
285
-                }
286
-                elseif (($out == 2) && (preg_match('/^[0-9]{12}+$/',$value)))
282
+                } elseif (($out == 2) && (preg_match('/^[0-9]{12}+$/',$value)))
287 283
                 {
288 284
                     return true;
289
-                }
290
-                else {
285
+                } else {
291 286
                    //dd(false);
292 287
                         $this ->_custom_messages['unmatch'] = $attribute." format does not match with Identity type";
293 288
                         $this->_set_custom_stuff();
294 289
                         return false;
295 290
                        
296 291
                 }
297
-            }
298
-            else if(($data['identity_type'] != null)&&($value == null)){
292
+            } else if(($data['identity_type'] != null)&&($value == null)){
299 293
                 return true;
300
-            }
301
-            else {
294
+            } else {
302 295
                 if(preg_match('/^[0-9]{4}+$/',$value))
303 296
                 {
304 297
                     //dd(true);
305 298
                     return true;
306 299
     
307
-                }
308
-                
309
-                elseif (preg_match('/^[0-9]{9}[VX]{1}+$/',$value))
300
+                } elseif (preg_match('/^[0-9]{9}[VX]{1}+$/',$value))
310 301
                  {
311 302
                     return true;
312
-                }
313
-                elseif (preg_match('/^[0-9]{12}+$/',$value))
303
+                } elseif (preg_match('/^[0-9]{12}+$/',$value))
314 304
                 {
315 305
                     return true;
316
-                }
317
-                else {
306
+                } else {
318 307
                     $this ->_custom_messages['idnum'] = $attribute." format is invalild";
319 308
                     $this->_set_custom_stuff();
320 309
                     return false;
Please login to merge, or discard this patch.