Passed
Branch rivalex (3b8508)
by Alessandro
49:20 queued 24:18
created
classes/BreadcrumbsGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
classes/Exceptions/DuplicateBreadcrumbException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
classes/Exceptions/InvalidBreadcrumbException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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]);
Please login to merge, or discard this patch.
classes/BreadcrumbsServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,12 +77,12 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
classes/BreadcrumbsManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.