Completed
Branch develop (87e81b)
by Phaniraj
11:23
created
src/Events/QueueProcessed.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     /**
14 14
      * Create a new event instance.
15 15
      *
16
-     * @param  \App\Order  $order
16
+     * @param string $file_name
17 17
      * @return void
18 18
      */
19 19
     public function __construct($file_name,$table_id)
Please login to merge, or discard this patch.
src/Http/Controllers/DownloadsController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace LWS\ExportActions\Http\Controllers;
4 4
 
5
-use GuzzleHttp\Client;
6 5
 use Illuminate\Http\Request;
7 6
 
8 7
 use Illuminate\Routing\Controller;
Please login to merge, or discard this patch.
src/Http/Controllers/Exporter.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@  discard block
 block discarded – undo
69 69
     }
70 70
 
71 71
 
72
+    /**
73
+     * @param string $file_name
74
+     */
72 75
     public function csv($file_name)
73 76
     {
74 77
         $headers = [
@@ -80,6 +83,9 @@  discard block
 block discarded – undo
80 83
     }
81 84
 
82 85
 
86
+    /**
87
+     * @param string $file_name
88
+     */
83 89
     public function excel($file_name)
84 90
     {
85 91
         $spreadsheet = new Spreadsheet();
@@ -100,6 +106,9 @@  discard block
 block discarded – undo
100 106
         unset($spreadsheet);
101 107
     }
102 108
 
109
+    /**
110
+     * @param string $file_name
111
+     */
103 112
     public function pdf($file_name)
104 113
     {
105 114
 
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 
5 5
 use GuzzleHttp\Client;
6 6
 use Illuminate\Http\Request;
7
-use SoapBox\Formatter\Formatter;
8 7
 use Illuminate\Routing\Controller;
8
+use Illuminate\Support\Facades\DB;
9 9
 use Illuminate\Support\Facades\Storage;
10
+use LWS\ExportActions\Jobs\WritePdf;
10 11
 use PhpOffice\PhpSpreadsheet\Spreadsheet;
11 12
 use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
12
-use LWS\ExportActions\Jobs\WritePdf;
13
-use Illuminate\Support\Facades\DB;
13
+use SoapBox\Formatter\Formatter;
14 14
 
15 15
 
16 16
 class Exporter extends Controller
Please login to merge, or discard this patch.
src/Jobs/WriteCsv.php 1 patch
Unused Use Statements   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,16 +2,15 @@
 block discarded – undo
2 2
 
3 3
 namespace LWS\ExportActions\Jobs;
4 4
 
5
-use PDF;
6 5
 use GuzzleHttp\Client;
7
-use Illuminate\Http\Request;
8 6
 use Illuminate\Bus\Queueable;
9
-use SoapBox\Formatter\Formatter;
10
-use Illuminate\Queue\SerializesModels;
11
-use Illuminate\Support\Facades\Storage;
12
-use Illuminate\Queue\InteractsWithQueue;
13 7
 use Illuminate\Contracts\Queue\ShouldQueue;
14 8
 use Illuminate\Foundation\Bus\Dispatchable;
9
+use Illuminate\Http\Request;
10
+use Illuminate\Queue\InteractsWithQueue;
11
+use Illuminate\Queue\SerializesModels;
12
+use Illuminate\Support\Facades\Storage;
13
+use SoapBox\Formatter\Formatter;
15 14
 
16 15
 class WriteCsv implements ShouldQueue
17 16
 {
Please login to merge, or discard this patch.
src/Jobs/WritePdf.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,13 +3,13 @@
 block discarded – undo
3 3
 namespace LWS\ExportActions\Jobs;
4 4
 
5 5
 use Illuminate\Bus\Queueable;
6
-use Illuminate\Queue\SerializesModels;
7
-use Illuminate\Queue\InteractsWithQueue;
8 6
 use Illuminate\Contracts\Queue\ShouldQueue;
9 7
 use Illuminate\Foundation\Bus\Dispatchable;
10
-use PDF;
8
+use Illuminate\Queue\InteractsWithQueue;
9
+use Illuminate\Queue\SerializesModels;
11 10
 use Illuminate\Support\Facades\Storage;
12 11
 use LWS\ExportActions\Events\QueueProcessed;
12
+use PDF;
13 13
 
14 14
 class WritePdf implements ShouldQueue
15 15
 {
Please login to merge, or discard this patch.
src/Listeners/QueueResponse.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     /**
21 21
      * Handle the event.
22 22
      *
23
-     * @param  \App\Events\OrderShipped  $event
23
+     * @param  QueueProcessed  $event
24 24
      * @return void
25 25
      */
26 26
     public function handle(QueueProcessed $event)
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace LWS\ExportActions\Listeners;
4 4
 
5
-use LWS\ExportActions\Events\QueueProcessed;
6 5
 use Illuminate\Support\Facades\DB;
6
+use LWS\ExportActions\Events\QueueProcessed;
7 7
 
8 8
 class QueueResponse
9 9
 {
Please login to merge, or discard this patch.