Issues (1019)

src/Illuminate/Cleaners/CookieCleaner.php (6 issues)

1
<?php
2
0 ignored issues
show
Missing file doc comment
Loading history...
3
namespace Hhxsv5\LaravelS\Illuminate\Cleaners;
4
5
use Illuminate\Container\Container;
0 ignored issues
show
The type Illuminate\Container\Container was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class CookieCleaner extends BaseCleaner
0 ignored issues
show
Missing doc comment for class CookieCleaner
Loading history...
8
{
9
    private $queued;
0 ignored issues
show
Private member variable "queued" must be prefixed with an underscore
Loading history...
10
11
    public function __construct(Container $currentApp, Container $snapshotApp)
0 ignored issues
show
Missing doc comment for function __construct()
Loading history...
12
    {
13
        parent::__construct($currentApp, $snapshotApp);
14
        if (!isset($this->currentApp['cookie'])) {
15
            return;
16
        }
17
        $ref = new \ReflectionObject($this->currentApp['cookie']);
18
        $this->queued = $ref->getProperty('queued');
19
        $this->queued->setAccessible(true);
20
    }
21
22
    public function clean()
0 ignored issues
show
Missing doc comment for function clean()
Loading history...
23
    {
24
        if (!isset($this->currentApp['cookie'])) {
25
            return;
26
        }
27
        $this->queued->setValue($this->currentApp['cookie'], []);
28
    }
29
}