@@ -98,7 +98,7 @@ |
||
98 | 98 | return trim( |
99 | 99 | (string)preg_replace_callback( |
100 | 100 | '![cas]!', |
101 | - static function (array $matches) use ($countryCode, $areaCode, $subscriberNumber) { |
|
101 | + static function(array $matches) use ($countryCode, $areaCode, $subscriberNumber) { |
|
102 | 102 | switch ($matches[0]) { |
103 | 103 | case 'c': |
104 | 104 | 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)) |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $collection = new self([]); |
48 | 48 | $collection->ids = array_reduce( |
49 | 49 | $strings, |
50 | - static function (array $communibaseIds, $string) { |
|
50 | + static function(array $communibaseIds, $string) { |
|
51 | 51 | try { |
52 | 52 | $communibaseIds[] = CommunibaseId::fromString((string)$string); |
53 | 53 | } catch (InvalidIdException $e) { |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | { |
101 | 101 | return array_reduce( |
102 | 102 | $this->ids, |
103 | - static function (array $carry, CommunibaseId $id) { |
|
103 | + static function(array $carry, CommunibaseId $id) { |
|
104 | 104 | $carry[] = ['$ObjectId' => $id->toString()]; |
105 | 105 | return $carry; |
106 | 106 | }, |