Passed
Push — master ( 56d111...2ac66a )
by Johnny
01:53
created
src/Cortex/Tags/Tag.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $this->sourceType = $sourceType;
72 72
 
73 73
         if (!isset($this->allowedSources)) {
74
-            throw new LogicException(get_class($this) . " must have an \"allowedSources\" property declared.");
74
+            throw new LogicException(get_class($this)." must have an \"allowedSources\" property declared.");
75 75
         }
76 76
     }
77 77
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                 break;
110 110
             } elseif ($content[$i] === '>') {
111 111
                 $reminder = substr($content, $i + 1);
112
-                return ['response' => "<" . $tag . ">", 'reminder' => $reminder];
112
+                return ['response' => "<".$tag.">", 'reminder' => $reminder];
113 113
             }
114 114
 
115 115
             $tag .= $content[$i];
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         $result = $this->secureSource($reminder, $tagName, ">");
119 119
         $reminder = $result['reminder'];
120 120
 
121
-        $response = (isset($tags[$tag]) === true) ? $result['response'] : "<" . $tag . " " . $result['response'] . ">";
121
+        $response = (isset($tags[$tag]) === true) ? $result['response'] : "<".$tag." ".$result['response'].">";
122 122
 
123 123
         return ['response' => $response, 'reminder' => $reminder];
124 124
     }
Please login to merge, or discard this patch.
src/Cortex/Tags/Set.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
             $matches = $this->getMatches($source);
65 65
 
66
-            foreach($matches as $match) {
66
+            foreach ($matches as $match) {
67 67
                 $key = $match[1];
68 68
                 $value = $match[2];
69 69
 
Please login to merge, or discard this patch.
src/Rivescript.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     {
86 86
         parent::__construct();
87 87
 
88
-        include __DIR__ . '/bootstrap.php';
88
+        include __DIR__.'/bootstrap.php';
89 89
 
90 90
         synapse()->brain->setMaster($this);
91 91
         synapse()->rivescript = $this;
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     private function registerTags(): void
102 102
     {
103 103
         synapse()->tags->each(
104
-            function ($tag) {
104
+            function($tag) {
105 105
                 $class = "\\Axiom\\Rivescript\\Cortex\\Tags\\$tag";
106 106
                 $tagInstance = new $class();
107 107
 
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      */
242 242
     public function warn(string $message, array $args = [], int $verbosity = Rivescript::VERBOSITY_NORMAL): void
243 243
     {
244
-        $message = "[WARNING]: " . $this->formatString($message, $args);
244
+        $message = "[WARNING]: ".$this->formatString($message, $args);
245 245
 
246 246
         if ($this->onSay) {
247 247
             call_user_func($this->onSay, $message, $verbosity);
Please login to merge, or discard this patch.