for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Qoraiche\MailEclipse\Http\Exceptions;
use Exception;
use Qoraiche\MailEclipse\Facades\MailEclipse;
class PreviewErrorException extends Exception
{
/**
* The error exception.
*
* @var string
*/
protected $exception;
* Create a new preview exception.
public function __construct($exception)
$this->exception = $exception;
}
* Render the exception into an HTTP response.
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
public function render($request)
$request
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function render(/** @scrutinizer ignore-unused */ $request)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return response()
->view(
MailEclipse::VIEW_NAMESPACE.'::previewerror',
['exception' => $this->exception],
500
);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.