@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Conversation; |
6 | 6 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function register(): void |
39 | 39 | { |
40 | - $this->container->share(IntentManager::class, function () { |
|
40 | + $this->container->share(IntentManager::class, function() { |
|
41 | 41 | $manager = new IntentManager(); |
42 | 42 | |
43 | 43 | foreach ($this->intents() as $intent) { |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Conversation; |
6 | 6 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @return Intent|Conversable|null |
73 | 73 | */ |
74 | - public function getIntent(): ?Intent |
|
74 | + public function getIntent(): ? Intent |
|
75 | 75 | { |
76 | 76 | return $this->intent; |
77 | 77 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * |
92 | 92 | * @return Interaction|Conversable|null |
93 | 93 | */ |
94 | - public function getInteraction(): ?Interaction |
|
94 | + public function getInteraction(): ? Interaction |
|
95 | 95 | { |
96 | 96 | return $this->interaction; |
97 | 97 | } |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * |
102 | 102 | * @param Interaction|null $interaction |
103 | 103 | */ |
104 | - public function setInteraction(?Interaction $interaction): void |
|
104 | + public function setInteraction(? Interaction $interaction) : void |
|
105 | 105 | { |
106 | 106 | $this->interaction = $interaction; |
107 | 107 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Conversation; |
6 | 6 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | */ |
24 | 24 | public function register(): void |
25 | 25 | { |
26 | - $this->container->share(SessionManager::class, function () { |
|
26 | + $this->container->share(SessionManager::class, function() { |
|
27 | 27 | return new SessionManager( |
28 | 28 | $this->container, |
29 | 29 | $this->container->get(Cache::class) |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Conversation\Traits; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Conversation; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Http; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Toolbelt\Commands; |
6 | 6 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $name = $this->getArgument('name'); |
31 | 31 | $drivers = collect($items); |
32 | 32 | |
33 | - $driver = $drivers->first(function ($item) use ($name) { |
|
33 | + $driver = $drivers->first(function($item) use ($name) { |
|
34 | 34 | return $item['name'] === $name; |
35 | 35 | }); |
36 | 36 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $composer = json_decode($this->filesystem()->read('composer.json'), true); |
53 | 53 | $installed = collect($composer['require']) |
54 | 54 | ->merge($composer['require-dev']) |
55 | - ->search(function ($_, $item) use ($package) { |
|
55 | + ->search(function($_, $item) use ($package) { |
|
56 | 56 | return hash_equals($item, $package); |
57 | 57 | }); |
58 | 58 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | $process = new Process('composer require '.$package, path()); |
69 | 69 | $output = ''; |
70 | - $result = $process->run(function ($_, $line) use (&$output) { |
|
70 | + $result = $process->run(function($_, $line) use (&$output) { |
|
71 | 71 | $output .= $line; |
72 | 72 | }); |
73 | 73 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Application; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Filesystem; |
6 | 6 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function register(): void |
39 | 39 | { |
40 | - $this->container->share(MountManager::class, function () { |
|
40 | + $this->container->share(MountManager::class, function() { |
|
41 | 41 | $filesystems = [ |
42 | 42 | 'local' => new Filesystem(new Local($this->container->get('base_path'))), |
43 | 43 | ]; |