Completed
Branch develop (f9afb3)
by Neomerx
09:00
created
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($properties)
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
             foreach ($properties as $key => $value) {
123 123
                 if (is_string($key) === false || empty($key) === true ||
124 124
                         is_string($value) === false || empty($value) === true
Please login to merge, or discard this patch.
src/Messages/FileBundleEncoder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,10 +50,10 @@
 block discarded – undo
50 50
 
51 51
         foreach (scandir($localesDir) as $fileOrDir) {
52 52
             if ($fileOrDir !== '.' && $fileOrDir !== '..' &&
53
-                is_dir($localeDirFullPath = $localesDir . DIRECTORY_SEPARATOR . $fileOrDir . DIRECTORY_SEPARATOR)
53
+                is_dir($localeDirFullPath = $localesDir.DIRECTORY_SEPARATOR.$fileOrDir.DIRECTORY_SEPARATOR)
54 54
             ) {
55 55
                 $localeDir = $fileOrDir;
56
-                foreach (glob($localeDirFullPath . $this->getGlobMessagePatterns()) as $messageFile) {
56
+                foreach (glob($localeDirFullPath.$this->getGlobMessagePatterns()) as $messageFile) {
57 57
                     $namespace = pathinfo($messageFile, PATHINFO_FILENAME);
58 58
                     $bundle = $this->loadBundleFromFile($messageFile, $localeDir, $namespace);
59 59
                     $this->addBundle($bundle);
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
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
     {
112 112
         // check storage has 3 levels locale -> namespace -> key & value pairs and
113 113
         // both keys and values are non-empty strings
114
-        assert(is_array($encodedStorage) === true && call_user_func(function () use ($encodedStorage) {
114
+        assert(is_array($encodedStorage) === true && call_user_func(function() use ($encodedStorage) {
115 115
             $isValid = true;
116 116
             foreach ($encodedStorage as $locale => $namespaceResources) {
117 117
                 $isValid = $isValid === true && is_string($locale) === true && empty($locale) === false &&
Please login to merge, or discard this patch.
src/Messages/BundleEncoder.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
             foreach ($combinedNamespaces as $namespace) {
58 58
                 $bundle = $this->getBundle($locale, $namespace);
59 59
                 $bundle = $bundle !== null ? $bundle : $this->getBundle($defaultLocale, $namespace);
60
-                $storage[$locale][$namespace] = $defaultLocale === $locale ? $this->encodeBundle($bundle) :
61
-                    $this->encodeMergedBundles($bundle, $this->getBundle($defaultLocale, $namespace));
60
+                $storage[$locale][$namespace] = $defaultLocale === $locale ? $this->encodeBundle($bundle) : $this->encodeMergedBundles($bundle, $this->getBundle($defaultLocale, $namespace));
62 61
             }
63 62
         }
64 63
 
Please login to merge, or discard this patch.