Passed
Push — master ( a3f2ba...d44e36 )
by Johnny
08:16
created
src/Rivescript.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     {
87 87
         parent::__construct();
88 88
 
89
-        include __DIR__ . '/bootstrap.php';
89
+        include __DIR__.'/bootstrap.php';
90 90
 
91 91
         synapse()->brain->setMaster($this);
92 92
         synapse()->rivescript = $this;
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     private function registerTags(): void
103 103
     {
104 104
         synapse()->tags->each(
105
-            function ($tag) {
105
+            function($tag) {
106 106
                 $class = "\\Axiom\\Rivescript\\Cortex\\Tags\\$tag";
107 107
                 $tagInstance = new $class();
108 108
 
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      */
243 243
     public function warn(string $message, array $args = [], int $verbosity = Rivescript::VERBOSITY_NORMAL): void
244 244
     {
245
-        $message = "[WARNING]: " . $this->formatString($message, $args);
245
+        $message = "[WARNING]: ".$this->formatString($message, $args);
246 246
 
247 247
         if ($this->onWarn) {
248 248
             call_user_func($this->onWarn, $message, $verbosity);
Please login to merge, or discard this patch.
src/Cortex/Tags/Set.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
         if ($this->hasMatches($source)) {
61 61
             $parsed = $this->secureSource($source, "set");
62
-          //  $parsed = explode('=', $parsed['response']);
62
+            //  $parsed = explode('=', $parsed['response']);
63 63
 
64 64
             $matches = $this->getMatches($source);
65 65
 
Please login to merge, or discard this patch.
src/Cortex/ResponseQueue/ResponseQueue.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     public function attach(Node $node): void
82 82
     {
83 83
         $type = $this->determineResponseType($node->source());
84
-        $queueItem =  new ResponseQueueItem($node->command(), $node->value(),   $type, 0, $this->options);
84
+        $queueItem = new ResponseQueueItem($node->command(), $node->value(), $type, 0, $this->options);
85 85
         $this->responses->put($node->value(), $queueItem);
86 86
     }
87 87
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     private function sortResponses(Collection $responses): Collection
96 96
     {
97 97
         return $responses->sort(
98
-            function ($current, $previous) {
98
+            function($current, $previous) {
99 99
                 return ($current->order < $previous->order) ? -1 : 1;
100 100
             }
101 101
         )->reverse();
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
         $continues = Collection::make($responses->all());
148 148
         $continues->each(
149
-            function (ResponseQueueItem $data, $response) use (&$lastData, &$lastResponse, &$continues) {
149
+            function(ResponseQueueItem $data, $response) use (&$lastData, &$lastResponse, &$continues) {
150 150
 
151 151
                 if ($data->type === 'continue') {
152 152
                     $continues->remove($lastResponse);
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     private function determineResponseOrder(Collection $responses): Collection
200 200
     {
201 201
         return $responses->each(
202
-            function (ResponseQueueItem $data, $response) use ($responses) {
202
+            function(ResponseQueueItem $data, $response) use ($responses) {
203 203
                 if (isset($data->type)) {
204 204
                     switch ($data->type) {
205 205
                         case 'condition':
Please login to merge, or discard this patch.
src/Cortex/ResponseQueue/ResponseQueueItem.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
      */
143 143
     public function parse(): string
144 144
     {
145
-       // $this->reset();
145
+        // $this->reset();
146 146
 
147 147
         $this->changesTopic = false;
148 148
 
Please login to merge, or discard this patch.
src/Cortex/Output.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
     protected function searchTriggers2(string $trigger): void
168 168
     {
169 169
         synapse()->triggers->each(
170
-            function ($class) use ($trigger) {
170
+            function($class) use ($trigger) {
171 171
                 $triggerClass = "\\Axiom\\Rivescript\\Cortex\\Triggers\\$class";
172 172
                 $triggerInstance = new $triggerClass(synapse()->input);
173 173
 
Please login to merge, or discard this patch.