1 | <?php |
||
2 | |||
3 | |||
4 | if (! function_exists('flashtoast')) { |
||
5 | /** |
||
6 | * Arrange for a flash message. |
||
7 | * |
||
8 | * @param string|null $message |
||
9 | * @param string $level |
||
10 | * @return \Laracasts\Flash\FlashNotifier |
||
0 ignored issues
–
show
|
|||
11 | */ |
||
12 | function flashtoast($message = null, $level = 'info') |
||
13 | { |
||
14 | $notifier = app('flashtoast'); |
||
15 | if (! is_null($message)) { |
||
16 | return $notifier->message($message, $level); |
||
0 ignored issues
–
show
|
|||
17 | } |
||
18 | return $notifier; |
||
0 ignored issues
–
show
|
|||
19 | } |
||
20 | } |
||
21 | |||
22 | if (!function_exists('menuIsRoute')) { |
||
23 | function menuIsRoute($route, $active_class = 'active') { |
||
24 | $curr_route = Route::currentRouteName(); |
||
25 | if($route == $curr_route) { |
||
26 | return $active_class; |
||
27 | } |
||
28 | } |
||
29 | } |
||
30 | |||
31 | if (!function_exists('urlDoesContainParam')) { |
||
32 | function urlDoesContainParam($param_name, $param_value = true, $active_class = 'active') { |
||
33 | if(request()->get($param_name) == $param_value) { |
||
34 | return $active_class; |
||
35 | } |
||
36 | } |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * prints array in readable format |
||
41 | * |
||
42 | * @param $data |
||
43 | * @param bool $exit |
||
44 | */ |
||
45 | function prettyPrint($data, $exit = true) |
||
46 | { |
||
47 | echo '<pre>'; |
||
48 | print_r($data); |
||
49 | echo '</pre>'; |
||
50 | |||
51 | if ($exit) { |
||
52 | exit; |
||
0 ignored issues
–
show
|
|||
53 | } |
||
54 | } |
||
55 | |||
56 |
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