@@ -54,7 +54,7 @@ |
||
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)) { |
@@ -38,7 +38,7 @@ |
||
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; |
@@ -38,7 +38,7 @@ |
||
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; |
@@ -86,7 +86,7 @@ |
||
86 | 86 | } |
87 | 87 | } |
88 | 88 | |
89 | - // $sub = str_replace(["<", ">"], ["<", ">"], $sub); |
|
89 | + // $sub = str_replace(["<", ">"], ["<", ">"], $sub); |
|
90 | 90 | |
91 | 91 | $source = str_replace($match[0], $sub, $source); |
92 | 92 | } |
@@ -40,8 +40,8 @@ |
||
40 | 40 | public function parse(Node $node): void |
41 | 41 | { |
42 | 42 | $types = [ |
43 | - '-', '*', |
|
44 | - '^', '@' |
|
43 | + '-', '*', |
|
44 | + '^', '@' |
|
45 | 45 | ]; |
46 | 46 | |
47 | 47 | if (in_array($node->command(), $types) === true) { |
@@ -263,8 +263,8 @@ discard block |
||
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 |
||
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 |
@@ -25,7 +25,7 @@ |
||
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 |