forked from eatvio/eatvio-infra
make code-style phpinsight
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Events\ChatMessageUpdated;
|
||||
use App\Models\Chat;
|
||||
use App\Models\User;
|
||||
use Illuminate\View\View;
|
||||
@@ -94,7 +93,7 @@ class ChatController extends Controller
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
// * @return \Illuminate\Http\Response
|
||||
* // * @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create(): void
|
||||
{
|
||||
@@ -129,7 +128,7 @@ class ChatController extends Controller
|
||||
);
|
||||
}
|
||||
|
||||
private function makeChanName(int $from = null, int $to = null): string
|
||||
private function makeChanName(?int $from = null, ?int $to = null): string
|
||||
{
|
||||
return (int) $from < (int) $to
|
||||
? $from.'_'.$to
|
||||
|
||||
Reference in New Issue
Block a user