Completed
Push — master ( 6af1ba...077e0b )
by
unknown
05:07
created
src/Commands/MultiCharacterCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function __construct(string $command, callable $script, string ...$chars)
63 63
     {
64 64
         $chars_count = count($chars);
65
-        if ( $chars_count === 0)
65
+        if ($chars_count === 0)
66 66
         {
67 67
             throw new BotException("No character given for matching the command");
68 68
         }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         else
75 75
         {
76 76
             $this->regex_rule = '(' . $chars[0];
77
-            foreach($chars as $char)
77
+            foreach ($chars as $char)
78 78
             {
79 79
                 $this->regex_rule .= '|' . $char;
80 80
             }
Please login to merge, or discard this patch.