@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | public function getCodepointsByBlock(Block $block) |
| 22 | 22 | { |
| 23 | - $comparator = function (CodepointAssigned $item) use ($block) { |
|
| 23 | + $comparator = function(CodepointAssigned $item) use ($block) { |
|
| 24 | 24 | return $item->getGeneralProperties() |
| 25 | 25 | ->getBlock() |
| 26 | 26 | ->equals($block); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public function getCodepointsByCategory(GeneralCategory $category) |
| 39 | 39 | { |
| 40 | - $comparator = function (CodepointAssigned $item) use ($category) { |
|
| 40 | + $comparator = function(CodepointAssigned $item) use ($category) { |
|
| 41 | 41 | return $item->getGeneralProperties() |
| 42 | 42 | ->getGeneralCategory() |
| 43 | 43 | ->equals($category); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public function getCodepointsByScript(Script $script) |
| 56 | 56 | { |
| 57 | - $comparator = function (CodepointAssigned $item) use ($script) { |
|
| 57 | + $comparator = function(CodepointAssigned $item) use ($script) { |
|
| 58 | 58 | return $item->getGeneralProperties() |
| 59 | 59 | ->getScript() |
| 60 | 60 | ->equals($script); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | { |
| 43 | 43 | $aggregator = new Aggregator(); |
| 44 | 44 | |
| 45 | - $this->traverseWith(function (Codepoint $codepoint) use ($aggregator) { |
|
| 45 | + $this->traverseWith(function(Codepoint $codepoint) use ($aggregator) { |
|
| 46 | 46 | $aggregator->addCodepoint($codepoint); |
| 47 | 47 | }); |
| 48 | 48 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | { |
| 57 | 57 | $builder = new RegexBuilder(); |
| 58 | 58 | |
| 59 | - $this->traverseWith(function (Codepoint $codepoint) use ($builder) { |
|
| 59 | + $this->traverseWith(function(Codepoint $codepoint) use ($builder) { |
|
| 60 | 60 | $builder->addCodepoint($codepoint); |
| 61 | 61 | }); |
| 62 | 62 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | { |
| 109 | 109 | $characters = TransformationFormat\StringUtility::split($string, $encoding); |
| 110 | 110 | |
| 111 | - $mapper = function ($character) use ($encoding) { |
|
| 111 | + $mapper = function($character) use ($encoding) { |
|
| 112 | 112 | return Codepoint::fromEncodedCharacter($character, $encoding); |
| 113 | 113 | }; |
| 114 | 114 | |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | { |
| 156 | 156 | $characters = ''; |
| 157 | 157 | |
| 158 | - $this->traverseWith(function (Codepoint $codepoint) use ($encoding, &$characters) { |
|
| 158 | + $this->traverseWith(function(Codepoint $codepoint) use ($encoding, &$characters) { |
|
| 159 | 159 | $characters .= $codepoint->toEncodedCharacter($encoding); |
| 160 | 160 | }); |
| 161 | 161 | |