Completed
Push — master ( 10274c...a4edad )
by Neomerx
03:11
created
src/Messages/BundleEncoder.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
             foreach ($combinedNamespaces as $namespace) {
57 57
                 $bundle = $this->getBundle($locale, $namespace);
58 58
                 $bundle = $bundle !== null ? $bundle : $this->getBundle($defaultLocale, $namespace);
59
-                $data[$locale][$namespace] = $defaultLocale === $locale ? $this->encodeBundle($bundle) :
60
-                    $this->encodeMergedBundles($bundle, $this->getBundle($defaultLocale, $namespace));
59
+                $data[$locale][$namespace] = $defaultLocale === $locale ? $this->encodeBundle($bundle) : $this->encodeMergedBundles($bundle, $this->getBundle($defaultLocale, $namespace));
61 60
             }
62 61
         }
63 62
 
Please login to merge, or discard this patch.
src/Messages/ResourceBundle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
     public function setProperties(array $properties): self
119 119
     {
120 120
         // check all keys and values are non-empty strings
121
-        assert(call_user_func(function () use ($properties) {
121
+        assert(call_user_func(function() use ($properties) {
122 122
             $result = true;
123 123
             foreach ($properties as $key => $value) {
124 124
                 $result = $result === true &&
Please login to merge, or discard this patch.
src/Messages/BundleStorage.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@
 block discarded – undo
249 249
     }
250 250
 
251 251
     /**
252
-     * @param mixed $value
252
+     * @param string $value
253 253
      *
254 254
      * @return bool
255 255
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     /**
72 72
      * @inheritdoc
73 73
      */
74
-    public function get(string $locale, string $namespace, string $key): ?array
74
+    public function get(string $locale, string $namespace, string $key): ? array
75 75
     {
76 76
         $locale = $this->lookupLocale($this->getLocales(), $locale, $this->getDefaultLocale());
77 77
 
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
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      *
49 49
      * @return array|null
50 50
      */
51
-    public function get(string $locale, string $namespace, string $key): ?array;
51
+    public function get(string $locale, string $namespace, string $key): ? array;
52 52
 
53 53
     /**
54 54
      * @param string $locale
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
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      *
54 54
      * @return FileBundleEncoder
55 55
      */
56
-    protected function loadDescriptions(?iterable $messageDescriptions): self
56
+    protected function loadDescriptions(?iterable $messageDescriptions) : self
57 57
     {
58 58
         if ($messageDescriptions !== null) {
59 59
             foreach ($messageDescriptions as list($locale, $namespace, $messageStorage)) {
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
 
89 89
         foreach (scandir($localesDir) as $fileOrDir) {
90 90
             if ($fileOrDir !== '.' && $fileOrDir !== '..' &&
91
-                is_dir($localeDirFullPath = $localesDir . DIRECTORY_SEPARATOR . $fileOrDir . DIRECTORY_SEPARATOR)
91
+                is_dir($localeDirFullPath = $localesDir.DIRECTORY_SEPARATOR.$fileOrDir.DIRECTORY_SEPARATOR)
92 92
             ) {
93 93
                 $localeDir = $fileOrDir;
94
-                foreach (glob($localeDirFullPath . $this->getGlobMessagePatterns()) as $messageFile) {
94
+                foreach (glob($localeDirFullPath.$this->getGlobMessagePatterns()) as $messageFile) {
95 95
                     $namespace = pathinfo($messageFile, PATHINFO_FILENAME);
96 96
                     $bundle    = $this->loadBundleFromFile($messageFile, $localeDir, $namespace);
97 97
                     $this->addBundle($bundle);
Please login to merge, or discard this patch.