@@ -10,7 +10,7 @@ |
||
10 | 10 | * @author Stanislav Drozdov <[email protected]> |
11 | 11 | */ |
12 | 12 | |
13 | -declare(strict_types=1); |
|
13 | +declare(strict_types = 1); |
|
14 | 14 | |
15 | 15 | namespace Teebot\Api\Command; |
16 | 16 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Teebot\Api; |
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 Teebot\Api\Logger; |
6 | 6 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | public function __construct(ContainerInterface $config) |
30 | 30 | { |
31 | 31 | $this->config = $config; |
32 | - $filename = TEEBOT_ROOT . $this->config->get('logger.filename'); |
|
32 | + $filename = TEEBOT_ROOT.$this->config->get('logger.filename'); |
|
33 | 33 | $this->logger = new Monolog('Teebot'); |
34 | 34 | $this->logger->pushHandler( |
35 | 35 | new StreamHandler($filename, Monolog::WARNING) |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * @author Stanislav Drozdov <[email protected]> |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Teebot\Api; |
15 | 15 |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * @author Stanislav Drozdov <[email protected]> |
9 | 9 | */ |
10 | 10 | |
11 | -declare(strict_types=1); |
|
11 | +declare(strict_types = 1); |
|
12 | 12 | |
13 | 13 | namespace Teebot\Api\Traits; |
14 | 14 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | protected function getSetGetMethodName(string $prefix, string $name): ?string |
28 | 28 | { |
29 | - $setter = $prefix . str_replace("_", "", ucwords($name, "_")); |
|
29 | + $setter = $prefix.str_replace("_", "", ucwords($name, "_")); |
|
30 | 30 | |
31 | 31 | if (method_exists($this, $setter)) { |
32 | 32 | return $setter; |
@@ -8,7 +8,7 @@ |
||
8 | 8 | * @author Stanislav Drozdov <[email protected]> |
9 | 9 | */ |
10 | 10 | |
11 | -declare(strict_types=1); |
|
11 | +declare(strict_types = 1); |
|
12 | 12 | |
13 | 13 | namespace Teebot\Api\Traits; |
14 | 14 |
@@ -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 Teebot\Configuration; |
6 | 6 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $replace = []; |
69 | 69 | |
70 | 70 | foreach ($tokens as $token) { |
71 | - $envKey = ContainerInterface::ENV_PREFIX . strtoupper(substr($token, 1, strlen($token) - 2)); |
|
71 | + $envKey = ContainerInterface::ENV_PREFIX.strtoupper(substr($token, 1, strlen($token) - 2)); |
|
72 | 72 | $envValue = getenv($envKey); |
73 | 73 | |
74 | 74 | if ($envValue) { |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Teebot\Configuration; |
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 Teebot\Configuration; |
6 | 6 |