@@ -44,6 +44,8 @@ |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * {@inheritDoc} |
47 | + * @param string $uri |
|
48 | + * @param string $encoding |
|
47 | 49 | */ |
48 | 50 | public function open($uri, $encoding = null, $options = 0) |
49 | 51 | { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | { |
66 | 66 | $keys = $this->container->idsByPrefix('repository'); |
67 | 67 | |
68 | - $mapper = function ($key) { |
|
68 | + $mapper = function($key) { |
|
69 | 69 | return explode('.', $key)[1]; |
70 | 70 | }; |
71 | 71 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function getWritableRepositoryNames() |
81 | 81 | { |
82 | - $filter = function ($name) { |
|
82 | + $filter = function($name) { |
|
83 | 83 | return $this->getRepositoryByName($name) instanceof WritableRepository; |
84 | 84 | }; |
85 | 85 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | { |
35 | 35 | $function = __FUNCTION__; |
36 | 36 | |
37 | - $characters->traverseWith(function (CodepointAssigned $c) use ($function) { |
|
37 | + $characters->traverseWith(function(CodepointAssigned $c) use ($function) { |
|
38 | 38 | $message = $this->composeMessage($function, [(string)$c->getCodepoint()]); |
39 | 39 | $this->log($message); |
40 | 40 | }); |
@@ -146,7 +146,7 @@ |
||
146 | 146 | foreach ($characters as $character) { |
147 | 147 | $codepoint = $character->getCodepoint(); |
148 | 148 | $key = $codepoint->getValue(); |
149 | - $flattened[$key] = $this->serializer->serialize($character);; |
|
149 | + $flattened[$key] = $this->serializer->serialize($character); ; |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | return $flattened; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | $directory = new \FilesystemIterator($pathName, \FilesystemIterator::CURRENT_AS_FILEINFO); |
20 | 20 | |
21 | - return new self($directory, function (\SplFileInfo $file) { |
|
21 | + return new self($directory, function(\SplFileInfo $file) { |
|
22 | 22 | return $file->isFile(); |
23 | 23 | }); |
24 | 24 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | public function addMany(Collection $characters) |
40 | 40 | { |
41 | - $characters->traverseWith(function (CodepointAssigned $c) { |
|
41 | + $characters->traverseWith(function(CodepointAssigned $c) { |
|
42 | 42 | $codepoint = $c->getCodepoint(); |
43 | 43 | $index = $this->indexFromCodepoint($codepoint); |
44 | 44 | $this->characters[$index] = $c; |
@@ -102,7 +102,7 @@ |
||
102 | 102 | */ |
103 | 103 | protected function parseCodepointList($list) |
104 | 104 | { |
105 | - $mapper = function ($codepointValue) { |
|
105 | + $mapper = function($codepointValue) { |
|
106 | 106 | return Codepoint::fromHex($codepointValue); |
107 | 107 | }; |
108 | 108 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | $aggregator = new Aggregator(); |
28 | 28 | |
29 | - $this->traverseWith(function (Codepoint $codepoint) use ($aggregator) { |
|
29 | + $this->traverseWith(function(Codepoint $codepoint) use ($aggregator) { |
|
30 | 30 | $aggregator->addCodepoint($codepoint); |
31 | 31 | }); |
32 | 32 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | { |
41 | 41 | $builder = new RegexBuilder(); |
42 | 42 | |
43 | - $this->traverseWith(function (Codepoint $codepoint) use ($builder) { |
|
43 | + $this->traverseWith(function(Codepoint $codepoint) use ($builder) { |
|
44 | 44 | $builder->addCodepoint($codepoint); |
45 | 45 | }); |
46 | 46 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | $regexBuilder = new RegexBuilder(); |
41 | 41 | |
42 | - $this->traverseWith(function (Range $range) use ($regexBuilder) { |
|
42 | + $this->traverseWith(function(Range $range) use ($regexBuilder) { |
|
43 | 43 | $regexBuilder->addRange($range); |
44 | 44 | }); |
45 | 45 |