for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yaro\Jarboe\Table\Fields\Traits;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
trait Storage
{
protected $disk;
protected $path = '';
protected $multiple = false;
protected function storeFile(UploadedFile $file, $filename, Request $request)
$request
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function storeFile(UploadedFile $file, $filename, /** @scrutinizer ignore-unused */ Request $request)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$path = $file->storeAs($this->getPath(), $filename, [
'disk' => $this->getDisk(),
]);
return $path;
}
public function multiple(bool $multiple = true)
$this->multiple = $multiple;
return $this;
public function isMultiple()
return $this->multiple;
public function disk(string $disk)
$this->disk = $disk;
public function getDisk()
return $this->disk;
public function path(string $path)
$this->path = $path;
public function getPath()
return $this->path;
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.