@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @param mixed|null $default |
26 | 26 | * |
27 | - * @return \FondBot\Conversation\Context|mixed |
|
27 | + * @return FondBot\Conversation\Context |
|
28 | 28 | */ |
29 | 29 | function context(string $key = null, $default = null) |
30 | 30 | { |
@@ -29,7 +29,7 @@ |
||
29 | 29 | ]; |
30 | 30 | |
31 | 31 | /** |
32 | - * @param array $data |
|
32 | + * @param Activator[] $data |
|
33 | 33 | * |
34 | 34 | * @return Activator[] |
35 | 35 | */ |
@@ -54,7 +54,7 @@ |
||
54 | 54 | $value = $parameters; |
55 | 55 | } else { |
56 | 56 | $value = $parameters->first(); |
57 | - $parameters = $parameters->slice(1)->values()->transform(function ($item) { |
|
57 | + $parameters = $parameters->slice(1)->values()->transform(function($item) { |
|
58 | 58 | if ($item === 'true') { |
59 | 59 | return true; |
60 | 60 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function handle(Manager $manager): void |
16 | 16 | { |
17 | 17 | $rows = collect($manager->getIntents()) |
18 | - ->transform(function ($item) { |
|
18 | + ->transform(function($item) { |
|
19 | 19 | return [$item]; |
20 | 20 | }) |
21 | 21 | ->toArray(); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function handle(ChannelManager $manager): void |
16 | 16 | { |
17 | 17 | $rows = collect($manager->all()) |
18 | - ->transform(function ($item, $name) use ($manager) { |
|
18 | + ->transform(function($item, $name) use ($manager) { |
|
19 | 19 | return [$name, $manager->driver($item['driver'])->getName(), $manager->create($name)->getWebhookUrl()]; |
20 | 20 | }) |
21 | 21 | ->toArray(); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $availableDrivers = $api->getDrivers(); |
22 | 22 | |
23 | 23 | $rows = collect($availableDrivers) |
24 | - ->transform(function ($item) use ($installedDrivers) { |
|
24 | + ->transform(function($item) use ($installedDrivers) { |
|
25 | 25 | return [ |
26 | 26 | $item['name'], |
27 | 27 | $item['package'], |
@@ -37,7 +37,7 @@ |
||
37 | 37 | // Install driver |
38 | 38 | $this->info('Installing driver...'); |
39 | 39 | |
40 | - $result = $composer->install($driver['package'], function ($_, $line) use (&$output) { |
|
40 | + $result = $composer->install($driver['package'], function($_, $line) use (&$output) { |
|
41 | 41 | $output .= $line; |
42 | 42 | }); |
43 | 43 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public static function createFromTemplate($templates) |
22 | 22 | { |
23 | - $callback = function (Template $template) { |
|
23 | + $callback = function(Template $template) { |
|
24 | 24 | $to = static::class; |
25 | 25 | |
26 | 26 | return $to::create($template); |
@@ -54,7 +54,7 @@ |
||
54 | 54 | */ |
55 | 55 | public function getByDriver(string $driver): Collection |
56 | 56 | { |
57 | - return $this->channels->filter(function (array $channel) use ($driver) { |
|
57 | + return $this->channels->filter(function(array $channel) use ($driver) { |
|
58 | 58 | return $channel['driver'] === $driver; |
59 | 59 | }); |
60 | 60 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | public function findDriver(string $name): ?array |
41 | 41 | { |
42 | - return $this->getDrivers()->first(function ($item) use ($name) { |
|
42 | + return $this->getDrivers()->first(function($item) use ($name) { |
|
43 | 43 | return $item['name'] === $name; |
44 | 44 | }); |
45 | 45 | } |