Passed
Push — master ( 1eec8f...87a06b )
by Johnny
08:20
created
src/Cortex/Tags/Ok.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     public function parse(string $source, SourceInput $input): string
55 55
     {
56 56
         if (!$this->sourceAllowed()) {
57
-           return $source;
57
+            return $source;
58 58
         }
59 59
 
60 60
         if ($this->hasMatches($source)) {
Please login to merge, or discard this patch.
src/Cortex/Responses/Atomic.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     public function parse()
39 39
     {
40 40
         if ($this->responseQueueItem()->getCommand() === '-') {
41
-           return $this->source();
41
+            return $this->source();
42 42
         }
43 43
 
44 44
         return false;
Please login to merge, or discard this patch.
src/Cortex/Responses/Redirect.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     public function parse()
39 39
     {
40 40
         if ($this->responseQueueItem()->getCommand() === '@') {
41
-           return $this->source();
41
+            return $this->source();
42 42
         }
43 43
 
44 44
         return false;
Please login to merge, or discard this patch.
src/Cortex/Tags/Sentence.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
                     }
87 87
                 }
88 88
 
89
-               //  $sub = str_replace(["&#60;", "&#62;"], ["<", ">"], $sub);
89
+                //  $sub = str_replace(["&#60;", "&#62;"], ["<", ">"], $sub);
90 90
 
91 91
                 $source = str_replace($match[0], $sub, $source);
92 92
             }
Please login to merge, or discard this patch.
src/Rivescript.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -263,8 +263,8 @@  discard block
 block discarded – undo
263 263
      * @return void
264 264
      */
265 265
     public function warn(string $message,
266
-                         array  $args = [],
267
-                         int    $verbosity = Rivescript::VERBOSITY_DEBUG): void
266
+                            array  $args = [],
267
+                            int    $verbosity = Rivescript::VERBOSITY_DEBUG): void
268 268
     {
269 269
         $message = "[WARNING]: " . $this->formatString($message, $args);
270 270
 
@@ -281,8 +281,8 @@  discard block
 block discarded – undo
281 281
      * @return void
282 282
      */
283 283
     public function debug(string $message,
284
-                          array  $args = [],
285
-                          int    $verbosity = Rivescript::VERBOSITY_NORMAL): void
284
+                            array  $args = [],
285
+                            int    $verbosity = Rivescript::VERBOSITY_NORMAL): void
286 286
     {
287 287
         $message = "[DEBUG]: " . $this->formatString($message, $args);
288 288
 
Please login to merge, or discard this patch.
sandbox/api.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 $rivescript->stream($script);
26 26
 
27 27
 $rivescript->on(Event::DEBUG, 'onDebug')
28
-           ->on(Event::DEBUG_VERBOSE, 'onVerbose');
28
+            ->on(Event::DEBUG_VERBOSE, 'onVerbose');
29 29
 
30 30
 
31 31
 echo $rivescript->reply("hi bot");
32 32
\ No newline at end of file
Please login to merge, or discard this patch.
src/Cortex/Commands/Response.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
     public function parse(Node $node): void
41 41
     {
42 42
         $types = [
43
-          '-', '*',
44
-          '^', '@',
45
-          '%'
43
+            '-', '*',
44
+            '^', '@',
45
+            '%'
46 46
         ];
47 47
 
48 48
         if (in_array($node->command(), $types) === true) {
Please login to merge, or discard this patch.
src/Cortex/Triggers/Arrays.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
                 if ($wildcards) {
62 62
                     $wildcards = Collection::make($wildcards)->flatten()->all();
63 63
 
64
-                  //  $x = synapse()->memory->shortTerm()->get('wildcards');
64
+                    //  $x = synapse()->memory->shortTerm()->get('wildcards');
65 65
 //                    $trigger = synapse()->memory->shortTerm()->get('trigger');
66 66
 
67 67
 //                    synapse()->memory->shortTerm()->put('wildcards', $wildcards);
Please login to merge, or discard this patch.
src/Cortex/Triggers/Wildcard.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $trigger = $this->parseTags($trigger, $input);
45 45
 
46 46
         $wildcards = [
47
-     //       '/@(\s+)/' => ".*?\b",
47
+        //       '/@(\s+)/' => ".*?\b",
48 48
             '/_/' => '[^\s\d]+?',
49 49
             '/#/' => '\\d+?',
50 50
             '/\*/' => '.*?',
Please login to merge, or discard this patch.