Test Setup Failed
Pull Request — master (#304)
by Mohamed
07:04
created
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/Institution_grade.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@
 block discarded – undo
107 107
      * @return mixed
108 108
      */
109 109
     public function getInstitutionGrade($institutionId, $gradeId){
110
-         return self::where('education_grade_id',$gradeId)
111
-             ->where('institution_id',$institutionId)->get()->first();
110
+            return self::where('education_grade_id',$gradeId)
111
+                ->where('institution_id',$institutionId)->get()->first();
112 112
     }
113 113
 
114 114
     /**
Please login to merge, or discard this patch.
app/Models/Institution_subject_student.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,21 +71,21 @@
 block discarded – undo
71 71
      */
72 72
     public static function  isDuplicated($inputs){
73 73
 
74
-       $exists = self::where('student_id','=',$inputs['student_id'])
75
-           ->where('institution_subject_id','=',$inputs['institution_subject_id'])
76
-           ->where('education_subject_id','=',$inputs['education_subject_id'])->count();
74
+        $exists = self::where('student_id','=',$inputs['student_id'])
75
+            ->where('institution_subject_id','=',$inputs['institution_subject_id'])
76
+            ->where('education_subject_id','=',$inputs['education_subject_id'])->count();
77 77
 
78 78
 
79 79
         return $exists ? true :false;
80 80
     }
81 81
 
82 82
     
83
-     public function student(){
83
+        public function student(){
84 84
         return $this->belongsTo('App\Models\Security_user','student_id');
85 85
     }
86 86
     
87 87
     public static function getStudentsCount(){
88
-         $total_male_students = self::with(['student' => function($query) {
88
+            $total_male_students = self::with(['student' => function($query) {
89 89
                         $query->where('student.gender_id', '=', 1);
90 90
                     }])->whereHas('student', function ($query) {
91 91
                     $query->where('gender_id', '=', 1);
Please login to merge, or discard this patch.
app/Models/Institution_shift.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 = ['modified', 'created'];
43 43
 
44 44
     public function shiftExists($shift){
45
-       return self::query()
45
+        return self::query()
46 46
             ->where('institution_id',$shift['institution_id'])
47 47
             ->where('location_institution_id',$shift['location_institution_id'])
48 48
             ->where('shift_option_id',$shift['shift_option_id'])
Please login to merge, or discard this patch.
app/Models/User_special_need.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@
 block discarded – undo
42 42
     protected $dates = ['special_need_date', 'modified', 'created'];
43 43
     
44 44
     
45
-     public static function  isDuplicated($inputs){
45
+        public static function  isDuplicated($inputs){
46 46
 
47
-       $exists = self::where('security_user_id','=',$inputs['security_user_id'])
48
-           ->where('special_need_type_id','=',$inputs['special_need_type_id'])
49
-           ->where('special_need_difficulty_id','=',$inputs['special_need_difficulty_id'])->count();
47
+        $exists = self::where('security_user_id','=',$inputs['security_user_id'])
48
+            ->where('special_need_type_id','=',$inputs['special_need_type_id'])
49
+            ->where('special_need_difficulty_id','=',$inputs['special_need_difficulty_id'])->count();
50 50
 
51 51
 //       dd($exists);
52 52
         return $exists == 0 ? true :false;
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.
app/Models/User.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@
 block discarded – undo
71 71
 
72 72
     public function permissions(){
73 73
         return $this->hasMany('App\Models\Security_group_user','security_user_id','id')
74
-             ->where('security_group_users.security_role_id','=',5)
75
-             ->with(['security_group_institution','institution_staff','security_group'  , 'staff_class','institution_group' , 'roles']);
74
+                ->where('security_group_users.security_role_id','=',5)
75
+                ->with(['security_group_institution','institution_staff','security_group'  , 'staff_class','institution_group' , 'roles']);
76 76
     }
77 77
 
78 78
     public function principal(){
Please login to merge, or discard this patch.
app/Mail/StudentImportSuccess.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@
 block discarded – undo
45 45
     public function build()
46 46
     {
47 47
         return $this->view('emails.mail')
48
-             ->from($this->from_address,$this->from_name)
49
-             ->to($this->user->email)
48
+                ->from($this->from_address,$this->from_name)
49
+                ->to($this->user->email)
50 50
             ->subject($this->subject)
51 51
             ->with($this->with);
52 52
     }
Please login to merge, or discard this patch.
app/Mail/IncorrectTemplate.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 {
12 12
     use Queueable, SerializesModels;
13 13
 
14
-     /**
15
-     * Create a new message instance.
16
-     *
17
-     * @return void
18
-     */
14
+        /**
15
+         * Create a new message instance.
16
+         *
17
+         * @return void
18
+         */
19 19
     public function __construct($file)
20 20
     {
21 21
 
Please login to merge, or discard this patch.