@@ -61,7 +61,7 @@ |
||
61 | 61 | */ |
62 | 62 | protected function call(string $name, array $params): void |
63 | 63 | { |
64 | - if (! isset($this->callbacks[ $name ])) { |
|
64 | + if (!isset($this->callbacks[$name])) { |
|
65 | 65 | throw new InvalidBreadcrumbException($name); |
66 | 66 | } |
67 | 67 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function getSolution(): Solution |
28 | 28 | { |
29 | 29 | // Determine the breadcrumbs file name(s) |
30 | - $files = (array)config('breadcrumbs.files'); |
|
30 | + $files = (array) config('breadcrumbs.files'); |
|
31 | 31 | |
32 | 32 | $basePath = base_path() . DIRECTORY_SEPARATOR; |
33 | 33 | foreach ($files as &$file) { |
@@ -33,7 +33,7 @@ |
||
33 | 33 | public function getSolution(): Solution |
34 | 34 | { |
35 | 35 | // Determine the breadcrumbs file name |
36 | - $files = (array)config('breadcrumbs.files'); |
|
36 | + $files = (array) config('breadcrumbs.files'); |
|
37 | 37 | |
38 | 38 | if (count($files) === 1) { |
39 | 39 | $file = Str::replaceFirst(base_path() . DIRECTORY_SEPARATOR, '', $files[0]); |
@@ -77,12 +77,12 @@ |
||
77 | 77 | // Load the routes/breadcrumbs.php file, or other configured file(s) |
78 | 78 | $files = config('breadcrumbs.files'); |
79 | 79 | |
80 | - if (! $files) { |
|
80 | + if (!$files) { |
|
81 | 81 | return; |
82 | 82 | } |
83 | 83 | |
84 | 84 | // If it is set to the default value and that file doesn't exist, skip loading it rather than causing an error |
85 | - if ($files === base_path('routes/breadcrumbs.php') && ! is_file($files)) { |
|
85 | + if ($files === base_path('routes/breadcrumbs.php') && !is_file($files)) { |
|
86 | 86 | return; |
87 | 87 | } |
88 | 88 |
@@ -71,7 +71,7 @@ |
||
71 | 71 | * @throws \Rivalex\Breadcrumbs\Exceptions\DuplicateBreadcrumbException If the given name has already been |
72 | 72 | * used. |
73 | 73 | */ |
74 | - public function for(string $name, callable $callback): void |
|
74 | + public function for (string $name, callable $callback): void |
|
75 | 75 | { |
76 | 76 | if (isset($this->callbacks[$name])) { |
77 | 77 | throw new DuplicateBreadcrumbException($name); |