From 0e05cee4843f5b2d0985d31e9dc3f7a7d79753d2 Mon Sep 17 00:00:00 2001 From: paragraf-lex Date: Wed, 9 Jan 2019 09:33:37 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Bot.php | 1 - src/Http/Controllers/ViberBotController.php | 8 +++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Bot.php b/src/Bot.php index f176354..edb4dae 100644 --- a/src/Bot.php +++ b/src/Bot.php @@ -36,7 +36,6 @@ public function on($event) $this->event = $event; $this->proceed = true; - } return $this; diff --git a/src/Http/Controllers/ViberBotController.php b/src/Http/Controllers/ViberBotController.php index ebfa5e5..3c15921 100644 --- a/src/Http/Controllers/ViberBotController.php +++ b/src/Http/Controllers/ViberBotController.php @@ -6,8 +6,6 @@ use Paragraf\ViberBot\Bot; use Illuminate\Http\Request; use Paragraf\ViberBot\Client; -use Paragraf\ViberBot\Event\ConversationStartedEvent; -use Paragraf\ViberBot\Messages\WelcomeMessage; use Paragraf\ViberBot\TextMessage; use Paragraf\ViberBot\Model\Button; use App\Http\Controllers\Controller; @@ -15,16 +13,16 @@ use Paragraf\ViberBot\Model\ViberUser; use Paragraf\ViberBot\Event\MessageEvent; use Paragraf\ViberBot\Messages\KeyboardMessage; +use Paragraf\ViberBot\Event\ConversationStartedEvent; class ViberBotController extends Controller { public function index(Request $request) { - (new Bot($request, new TextMessage())) ->on(new ConversationStartedEvent($request->timestamp, $request->message_token, - new ViberUser($request->user['id'], $request->user['name']), $request->type, $request->context, $request->subscribed )) - ->replay("Izlistavamo obaveze!") + new ViberUser($request->user['id'], $request->user['name']), $request->type, $request->context, $request->subscribed)) + ->replay('Izlistavamo obaveze!') ->send(); // (new Client())->broadcast('Zdravo tamo preko bare!', User::all(), 'name');