Test Setup Failed
Push — master ( b6a675...9d9db2 )
by
unknown
14:08
created
app/Imports/StudentImport.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@
 block discarded – undo
18 18
     }
19 19
 
20 20
     /**
21
-    * @param array $row
22
-    *
23
-    * @return \Illuminate\Database\Eloquent\Model|null
24
-    */
21
+     * @param array $row
22
+     *
23
+     * @return \Illuminate\Database\Eloquent\Model|null
24
+     */
25 25
 
26 26
     public function sheets(): array
27 27
     {
Please login to merge, or discard this patch.
app/Providers/ValidationExtensionServiceProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
     public function boot() {
13 13
         $this->app->validator->resolver( function( $translator, $data, $rules,
14
-                                                   $messages = array(), $customAttributes = array() ) {
14
+                                                    $messages = array(), $customAttributes = array() ) {
15 15
             return new ValidatorExtended( $translator, $data, $rules, $messages,
16 16
                 $customAttributes );
17 17
         } );
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     protected function mapWebRoutes()
53 53
     {
54 54
         Route::middleware('web')
55
-             ->namespace($this->namespace)
56
-             ->group(base_path('routes/web.php'));
55
+                ->namespace($this->namespace)
56
+                ->group(base_path('routes/web.php'));
57 57
     }
58 58
 
59 59
     /**
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     protected function mapApiRoutes()
67 67
     {
68 68
         Route::prefix('api')
69
-             ->middleware('api')
70
-             ->namespace($this->namespace)
71
-             ->group(base_path('routes/api.php'));
69
+                ->middleware('api')
70
+                ->namespace($this->namespace)
71
+                ->group(base_path('routes/api.php'));
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
app/Console/Commands/ProcessTerminatedFiles.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,14 +50,14 @@
 block discarded – undo
50 50
                     unset($files);
51 51
                     exit();
52 52
 
53
-                }else{
53
+                } else{
54 54
                     $output = new \Symfony\Component\Console\Output\ConsoleOutput();
55 55
                     $output->writeln('No files found,Waiting for files');
56 56
                     exit();
57 57
 
58 58
                 }
59 59
 
60
-            }catch (Exception $e){
60
+            } catch (Exception $e){
61 61
                 $output = new \Symfony\Component\Console\Output\ConsoleOutput();
62 62
                 $output->writeln($e);
63 63
                 sleep(300);
Please login to merge, or discard this patch.
app/Console/Commands/RunAddApprovedStudents.php 2 patches
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -78,41 +78,41 @@
 block discarded – undo
78 78
             $this->count += 1;
79 79
             $this->student = $student ;
80 80
             try{
81
-               Institution_student::create([
82
-                   'student_status_id' => 1,
83
-                   'student_id' => $student['student_id'],
84
-                   'education_grade_id' => $student['education_grade_id'],
85
-                   'academic_period_id' => $student['academic_period_id'],
86
-                   'start_date' => $student['start_date'],
87
-                   'start_year' => \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $student['start_date'])->year , // $student['start_date']->format('Y'),
88
-                   'end_date' => $student['end_date'],
89
-                   'end_year' =>  \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $student['end_date'])->year , //$student['end_date']->format('Y'),
90
-                   'institution_id' => $student['institution_id'],
91
-                   'admission_id' => $student['admission_id'],
92
-                   'created_user_id' => $student['created_user_id'],
93
-               ]);
94
-
95
-               if(!is_null($student['institution_class_id'])){
96
-                   Institution_class_student::create([
97
-                       'student_id' => $student['student_id'],
98
-                       'institution_class_id' => $student['institution_class_id'],
99
-                       'education_grade_id' =>  $student['education_grade_id'],
100
-                       'academic_period_id' => $student['academic_period_id'],
101
-                       'institution_id' =>$student['institution_id'],
102
-                       'student_status_id' => 1,
103
-                       'created_user_id' => $student['created_user_id'],
104
-                   ]);
105
-               }
81
+                Institution_student::create([
82
+                    'student_status_id' => 1,
83
+                    'student_id' => $student['student_id'],
84
+                    'education_grade_id' => $student['education_grade_id'],
85
+                    'academic_period_id' => $student['academic_period_id'],
86
+                    'start_date' => $student['start_date'],
87
+                    'start_year' => \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $student['start_date'])->year , // $student['start_date']->format('Y'),
88
+                    'end_date' => $student['end_date'],
89
+                    'end_year' =>  \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $student['end_date'])->year , //$student['end_date']->format('Y'),
90
+                    'institution_id' => $student['institution_id'],
91
+                    'admission_id' => $student['admission_id'],
92
+                    'created_user_id' => $student['created_user_id'],
93
+                ]);
94
+
95
+                if(!is_null($student['institution_class_id'])){
96
+                    Institution_class_student::create([
97
+                        'student_id' => $student['student_id'],
98
+                        'institution_class_id' => $student['institution_class_id'],
99
+                        'education_grade_id' =>  $student['education_grade_id'],
100
+                        'academic_period_id' => $student['academic_period_id'],
101
+                        'institution_id' =>$student['institution_id'],
102
+                        'student_status_id' => 1,
103
+                        'created_user_id' => $student['created_user_id'],
104
+                    ]);
105
+                }
106 106
                 $output->writeln('
107 107
         ####################################################
108 108
            Total number of students updated : '.$this->count.'
109 109
         #                                                  #
110 110
         ####################################################' );
111 111
 //        $output->writeln();
112
-           }catch (\Exception $e){
112
+            }catch (\Exception $e){
113 113
 //               echo $e->getMessage();
114
-               $output->writeln( $e->getMessage());
115
-           }
114
+                $output->writeln( $e->getMessage());
115
+            }
116 116
         }
117 117
     }
118 118
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
         #                                                  #
110 110
         ####################################################' );
111 111
 //        $output->writeln();
112
-           }catch (\Exception $e){
112
+           } catch (\Exception $e){
113 113
 //               echo $e->getMessage();
114 114
                $output->writeln( $e->getMessage());
115 115
            }
Please login to merge, or discard this patch.
app/Console/Kernel.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
      */
26 26
     protected function schedule(Schedule $schedule)
27 27
     {
28
-         $schedule->command('import:students')
29
-                  ->cron('* * * * * ');
28
+            $schedule->command('import:students')
29
+                    ->cron('* * * * * ');
30 30
     }
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
app/Models/User_contact.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
                     'preferred' => 1
59 59
                 ];
60 60
                 self::updateOrCreate($data);
61
-            }else{
61
+            } else{
62 62
                 $exists = $exists->toArray();
63 63
                 $exists['preferred'] = 1;   
64 64
                 $exists['value'] = $data['contact'];
Please login to merge, or discard this patch.
app/Models/Institution_class_subject.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,8 +109,9 @@
 block discarded – undo
109 109
                 })
110 110
                 ->where('institution_class_id', '=', $student->institution_class_id)
111 111
                 ->get()->toArray();
112
-            if (!empty($subjectId))
113
-                $data[] = $subjectId[0];
112
+            if (!empty($subjectId)) {
113
+                            $data[] = $subjectId[0];
114
+            }
114 115
         }
115 116
         return $data;
116 117
     }
Please login to merge, or discard this patch.
app/Models/Institution.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     protected $dates = ['date_opened', 'date_closed', 'modified', 'created'];
43 43
 
44 44
     public function isActive($id){
45
-       return  self::query()->find($id)->get()->first()->institution_status_id == 1;
45
+        return  self::query()->find($id)->get()->first()->institution_status_id == 1;
46 46
     }
47 47
 
48 48
 }
Please login to merge, or discard this patch.