Passed
Push — master ( 185c5a...5247ec )
by Thomas
13:57
created
app/Console/Kernel.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@  discard block
 block discarded – undo
34 34
      */
35 35
     protected function schedule(Schedule $schedule)
36 36
     {
37
-        $schedule->call(function () {
37
+        $schedule->call(function() {
38 38
             Log::info('Sending attendance reminders');
39 39
             $this->remindPendingAttendance();
40 40
         })->dailyAt('08:15');
41 41
 
42
-        $schedule->call(function () {
42
+        $schedule->call(function() {
43 43
             Log::info('Checking default periods');
44 44
 
45 45
             // when we finish the current period; remove the manual override to automatically fallbackto the next one
@@ -57,14 +57,14 @@  discard block
 block discarded – undo
57 57
         })->dailyAt('00:00');
58 58
 
59 59
         if (config('settings.partnership_alerts')) {
60
-            $schedule->call(function () {
60
+            $schedule->call(function() {
61 61
                 Log::info('Checking expired partnerships');
62 62
 
63 63
                 // if one of the partnerships is expiring soon, send an email
64
-                $partners = Partner::where(function ($query) {
64
+                $partners = Partner::where(function($query) {
65 65
                     $query->whereNotNull('expired_on')->where('expired_on', '<', Carbon::now()->addDays(28));
66 66
                 })
67
-                    ->where(function ($query) {
67
+                    ->where(function($query) {
68 68
                         $query->whereNull('last_alert_sent_at')->orWhere('last_alert_sent_at', '>', Carbon::now()->subDays(28))->get();
69 69
                     });
70 70
 
@@ -75,14 +75,14 @@  discard block
 block discarded – undo
75 75
         }
76 76
 
77 77
         if (config('settings.external_courses_report')) {
78
-            $schedule->call(function () {
78
+            $schedule->call(function() {
79 79
                 Log::info('Sending external courses reports');
80 80
                 event(new ExternalCoursesReportEvent());
81 81
             })->dailyAt('02:10');
82 82
         }
83 83
 
84 84
         if (config('settings.monthly_report')) {
85
-            $schedule->call(function () {
85
+            $schedule->call(function() {
86 86
                 Log::info('Sending monthly hours report');
87 87
                 event(new MonthlyReportEvent());
88 88
             })->monthlyOn(20);
Please login to merge, or discard this patch.
app/Console/Commands/migrateGrades.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,14 +45,14 @@  discard block
 block discarded – undo
45 45
             $course = Course::find($entry->course_id);
46 46
             $matchFound = false;
47 47
 
48
-            echo "\nMigrating grades from course " . $course->id;
48
+            echo "\nMigrating grades from course ".$course->id;
49 49
 
50 50
             // collect all grade types associated to this course.
51 51
             $courseGradeTypes = DB::table('course_grade_type')->where('course_id', $entry->course_id)->pluck('grade_type_id');
52 52
             // if this configuration matches an evaluation type, use it, otherwise create it
53 53
             foreach (EvaluationType::has('gradeTypes')->get() as $evaluationType) {
54 54
                 if ($courseGradeTypes->diff($evaluationType->gradeTypes->pluck('id'))->count() == 0) {
55
-                    echo "match with eval type " . $evaluationType->id;
55
+                    echo "match with eval type ".$evaluationType->id;
56 56
                     $course->update(['evaluation_type_id' => $evaluationType->id]);
57 57
                     $matchFound = true;
58 58
                 }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             // if no match has been found
62 62
             if (!$matchFound) {
63 63
                 echo "no match; creating new eval type";
64
-                $evalType = EvaluationType::create(['name' => 'cours ' . $entry->course_id]);
64
+                $evalType = EvaluationType::create(['name' => 'cours '.$entry->course_id]);
65 65
                 $evalType->gradeTypes()->sync($courseGradeTypes);
66 66
             }
67 67
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             $course = Course::find($entry->course_id);
75 75
             $matchFound = false;
76 76
 
77
-            echo "\nMigrating skills from course " . $course->id;
77
+            echo "\nMigrating skills from course ".$course->id;
78 78
 
79 79
             // collect all grade types associated to this course.
80 80
             $courseSkills = DB::table('course_skill')->where('course_id', $entry->course_id)->pluck('skill_id');
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             // if no match has been found
91 91
             if (!$matchFound) {
92 92
                 $levelName = isset($course->level) ? $course->level->name : $course->id; 
93
-                $evalType = EvaluationType::create(['name' => 'Niveau ' . $levelName]);
93
+                $evalType = EvaluationType::create(['name' => 'Niveau '.$levelName]);
94 94
                 $evalType->skills()->sync($courseSkills);
95 95
             }
96 96
         }
Please login to merge, or discard this patch.
app/Console/Commands/importData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@
 block discarded – undo
37 37
             $period = Period::firstWhere('name', $record['year']);
38 38
 
39 39
             // Retrieve or create the student
40
-            $email = $record['email'] !== "" ? $record['email'] : $this->stripAccents($record['firstname']) . "." . $this->stripAccents($record['name']) . "@academico.afsantiago.es";
40
+            $email = $record['email'] !== "" ? $record['email'] : $this->stripAccents($record['firstname']).".".$this->stripAccents($record['name'])."@academico.afsantiago.es";
41 41
 
42 42
             if (User::where('email', $email)->count() > 0) {
43 43
                 $user = User::where('email', $email)->first();
44 44
                 if (($user->firstname !== trim($record['firstname']) || $user->lastname !== trim($record['name'])))
45 45
                 {
46
-                    $email = $this->stripAccents($record['firstname']) . "." . $this->stripAccents($record['name']) . "@academico.afsantiago.es";
46
+                    $email = $this->stripAccents($record['firstname']).".".$this->stripAccents($record['name'])."@academico.afsantiago.es";
47 47
                 }
48 48
             }
49 49
 
Please login to merge, or discard this patch.
app/Models/Fee.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,10 +73,10 @@
 block discarded – undo
73 73
     {
74 74
         if (config('app.currency_position') === 'before')
75 75
         {
76
-            return config('app.currency_symbol') . " ". $this->price;
76
+            return config('app.currency_symbol')." ".$this->price;
77 77
         }
78 78
 
79
-        return $this->price . " " . config('app.currency_symbol');
79
+        return $this->price." ".config('app.currency_symbol');
80 80
     }
81 81
 
82 82
     public function getTypeAttribute()
Please login to merge, or discard this patch.