Completed
Push — master ( dcdcb3...4c21a1 )
by Chauncey
13:40
created
src/Charcoal/Ui/ServiceProvider/MenuServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         /**
77 77
          * @var callable
78 78
          */
79
-        $delegate = function (Container $container) {
79
+        $delegate = function(Container $container) {
80 80
             $args = [
81 81
                 'container' => $container,
82 82
                 'logger'    => $container['logger'],
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
          * @param  Container $container A Pimple DI container.
100 100
          * @return MenuFactory
101 101
          */
102
-        $container['menu/item/factory'] = function (Container $container) use ($delegate) {
102
+        $container['menu/item/factory'] = function(Container $container) use ($delegate) {
103 103
             $services = $delegate($container);
104 104
 
105 105
             $container['menu/item/builder'] = $services['builder'];
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
          * @param  Container $container A Pimple DI container.
111 111
          * @return MenuBuilder
112 112
          */
113
-        $container['menu/item/builder'] = function (Container $container) use ($delegate) {
113
+        $container['menu/item/builder'] = function(Container $container) use ($delegate) {
114 114
             $services = $delegate($container);
115 115
 
116 116
             $container['menu/item/factory'] = $services['factory'];
Please login to merge, or discard this patch.
src/Charcoal/Ui/ConditionalizableTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function resolveConditionalLogic($condition)
112 112
     {
113
-        if (is_callable([ $this, $condition ])) {
113
+        if (is_callable([$this, $condition])) {
114 114
             return !!$this->{$condition}();
115 115
         }
116 116
 
@@ -118,17 +118,17 @@  discard block
 block discarded – undo
118 118
             return !!$condition();
119 119
         }
120 120
 
121
-        if (is_callable([ $this, 'form' ])) {
121
+        if (is_callable([$this, 'form'])) {
122 122
             $form = $this->form();
123 123
 
124
-            if (is_callable([ $form, $condition ])) {
124
+            if (is_callable([$form, $condition])) {
125 125
                 return !!$form->{$condition}();
126 126
             }
127 127
 
128
-            if (is_callable([ $form, 'obj' ])) {
128
+            if (is_callable([$form, 'obj'])) {
129 129
                 $obj = $form->obj();
130 130
 
131
-                if (is_callable([ $obj, $condition ])) {
131
+                if (is_callable([$obj, $condition])) {
132 132
                     return !!$obj->{$condition}();
133 133
                 }
134 134
 
Please login to merge, or discard this patch.