Skip to content

Commit 2b225c0

Browse files
committed
Fix phpcs warnings
1 parent 99fce14 commit 2b225c0

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

examples/KitchenSink/src/LINEBot/KitchenSink/Route.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,17 @@ public function register(\Slim\App $app)
9393
} elseif ($event instanceof VideoMessage) {
9494
$handler = new VideoMessageHandler($bot, $logger, $req, $event);
9595
} elseif ($event instanceof UnknownMessage) {
96-
$logger->info(sprintf('Unknown message type has come [message type: %s]', $event->getMessageType()));
96+
$logger->info(sprintf(
97+
'Unknown message type has come [message type: %s]',
98+
$event->getMessageType()
99+
));
97100
} else {
98101
// Unexpected behavior (just in case)
99102
// something wrong if reach here
100-
$logger->info(sprintf('Unexpected message type has come, something wrong [class name: %s]', get_class($event)));
103+
$logger->info(sprintf(
104+
'Unexpected message type has come, something wrong [class name: %s]',
105+
get_class($event)
106+
));
101107
continue;
102108
}
103109
} elseif ($event instanceof UnfollowEvent) {
@@ -117,7 +123,10 @@ public function register(\Slim\App $app)
117123
} else {
118124
// Unexpected behavior (just in case)
119125
// something wrong if reach here
120-
$logger->info(sprintf('Unexpected event type has come, something wrong [class name: %s]', get_class($event)));
126+
$logger->info(sprintf(
127+
'Unexpected event type has come, something wrong [class name: %s]',
128+
get_class($event)
129+
));
121130
continue;
122131
}
123132

src/LINEBot/Event/UnknownEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ public function getEventBody()
4848
{
4949
return $this->event;
5050
}
51-
}
51+
}

0 commit comments

Comments
 (0)