Passed
Push — master ( 5aa6fa...3cf99a )
by Johnny
01:50
created
src/Cortex/Triggers/Alternation.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 if (count($set) > 0) {
88 88
                     if ($match[1] === '(') {
89 89
                         foreach ($set as $setIndex => $item) {
90
-                            $set[$setIndex] = $this->signatures['alternation'] . $item;
90
+                            $set[$setIndex] = $this->signatures['alternation'].$item;
91 91
                         }
92 92
                         $triggerString = str_replace($match[0], "{{$index}}", $triggerString);
93 93
                         $sets [] = $set;
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                         $tmp = str_replace("{{$index}}", $string, $tmp);
119 119
                     }
120 120
 
121
-                    $tmp = str_replace([$this->signatures['optional'] . " ", $this->signatures['optional']], "", $tmp);
121
+                    $tmp = str_replace([$this->signatures['optional']." ", $this->signatures['optional']], "", $tmp);
122 122
                     $tmp = trim($tmp);
123 123
 
124 124
                     $sentences [] = $tmp;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
                 $signature = $this->signatures['alternation'];
128 128
                 $cmp = [$this, 'isMatchesWithoutSignature'];
129 129
 
130
-                $result = array_filter($sentences, static function (string $sentence) use ($input, $signature, $cmp) {
130
+                $result = array_filter($sentences, static function(string $sentence) use ($input, $signature, $cmp) {
131 131
                     if (strpos($sentence, $signature) > -1) {
132 132
                         return $cmp(strtolower($sentence), strtolower($input->source()));
133 133
                     }
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
         $with = explode(" ", $withSignature);
157 157
         $without = explode(" ", $withoutSignature);
158 158
 
159
-       // echo "{$withSignature} vs {$withoutSignature}\n";
159
+        // echo "{$withSignature} vs {$withoutSignature}\n";
160 160
         $max = count($with);
161 161
         for ($i = 0; $i < $max; $i++) {
162 162
             if (isset($without[$i]) === false) {
Please login to merge, or discard this patch.