| 1 | <?php namespace Arcanedev\LaravelSettings\Middleware;  | 
            ||
| 12 | class SaveSettings  | 
            ||
| 13 | { | 
            ||
| 14 | /* -----------------------------------------------------------------  | 
            ||
| 15 | | Properties  | 
            ||
| 16 | | -----------------------------------------------------------------  | 
            ||
| 17 | */  | 
            ||
| 18 | |||
| 19 | /** @var \Arcanedev\LaravelSettings\Contracts\Store */  | 
            ||
| 20 | protected $settings;  | 
            ||
| 21 | |||
| 22 | /* -----------------------------------------------------------------  | 
            ||
| 23 | | Constructor  | 
            ||
| 24 | | -----------------------------------------------------------------  | 
            ||
| 25 | */  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * SaveSettings constructor.  | 
            ||
| 29 | *  | 
            ||
| 30 | * @param \Arcanedev\LaravelSettings\Contracts\Store $settings  | 
            ||
| 31 | */  | 
            ||
| 32 | 8 | public function __construct(Store $settings)  | 
            |
| 36 | |||
| 37 | /* -----------------------------------------------------------------  | 
            ||
| 38 | | Main Methods  | 
            ||
| 39 | | -----------------------------------------------------------------  | 
            ||
| 40 | */  | 
            ||
| 41 | |||
| 42 | /**  | 
            ||
| 43 | * Handle an incoming request.  | 
            ||
| 44 | *  | 
            ||
| 45 | * @param \Illuminate\Http\Request $request  | 
            ||
| 46 | * @param Closure $next  | 
            ||
| 47 | *  | 
            ||
| 48 | * @return mixed  | 
            ||
| 49 | */  | 
            ||
| 50 | 8 | public function handle($request, Closure $next)  | 
            |
| 54 | |||
| 55 | /**  | 
            ||
| 56 | * Hasta la vista, baby.  | 
            ||
| 57 | *  | 
            ||
| 58 | * @param \Illuminate\Http\Request $request  | 
            ||
| 59 | * @param \Symfony\Component\HttpFoundation\Response $response  | 
            ||
| 60 | */  | 
            ||
| 61 | 8 | public function terminate($request, $response)  | 
            |
| 65 | }  | 
            ||
| 66 | 
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.