Completed
Push — master ( f53814...1d1cb6 )
by
unknown
06:30
created
src/Charcoal/Ui/Menu/AbstractMenu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
     public function items(callable $itemCallback = null)
126 126
     {
127 127
         $items = $this->items;
128
-        uasort($items, [ $this, 'sortItemsByPriority' ]);
128
+        uasort($items, [$this, 'sortItemsByPriority']);
129 129
 
130 130
         $itemCallback = isset($itemCallback) ? $itemCallback : $this->itemCallback;
131 131
         foreach ($items as $item) {
Please login to merge, or discard this patch.
src/Charcoal/Ui/ConditionalizableTrait.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     /**
73 73
      * Resolve the conditional logic.
74 74
      *
75
-     * @param  mixed $condition The condition.
75
+     * @param  boolean|string $condition The condition.
76 76
      * @return boolean|null
77 77
      */
78 78
     final protected function parseConditionalLogic($condition)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
      */
107 107
     protected function resolveConditionalLogic($condition)
108 108
     {
109
-        if (is_callable([ $this, $condition ])) {
109
+        if (is_callable([$this, $condition])) {
110 110
             return !!$this->{$condition}();
111 111
         } elseif (is_callable($condition)) {
112 112
             return !!$condition();
Please login to merge, or discard this patch.