@@ -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 | /** |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $actions[] = new UriTemplateActionBuilder($action->label, $action->value); |
| 44 | 44 | break; |
| 45 | 45 | default: |
| 46 | - $actions[] = new MessageTemplateActionBuilder($action->label, $action->value);; |
|
| 46 | + $actions[] = new MessageTemplateActionBuilder($action->label, $action->value); ; |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
@@ -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 | |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | public function handle($payload) |
| 130 | 130 | { |
| 131 | 131 | $data = json_decode($payload, true) ?: []; |
| 132 | - $events = (array)@$data['events']; |
|
| 132 | + $events = (array) @$data['events']; |
|
| 133 | 133 | $results = []; |
| 134 | 134 | |
| 135 | 135 | try { |