Total Complexity | 7 |
Total Lines | 90 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class Redirect |
||
8 | { |
||
9 | const GET = 'GET'; |
||
10 | const POST = 'POST'; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | public $url; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | public $method; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | public $query = []; |
||
26 | |||
27 | /** |
||
28 | * Redirect constructor. |
||
29 | * |
||
30 | * @param $url |
||
31 | * @param string $method |
||
32 | * @param array $query |
||
33 | */ |
||
34 | public function __construct($url, $method = self::GET, $query = []) |
||
35 | { |
||
36 | $this->url = $url; |
||
37 | $this->query = $query; |
||
38 | $this->method = $method; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Convert to string. |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | public function __toString() |
||
47 | { |
||
48 | return $this->toJson(); |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * Convert to JSON. |
||
53 | * |
||
54 | * @return false|string |
||
55 | */ |
||
56 | public function toJson() |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * Convert to response. |
||
63 | * |
||
64 | * @return \Illuminate\Http\RedirectResponse|\Illuminate\View\View |
||
|
|||
65 | */ |
||
66 | public function toResponse() |
||
76 | ]); |
||
77 | } |
||
78 | |||
79 | /** |
||
80 | * Get redirect summary. |
||
81 | * |
||
82 | * @return object |
||
83 | */ |
||
84 | public function raw() |
||
100 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths