Completed
Push — master ( 383466...f53a3b )
by Garrett
03:21
created
src/Mediator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -438,7 +438,7 @@
 block discarded – undo
438 438
      *
439 439
      * @internal
440 440
      *
441
-     * @param mixed $needle   The value to be searched for
441
+     * @param callable $needle   The value to be searched for
442 442
      * @param array $haystack The array
443 443
      *
444 444
      * @return int|bool The top-level key containing the needle if found, false otherwise
Please login to merge, or discard this patch.
src/Observer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         // filter out any that don't begin with "on"
100 100
         $methods = array_filter(
101 101
             $methods,
102
-            function (\ReflectionMethod $m) {
102
+            function(\ReflectionMethod $m) {
103 103
                 return (strpos($m->name, 'on') === 0);
104 104
             }
105 105
         ); // slow, both array_filter and closure
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
         // filter out auto-handlers so that a subsequent call to subscribe()
156 156
         // works predictably
157
-        $this->handlers = array_filter($this->handlers, function ($v) {
157
+        $this->handlers = array_filter($this->handlers, function($v) {
158 158
             return (strpos($v[0][1], 'on') !== 0);
159 159
         });
160 160
 
Please login to merge, or discard this patch.