Test Setup Failed
Pull Request — master (#261)
by Mohamed
06:38
created
app/Exports/ExaminationStudentsExport.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
     }
33 33
     
34 34
     /**
35
-    * @return \Illuminate\Support\Collection
36
-    */
35
+     * @return \Illuminate\Support\Collection
36
+     */
37 37
     public function collection()
38 38
     {
39 39
         //
Please login to merge, or discard this patch.
app/Models/Unique_user_id.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     public  function updateOrInsertRecord($user)
55 55
     {
56
-       try {
56
+        try {
57 57
             // regenerate unique id if it's not available
58 58
         $uniqueId =  $this->uniqueUserId::isValidUniqueId($user['openemis_no']) ? $this->uniqueUserId::getUniqueAlphanumeric() : $user['openemis_no'];
59 59
 
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
                 'unique_id' =>  $uniqueId
70 70
             ]);
71 71
         }
72
-       } catch (\Exception $th) {
73
-           Log::error($th->getMessage());
74
-       }
72
+        } catch (\Exception $th) {
73
+            Log::error($th->getMessage());
74
+        }
75 75
     }
76 76
 }
Please login to merge, or discard this patch.
app/Http/Controllers/ImportExport.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 
30 30
     }
31 31
 
32
-     /**
33
-    * @return \Illuminate\Support\Collection
34
-    */
32
+        /**
33
+         * @return \Illuminate\Support\Collection
34
+         */
35 35
     public function importExportView()
36 36
     {
37 37
         if(Auth::user()->super_admin ){
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
 
46 46
    
47 47
     /**
48
-    * @return \Illuminate\Support\Collection
49
-    */
48
+     * @return \Illuminate\Support\Collection
49
+     */
50 50
     public function export(Request $request) 
51 51
     {
52
-         $request->validate([
52
+            $request->validate([
53 53
                 'class' => 'required'
54 54
             ]);
55 55
         return Excel::download(new UsersExport($request->input('class')), 'users.xlsx');
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
 
59 59
 
60 60
     /**
61
-    * @return \Illuminate\Support\Collection
62
-    */
61
+     * @return \Illuminate\Support\Collection
62
+     */
63 63
     public function import(Request $request)
64 64
     {
65 65
 
Please login to merge, or discard this patch.
app/Http/Controllers/FilesController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
                 }
81 81
 
82 82
             })
83
-             ->editColumn('error', function ($data) {
83
+                ->editColumn('error', function ($data) {
84 84
                 if(\App::environment('local') || \App::environment('stage')  || \App::environment('prod')){
85 85
                     return '<a href="/download/'.$data->filename.'">'.substr($data->filename, 0, 10).'</a>';
86 86
 
Please login to merge, or discard this patch.