@@ -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 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | { |
| 100 | 100 | parent::__construct(); |
| 101 | 101 | |
| 102 | - include __DIR__ . '/bootstrap.php'; |
|
| 102 | + include __DIR__.'/bootstrap.php'; |
|
| 103 | 103 | |
| 104 | 104 | $options; |
| 105 | 105 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | private function registerTags(): void |
| 119 | 119 | { |
| 120 | 120 | synapse()->tags->each( |
| 121 | - function ($tag) { |
|
| 121 | + function($tag) { |
|
| 122 | 122 | $class = "\\Axiom\\Rivescript\\Cortex\\Tags\\$tag"; |
| 123 | 123 | $tagInstance = new $class(); |
| 124 | 124 | |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | array $args = [], |
| 267 | 267 | int $verbosity = Rivescript::VERBOSITY_DEBUG): void |
| 268 | 268 | { |
| 269 | - $message = "[WARNING]: " . $this->formatString($message, $args); |
|
| 269 | + $message = "[WARNING]: ".$this->formatString($message, $args); |
|
| 270 | 270 | |
| 271 | 271 | $this->emit(Event::DEBUG_WARNING, $message); |
| 272 | 272 | } |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | array $args = [], |
| 285 | 285 | int $verbosity = Rivescript::VERBOSITY_NORMAL): void |
| 286 | 286 | { |
| 287 | - $message = "[DEBUG]: " . $this->formatString($message, $args); |
|
| 287 | + $message = "[DEBUG]: ".$this->formatString($message, $args); |
|
| 288 | 288 | |
| 289 | 289 | $this->emit(EVENT::DEBUG, $message); |
| 290 | 290 | } |
@@ -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 |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | use Axiom\Rivescript\Events\Event; |
| 5 | 5 | use Axiom\Rivescript\Rivescript; |
| 6 | 6 | |
| 7 | -$script =<<<EOF |
|
| 7 | +$script = <<<EOF |
|
| 8 | 8 | + hi bot |
| 9 | 9 | - hello human |
| 10 | 10 | EOF; |