for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace JobApis\JobsToMail\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use JobApis\JobsToMail\Jobs\Collections\GenerateCsv;
class CollectionsController extends BaseController
{
use DispatchesJobs, ValidatesRequests;
/**
* Download jobs from a collection by ID
*/
public function download(Request $request, $id)
$request
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$path = $this->dispatchNow(new GenerateCsv($id));
// sleep(2);
return response()->download($path, null, ['Content-Type: text/csv']);
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.