@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace AmaTeam\ElasticSearch\Test\Suite\Unit\Utility; |
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 AmaTeam\ElasticSearch\Utility; |
6 | 6 | |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | { |
9 | 9 | public static function snakeToCamel(string $input): string |
10 | 10 | { |
11 | - $callback = function ($match) { |
|
11 | + $callback = function($match) { |
|
12 | 12 | return mb_strtoupper(mb_substr($match[0], mb_strlen($match[0]) - 1)); |
13 | 13 | }; |
14 | 14 | return preg_replace_callback('~_+\w~u', $callback, trim($input, '_')); |
@@ -16,8 +16,8 @@ discard block |
||
16 | 16 | |
17 | 17 | public static function camelToSnake(string $input): string |
18 | 18 | { |
19 | - $callback = function ($match) { |
|
20 | - return '_' . $match[0]; |
|
19 | + $callback = function($match) { |
|
20 | + return '_'.$match[0]; |
|
21 | 21 | }; |
22 | 22 | return mb_strtolower(preg_replace_callback('~(?!^)\p{Lu}+~u', $callback, $input)); |
23 | 23 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace AmaTeam\ElasticSearch\Mapping\Type; |
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 AmaTeam\ElasticSearch\Mapping; |
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 AmaTeam\ElasticSearch\Mapping; |
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 AmaTeam\ElasticSearch\Mapping\Parameter; |
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 AmaTeam\ElasticSearch\Mapping; |
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 AmaTeam\ElasticSearch\API\Mapping; |
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 AmaTeam\ElasticSearch\API\Mapping; |
6 | 6 |