refactor: code quality changes

This commit is contained in:
HDVinnie
2020-06-02 18:37:19 -04:00
parent 53fd6412b1
commit f69ecec866
25 changed files with 98 additions and 81 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ class ChatController extends Controller
*/
private $auth;
public function __construct(ChatRepository $chat, AuthManager $auth)
public function __construct(ChatRepository $chat, \Illuminate\Contracts\Auth\Factory $auth)
{
$this->chat = $chat;
$this->auth = $auth;
@@ -347,7 +347,7 @@ class ChatController extends Controller
$message->delete();
}
if ($save && $echo !== false) {
if ($save && $echo) {
return new ChatMessageResource($message);
}