Passed
Pull Request — master (#42)
by
unknown
12:42
created
src/MoParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             return;
62 62
         }
63 63
 
64
-        if (! is_readable($this->filename)) {
64
+        if (!is_readable($this->filename)) {
65 65
             $this->error = self::ERROR_DOES_NOT_EXIST;
66 66
 
67 67
             return;
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             $translations = $stream->readint($unpack, 16);
88 88
 
89 89
             /* get original and translations tables */
90
-            $totalTimesTwo = (int) ($total * 2);// Fix for issue #36 on ARM
90
+            $totalTimesTwo = (int) ($total * 2); // Fix for issue #36 on ARM
91 91
             $tableOriginals = $stream->readintarray($unpack, $originals, $totalTimesTwo);
92 92
             $tableTranslations = $stream->readintarray($unpack, $translations, $totalTimesTwo);
93 93
 
Please login to merge, or discard this patch.
src/Translator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     {
275 275
         // this should contains all strings separated by NULLs
276 276
         $key = implode(chr(0), [$msgid, $msgidPlural]);
277
-        if (! $this->cache->has($key)) {
277
+        if (!$this->cache->has($key)) {
278 278
             return $number !== 1 ? $msgidPlural : $msgid;
279 279
         }
280 280
 
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 
294 294
         // @codeCoverageIgnoreEnd
295 295
 
296
-        if (! isset($list[$select])) {
296
+        if (!isset($list[$select])) {
297 297
             return $list[0];
298 298
         }
299 299
 
Please login to merge, or discard this patch.
src/Cache/ApcuCache.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         string $prefix = 'mo_'
47 47
     ) {
48 48
         // @codeCoverageIgnoreStart
49
-        if (! (function_exists('apcu_enabled') && apcu_enabled())) {
49
+        if (!(function_exists('apcu_enabled') && apcu_enabled())) {
50 50
             throw new CacheException('ACPu extension must be installed and enabled');
51 51
         }
52 52
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             return $msgstr;
70 70
         }
71 71
 
72
-        if (! $this->reloadOnMiss) {
72
+        if (!$this->reloadOnMiss) {
73 73
             return $msgid;
74 74
         }
75 75
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
     public function setAll(array $translations): void
97 97
     {
98
-        $keys = array_map(function (string $msgid): string {
98
+        $keys = array_map(function(string $msgid): string {
99 99
             return $this->getKey($msgid);
100 100
         }, array_keys($translations));
101 101
         $translations = array_combine($keys, $translations);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         // Try to prevent cache slam if multiple processes are trying to load translations. There is still a race
115 115
         // between the exists check and creating the entry, but at least it's small
116 116
         $key = $this->getKey(self::LOADED_KEY);
117
-        $loaded = apcu_exists($key) || apcu_entry($key, static function (): int {
117
+        $loaded = apcu_exists($key) || apcu_entry($key, static function(): int {
118 118
             return 0;
119 119
         });
120 120
         if ($loaded) {
Please login to merge, or discard this patch.