@@ -132,12 +132,12 @@ discard block |
||
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 |
||
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 | } |