Completed
Push — develop ( 6d6fd1...6374f4 )
by Neomerx
23:45
created
src/Contracts/Messages/ResourceBundleInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\l10n\Contracts\Messages;
4 4
 
Please login to merge, or discard this patch.
src/Contracts/Messages/BundleStorageInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\l10n\Contracts\Messages;
4 4
 
Please login to merge, or discard this patch.
src/Contracts/Messages/BundleEncoderInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\l10n\Contracts\Messages;
4 4
 
Please login to merge, or discard this patch.
src/Contracts/Format/TranslatorInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\l10n\Contracts\Format;
4 4
 
Please login to merge, or discard this patch.
src/Messages/BundleStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\l10n\Messages;
4 4
 
Please login to merge, or discard this patch.
src/Messages/BundleEncoder.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\l10n\Messages;
4 4
 
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
             foreach ($combinedNamespaces as $namespace) {
62 62
                 $bundle = $this->getBundle($locale, $namespace);
63 63
                 $bundle = $bundle !== null ? $bundle : $this->getBundle($defaultLocale, $namespace);
64
-                $data[$locale][$namespace] = $defaultLocale === $locale ? $this->encodeBundle($bundle) :
65
-                    $this->encodeMergedBundles($bundle, $this->getBundle($defaultLocale, $namespace));
64
+                $data[$locale][$namespace] = $defaultLocale === $locale ? $this->encodeBundle($bundle) : $this->encodeMergedBundles($bundle, $this->getBundle($defaultLocale, $namespace));
66 65
             }
67 66
         }
68 67
 
Please login to merge, or discard this patch.
src/Messages/FileBundleEncoder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\l10n\Messages;
4 4
 
@@ -101,10 +101,10 @@  discard block
 block discarded – undo
101 101
 
102 102
         foreach (scandir($localesDir) as $fileOrDir) {
103 103
             if ($fileOrDir !== '.' && $fileOrDir !== '..' &&
104
-                is_dir($localeDirFullPath = $localesDir . DIRECTORY_SEPARATOR . $fileOrDir . DIRECTORY_SEPARATOR)
104
+                is_dir($localeDirFullPath = $localesDir.DIRECTORY_SEPARATOR.$fileOrDir.DIRECTORY_SEPARATOR)
105 105
             ) {
106 106
                 $localeDir = $fileOrDir;
107
-                foreach (glob($localeDirFullPath . $this->getGlobMessagePatterns()) as $messageFile) {
107
+                foreach (glob($localeDirFullPath.$this->getGlobMessagePatterns()) as $messageFile) {
108 108
                     $namespace = pathinfo($messageFile, PATHINFO_FILENAME);
109 109
                     $bundle    = $this->loadBundleFromFile($messageFile, $localeDir, $namespace);
110 110
                     $this->addBundle($bundle);
Please login to merge, or discard this patch.
src/Messages/ResourceBundle.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\l10n\Messages;
4 4
 
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
         // check all keys and values are non-empty strings
129 129
         $this->properties = [];
130 130
         foreach ($properties as $key => $value) {
131
-            assert(is_scalar($key) === true && strlen((string)$key) > 0);
131
+            assert(is_scalar($key) === true && strlen((string) $key) > 0);
132 132
             assert(is_string($value) === true && strlen($value) > 0);
133
-            $this->properties[(string)$key] = (string)$value;
133
+            $this->properties[(string) $key] = (string) $value;
134 134
         }
135 135
 
136 136
         return $this;
Please login to merge, or discard this patch.
src/Format/Translator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare (strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Limoncello\l10n\Format;
4 4
 
Please login to merge, or discard this patch.