Test Setup Failed
Push — a-simpler-manager ( b87bbb...ca6085 )
by Ben
06:19 queued 13s
created
src/Site/Menu/Application/CreateMenu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             $model->parent_id = ($request->input('allow_parent') && $request->input('parent_id')) ? $request->input('parent_id') : null;
27 27
             $model->menu_type = $request->input('menu_type', 'main');
28 28
 
29
-            if($request->input('owner_reference')) {
29
+            if ($request->input('owner_reference')) {
30 30
                 $owner = ModelReference::fromString($request->input('owner_reference'));
31 31
                 $model->owner_type = $owner->className();
32 32
                 $model->owner_id = $owner->id();
Please login to merge, or discard this patch.
src/Site/Menu/MenuItem.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     public function url($locale = null)
72 72
     {
73
-        if(!$locale) $locale = app()->getLocale();
73
+        if (!$locale) $locale = app()->getLocale();
74 74
 
75 75
         if ($this->ofType(static::TYPE_INTERNAL) && $owner = $this->owner) {
76 76
             return $owner->url($locale);
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             'id'             => $node->id,
91 91
             'type'           => $node->type,
92 92
             'label'          => $node->label,
93
-            'page_label'     => $node->page_label,                       // Extra info when dealing with internal links
93
+            'page_label'     => $node->page_label, // Extra info when dealing with internal links
94 94
             'url'            => $node->url(),
95 95
             'order'          => $node->order,
96 96
             'owner_type'     => $node->owner_type,
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,9 @@
 block discarded – undo
70 70
 
71 71
     public function url($locale = null)
72 72
     {
73
-        if(!$locale) $locale = app()->getLocale();
73
+        if(!$locale) {
74
+            $locale = app()->getLocale();
75
+        }
74 76
 
75 77
         if ($this->ofType(static::TYPE_INTERNAL) && $owner = $this->owner) {
76 78
             return $owner->url($locale);
Please login to merge, or discard this patch.
src/Old/PageBuilder/PresentSections.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             $this->addModelToCollection($i, $child);
88 88
         }
89 89
 
90
-        return $this->sets->values()->map(function (ViewableContract $child) {
90
+        return $this->sets->values()->map(function(ViewableContract $child) {
91 91
             return $child->setViewParent($this->parent)->renderView();
92 92
         });
93 93
     }
Please login to merge, or discard this patch.
src/Shared/Snippets/SnippetParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
             return $value;
13 13
         }
14 14
 
15
-        $value = preg_replace_callback(static::$pattern, function ($matches) {
15
+        $value = preg_replace_callback(static::$pattern, function($matches) {
16 16
 
17 17
             // First entry of matches contains our full captured group, which we want to replace.
18 18
             // Second entry is the text itself, without the brackets
Please login to merge, or discard this patch.
src/Shared/Snippets/SnippetCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             }
37 37
         }
38 38
 
39
-        return static::$loadedSnippets = new self($files->map(function (SplFileInfo $file) {
39
+        return static::$loadedSnippets = new self($files->map(function(SplFileInfo $file) {
40 40
             $path = $file->getRealPath();
41 41
 
42 42
             if (0 === strpos($path, resource_path('views')) && false !== strpos($file->getBasename(), '.blade.php')) {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $loadedSnippets = static::load();
56 56
 
57
-        return $loadedSnippets->first(function (Snippet $snippet) use ($key) {
57
+        return $loadedSnippets->first(function(Snippet $snippet) use ($key) {
58 58
             return $snippet->key() == $key;
59 59
         });
60 60
     }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
     public function toClips(): array
87 87
     {
88
-        return $this->map(function ($snippet) {
88
+        return $this->map(function($snippet) {
89 89
             return [$snippet->label(), $snippet->placeholder()];
90 90
         })->toArray();
91 91
     }
Please login to merge, or discard this patch.