@@ -48,7 +48,7 @@ |
||
| 48 | 48 | public function handle($payload) |
| 49 | 49 | { |
| 50 | 50 | $data = json_decode($payload, true) ?: []; |
| 51 | - $events = (array)@$data['events']; |
|
| 51 | + $events = (array) @$data['events']; |
|
| 52 | 52 | $results = []; |
| 53 | 53 | |
| 54 | 54 | foreach ($events as $event) { |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | array_unshift($this->middlewares, new LockingMiddleware()); |
| 89 | 89 | |
| 90 | 90 | // must be end of all middlewares |
| 91 | - array_push( $this->middlewares, |
|
| 91 | + array_push($this->middlewares, |
|
| 92 | 92 | new CommandHandlerMiddleware( |
| 93 | 93 | new ClassNameExtractor(), |
| 94 | 94 | new InMemoryLocator($registry->getCommandList()), |
@@ -52,10 +52,10 @@ |
||
| 52 | 52 | $actions[] = new PostbackTemplateActionBuilder($action->label, $action->value); |
| 53 | 53 | break; |
| 54 | 54 | case Action::TYPE_URI: |
| 55 | - $actions[] = new UriTemplateActionBuilder($action->label, $action->value); |
|
| 55 | + $actions[] = new UriTemplateActionBuilder($action->label, $action->value); |
|
| 56 | 56 | break; |
| 57 | 57 | default: |
| 58 | - $actions[] = new MessageTemplateActionBuilder($action->label, $action->value);; |
|
| 58 | + $actions[] = new MessageTemplateActionBuilder($action->label, $action->value); ; |
|
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | |
@@ -60,10 +60,10 @@ |
||
| 60 | 60 | $actions[] = new PostbackTemplateActionBuilder($action->label, $action->value); |
| 61 | 61 | break; |
| 62 | 62 | case Action::TYPE_URI: |
| 63 | - $actions[] = new UriTemplateActionBuilder($action->label, $action->value); |
|
| 63 | + $actions[] = new UriTemplateActionBuilder($action->label, $action->value); |
|
| 64 | 64 | break; |
| 65 | 65 | default: |
| 66 | - $actions[] = new MessageTemplateActionBuilder($action->label, $action->value);; |
|
| 66 | + $actions[] = new MessageTemplateActionBuilder($action->label, $action->value); ; |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
@@ -60,10 +60,10 @@ |
||
| 60 | 60 | $actions[] = new PostbackTemplateActionBuilder($action->label, $action->value); |
| 61 | 61 | break; |
| 62 | 62 | case Action::TYPE_URI: |
| 63 | - $actions[] = new UriTemplateActionBuilder($action->label, $action->value); |
|
| 63 | + $actions[] = new UriTemplateActionBuilder($action->label, $action->value); |
|
| 64 | 64 | break; |
| 65 | 65 | default: |
| 66 | - $actions[] = new MessageTemplateActionBuilder($action->label, $action->value);; |
|
| 66 | + $actions[] = new MessageTemplateActionBuilder($action->label, $action->value); ; |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | { |
| 94 | 94 | $models = array_filter( |
| 95 | 95 | $this->findAllModels(), |
| 96 | - function (CommandInterface $command) use ($input) { |
|
| 96 | + function(CommandInterface $command) use ($input) { |
|
| 97 | 97 | return preg_match(preg_quote($command->getCmd()), $input->text); |
| 98 | 98 | } |
| 99 | 99 | ); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public function __toString() |
| 39 | 39 | { |
| 40 | - return (string)$this->data['text']; |
|
| 40 | + return (string) $this->data['text']; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |