@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function getCharacters() |
40 | 40 | { |
41 | - return $this->filterWith(function (CodepointAssigned $assigned) { |
|
41 | + return $this->filterWith(function(CodepointAssigned $assigned) { |
|
42 | 42 | return $assigned instanceof Character; |
43 | 43 | }); |
44 | 44 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function getNonCharacters() |
50 | 50 | { |
51 | - return $this->filterWith(function (CodepointAssigned $assigned) { |
|
51 | + return $this->filterWith(function(CodepointAssigned $assigned) { |
|
52 | 52 | return $assigned instanceof NonCharacter; |
53 | 53 | }); |
54 | 54 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function getSurrogates() |
60 | 60 | { |
61 | - return $this->filterWith(function (CodepointAssigned $assigned) { |
|
61 | + return $this->filterWith(function(CodepointAssigned $assigned) { |
|
62 | 62 | return $assigned instanceof Surrogate; |
63 | 63 | }); |
64 | 64 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @return mixed |
|
43 | + * @return string |
|
44 | 44 | */ |
45 | 45 | private function readFile() |
46 | 46 | { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
84 | - * @param array $items |
|
84 | + * @param string[] $items |
|
85 | 85 | * @return string |
86 | 86 | */ |
87 | 87 | private function generateFileContentForArray(array $items) |
@@ -110,7 +110,6 @@ discard block |
||
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
113 | - * @param array $items |
|
114 | 113 | * @return boolean |
115 | 114 | */ |
116 | 115 | private function isZippedFile() |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use PhpParser\Node\Scalar\String_; |
9 | 9 | use PhpParser\Node\Stmt\Return_; |
10 | 10 | use PhpParser\PrettyPrinter\Standard; |
11 | - |
|
12 | 11 | use UCD\Exception\UnexpectedValueException; |
13 | 12 | use UCD\Infrastructure\Repository\CharacterRepository\FileRepository\File; |
14 | 13 |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | { |
47 | 47 | $pathname = $this->fileInfo->getPathname(); |
48 | 48 | |
49 | - return require $this->isZippedFile() ? 'compress.zlib://' . $pathname : $pathname; |
|
49 | + return require $this->isZippedFile() ? 'compress.zlib://'.$pathname : $pathname; |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $content = $this->generateFileContentForArray($items); |
73 | 73 | |
74 | 74 | $fileInfo = $this->isZippedFile() |
75 | - ? new \SplFileInfo('compress.zlib://' . $this->fileInfo->getPathname()) |
|
75 | + ? new \SplFileInfo('compress.zlib://'.$this->fileInfo->getPathname()) |
|
76 | 76 | : $this->fileInfo; |
77 | 77 | $file = $fileInfo->openFile('w'); |
78 | 78 | $file->fwrite($content); |