Test Failed
Push — master ( bc3ca5...8af91a )
by Phaniraj
05:40
created
database/migrations/2018_06_25_112242_create_exports_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('exports', function (Blueprint $table) {
16
+        Schema::create('exports', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('file', 255)->nullable();
19 19
             $table->string('type', 10);
Please login to merge, or discard this patch.
database/migrations/2018_06_15_103302_create_imports_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('imports', function (Blueprint $table) {
16
+        Schema::create('imports', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('file', 255);
19 19
             $table->integer('file_rows');
Please login to merge, or discard this patch.
database/migrations/2018_06_22_045143_create_import_export_logs_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('import_export_logs', function (Blueprint $table) {
16
+        Schema::create('import_export_logs', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->integer('op_id');
19 19
             $table->longText('data');
Please login to merge, or discard this patch.
src/Export.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         // Map export instance
56 56
         $export = ModelExport::findOrFail($id);
57 57
 
58
-        if (! file_exists(storage_path('app/exports').'/'.$export->file) || empty($export->file)) {
58
+        if (!file_exists(storage_path('app/exports').'/'.$export->file) || empty($export->file)) {
59 59
             abort(404);
60 60
         }
61 61
 
Please login to merge, or discard this patch.
src/Jobs/ExportJob.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,13 +47,13 @@
 block discarded – undo
47 47
         $export->save();
48 48
 
49 49
         // Create export file
50
-        $excel = Excel::create('export-'.date('dmYhis'), function ($excel) use ($export) {
50
+        $excel = Excel::create('export-'.date('dmYhis'), function($excel) use ($export) {
51 51
 
52 52
             // Create new sheet
53
-            $excel->sheet('export', function ($sheet) use ($export) {
53
+            $excel->sheet('export', function($sheet) use ($export) {
54 54
 
55 55
                 // Retrive data in chunk
56
-                $export->query->chunk(10, function ($data) use ($export, $sheet) {
56
+                $export->query->chunk(10, function($data) use ($export, $sheet) {
57 57
 
58 58
                     // Process chunk data
59 59
                     foreach ($data as $row) {
Please login to merge, or discard this patch.
src/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-Route::middleware('web')->group(function () {
3
+Route::middleware('web')->group(function() {
4 4
 
5 5
 // Ajax GET import progress
6 6
     Route::get(config('import.import_progress.url'), ['as' => config('import.import_progress.name'), 'uses' => 'Ladybirdweb\ImportExport\Import@returnImportProgress']);
Please login to merge, or discard this patch.
tests/ExportTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         $this->artisan('migrate', ['--database' => 'testing']);
36 36
 
37
-        Route::middleware('web')->group(function () {
37
+        Route::middleware('web')->group(function() {
38 38
             Route::get('/ticket/export/{id}', ['as' => 'ticket.export.progress', 'uses' => 'LWS\ImportExport\Export@showExportStatus']);
39 39
 
40 40
             Route::get('/export/{id}/download', ['as' => 'ladybirdweb.export.download', 'uses' => 'LWS\ImportExport\Export@downloadExportedFile']);
Please login to merge, or discard this patch.
tests/ImportTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
         $this->artisan('migrate', ['--database' => 'testing']);
35 35
 
36
-        Route::middleware('web')->group(function () {
36
+        Route::middleware('web')->group(function() {
37 37
             Route::get('/import/{id}/progress', ['as' => 'ladybirdweb.import.ajax.progress', 'uses' => 'LWS\ImportExport\Import@returnImportProgress']);
38 38
         });
39 39
 
Please login to merge, or discard this patch.