Passed
Push — main ( a078d4...e0e651 )
by Usama
04:04
created
src/Http/Livewire/Comment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -132,12 +132,12 @@  discard block
 block discarded – undo
132 132
     public function selectUser($userName): void
133 133
     {
134 134
         if ($this->replyState['body']) {
135
-            $this->replyState['body'] = preg_replace('/@(\w+)$/', '@' . str_replace(' ', '_', Str::lower($userName)) . ' ',
135
+            $this->replyState['body'] = preg_replace('/@(\w+)$/', '@'.str_replace(' ', '_', Str::lower($userName)).' ',
136 136
                 $this->replyState['body']);
137 137
 //            $this->replyState['body'] =$userName;
138 138
             $this->users = [];
139 139
         } elseif ($this->editState['body']) {
140
-            $this->editState['body'] = preg_replace('/@(\w+)$/', '@' . str_replace(' ', '_', Str::lower($userName)) . ' ',
140
+            $this->editState['body'] = preg_replace('/@(\w+)$/', '@'.str_replace(' ', '_', Str::lower($userName)).' ',
141 141
                 $this->editState['body']);
142 142
             $this->users = [];
143 143
         }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     public function getUsers($searchTerm): void
153 153
     {
154 154
         if (!empty($searchTerm)) {
155
-            $this->users = User::where('name', 'like', '%' . $searchTerm . '%')->take(5)->get();
155
+            $this->users = User::where('name', 'like', '%'.$searchTerm.'%')->take(5)->get();
156 156
         } else {
157 157
             $this->users = [];
158 158
         }
Please login to merge, or discard this patch.