Test Setup Failed
Push — master ( e7a5b0...d3b761 )
by Mohamed
06:05
created
app/Console/Commands/ExaminationCheck.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,16 +46,16 @@  discard block
 block discarded – undo
46 46
             ->orWhere('nsid', '!=', '')
47 47
             ->get()->toArray();
48 48
         $students = array_chunk($students, 10000);
49
-        $this->output->writeln(count($students) . 'entries found');
49
+        $this->output->writeln(count($students).'entries found');
50 50
         array_walk($students, array($this, 'process'));
51 51
         $this->output->writeln('All are cleaned');
52 52
         $count = DB::table('examination_students')->count(DB::raw('DISTINCT nsid'));
53
-        $this->output->writeln($count .' unique NSIs');
53
+        $this->output->writeln($count.' unique NSIs');
54 54
         $this->end_time = microtime(TRUE);
55 55
 
56 56
 
57 57
         $this->output->writeln('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$');
58
-        $this->output->writeln('The cook took ' . ($this->end_time - $this->start_time) . ' seconds to complete');
58
+        $this->output->writeln('The cook took '.($this->end_time - $this->start_time).' seconds to complete');
59 59
         $this->output->writeln('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$');
60 60
 
61 61
     }
@@ -64,16 +64,16 @@  discard block
 block discarded – undo
64 64
     {
65 65
         array_walk($array, array($this, 'deleteDuplication'));
66 66
         $this->end_time = microtime(TRUE);
67
-        $this->output->writeln('The cook took ' . ($this->end_time - $this->start_time) . ' seconds to complete');
67
+        $this->output->writeln('The cook took '.($this->end_time - $this->start_time).' seconds to complete');
68 68
         $this->output->writeln(count($array).'entries cleaned');
69 69
     }
70 70
 
71 71
     public function deleteDuplication($students)
72 72
     {
73
-        $count =  Examination_student::where('nsid', $students['nsid'])->count();
73
+        $count = Examination_student::where('nsid', $students['nsid'])->count();
74 74
         if ($count > 1) {
75 75
             Examination_student::where('st_no', $students['st_no'])->update(['nsid' => '']);
76
-            $this->output->writeln($students['st_no'] . 'removed');
76
+            $this->output->writeln($students['st_no'].'removed');
77 77
         }
78 78
     }
79 79
 }
Please login to merge, or discard this patch.