Passed
Branch master (18c542)
by Kevin
03:27
created
Category
src/Schedule/Task.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -123,11 +123,11 @@  discard block
 block discarded – undo
123 123
      */
124 124
     final public function when(string $description, $callback): self
125 125
     {
126
-        $callback = \is_callable($callback) ? $callback : function () use ($callback) {
126
+        $callback = \is_callable($callback) ? $callback : function() use ($callback) {
127 127
             return (bool) $callback;
128 128
         };
129 129
 
130
-        return $this->filter(function (BeforeTaskEvent $event) use ($callback, $description) {
130
+        return $this->filter(function(BeforeTaskEvent $event) use ($callback, $description) {
131 131
             if (!$callback($event)) {
132 132
                 throw new SkipTask($description);
133 133
             }
@@ -142,11 +142,11 @@  discard block
 block discarded – undo
142 142
      */
143 143
     final public function skip(string $description, $callback): self
144 144
     {
145
-        $callback = \is_callable($callback) ? $callback : function () use ($callback) {
145
+        $callback = \is_callable($callback) ? $callback : function() use ($callback) {
146 146
             return (bool) $callback;
147 147
         };
148 148
 
149
-        return $this->filter(function (BeforeTaskEvent $event) use ($callback, $description) {
149
+        return $this->filter(function(BeforeTaskEvent $event) use ($callback, $description) {
150 150
             if ($callback($event)) {
151 151
                 throw new SkipTask($description);
152 152
             }
Please login to merge, or discard this patch.
src/Schedule/Extension/EmailExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             return "{$this->hook}, email output";
52 52
         }
53 53
 
54
-        $to = \array_map(function (Address $address) { return $address->toString(); }, $to);
54
+        $to = \array_map(function(Address $address) { return $address->toString(); }, $to);
55 55
         $to = \implode('; ', $to);
56 56
 
57 57
         return "{$this->hook}, email output to \"{$to}\"";
Please login to merge, or discard this patch.
src/Command/ScheduleListCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
 
148 148
         $io->comment(\sprintf('<info>%d</info> %s Extension%s:', $count, $type, $count > 1 ? 's' : ''));
149 149
         $io->listing(\array_map(
150
-            function (Extension $extension) {
150
+            function(Extension $extension) {
151 151
                 return \sprintf('%s <comment>(%s)</comment>',
152 152
                     \strtr($extension, self::extensionHighlightMap()),
153 153
                     \get_class($extension)
Please login to merge, or discard this patch.
src/Schedule.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function getId(): string
32 32
     {
33 33
         $tasks = \array_map(
34
-            function (Task $task) {
34
+            function(Task $task) {
35 35
                 return $task->getId();
36 36
             },
37 37
             $this->all()
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function when(string $description, $callback): self
101 101
     {
102
-        $callback = \is_callable($callback) ? $callback : function () use ($callback) {
102
+        $callback = \is_callable($callback) ? $callback : function() use ($callback) {
103 103
             return (bool) $callback;
104 104
         };
105 105
 
106
-        return $this->filter(function (BeforeScheduleEvent $event) use ($callback, $description) {
106
+        return $this->filter(function(BeforeScheduleEvent $event) use ($callback, $description) {
107 107
             if (!$callback($event)) {
108 108
                 throw new SkipSchedule($description);
109 109
             }
@@ -118,11 +118,11 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function skip(string $description, $callback): self
120 120
     {
121
-        $callback = \is_callable($callback) ? $callback : function () use ($callback) {
121
+        $callback = \is_callable($callback) ? $callback : function() use ($callback) {
122 122
             return (bool) $callback;
123 123
         };
124 124
 
125
-        return $this->filter(function (BeforeScheduleEvent $event) use ($callback, $description) {
125
+        return $this->filter(function(BeforeScheduleEvent $event) use ($callback, $description) {
126 126
             if ($callback($event)) {
127 127
                 throw new SkipSchedule($description);
128 128
             }
Please login to merge, or discard this patch.