@@ -101,7 +101,7 @@ |
||
101 | 101 | return trim( |
102 | 102 | (string)\preg_replace_callback( |
103 | 103 | '![cas]!', |
104 | - static function (array $matches) use ($countryCode, $areaCode, $subscriberNumber) { |
|
104 | + static function(array $matches) use ($countryCode, $areaCode, $subscriberNumber) { |
|
105 | 105 | switch ($matches[0]) { |
106 | 106 | case 'c': |
107 | 107 | return $countryCode; |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | private function __construct(array $strings) |
24 | 24 | { |
25 | 25 | $this->ids = \array_map( |
26 | - static function (string $string) { |
|
26 | + static function(string $string) { |
|
27 | 27 | return CommunibaseId::fromString($string); |
28 | 28 | }, |
29 | 29 | \array_unique(\array_filter($strings)) |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $collection = new self([]); |
47 | 47 | $collection->ids = \array_reduce( |
48 | 48 | $strings, |
49 | - static function (array $communibaseIds, $string) { |
|
49 | + static function(array $communibaseIds, $string) { |
|
50 | 50 | try { |
51 | 51 | $communibaseIds[] = CommunibaseId::fromString((string)$string); |
52 | 52 | } catch (InvalidIdException $e) { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | { |
100 | 100 | return array_reduce( |
101 | 101 | $this->ids, |
102 | - static function (array $carry, CommunibaseId $id) { |
|
102 | + static function(array $carry, CommunibaseId $id) { |
|
103 | 103 | $carry[] = ['$ObjectId' => $id->toString()]; |
104 | 104 | return $carry; |
105 | 105 | }, |