for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\LaravelSettings\Middleware;
use Arcanedev\LaravelSettings\Contracts\Store;
use Closure;
/**
* Class SaveSettings
*
* @package Arcanedev\LaravelSettings\Middleware
* @author ARCANEDEV <[email protected]>
*/
class SaveSettings
{
/* -----------------------------------------------------------------
| Properties
| -----------------------------------------------------------------
/** @var \Arcanedev\LaravelSettings\Contracts\Store */
protected $settings;
| Constructor
* SaveSettings constructor.
* @param \Arcanedev\LaravelSettings\Contracts\Store $settings
public function __construct(Store $settings)
$this->settings = $settings;
}
| Main Methods
* Handle an incoming request.
* @param \Illuminate\Http\Request $request
* @param Closure $next
* @return mixed
public function handle($request, Closure $next)
return $next($request);
* Hasta la vista, baby.
* @param \Symfony\Component\HttpFoundation\Response $response
public function terminate($request, $response)
$request
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$response
$this->settings->save();
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.