Passed
Push — master ( d2e487...b38026 )
by Tobias
05:31
created
Catalogue/CatalogueManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
             }
108 108
         }
109 109
 
110
-        $messages = \array_filter($messages, static function (CatalogueMessage $m) use ($isNew, $isObsolete, $isApproved, $isEmpty) {
110
+        $messages = \array_filter($messages, static function(CatalogueMessage $m) use ($isNew, $isObsolete, $isApproved, $isEmpty) {
111 111
             if (null !== $isNew && $m->isNew() !== $isNew) {
112 112
                 return false;
113 113
             }
Please login to merge, or discard this patch.
Tests/Unit/Catalogue/CatalogueManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
         $messages = $manager->findMessages(['isApproved' => true]);
67 67
         $this->assertCount(3, $messages);
68
-        $keys = \array_map(function (CatalogueMessage $message) {
68
+        $keys = \array_map(function(CatalogueMessage $message) {
69 69
             return $message->getKey();
70 70
         }, $messages);
71 71
         $this->assertContains('c', $keys);
Please login to merge, or discard this patch.
Tests/Unit/Catalogue/Operation/ReplaceOperationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
             ['category' => 'note2', 'content' => 'c'],
113 113
         ];
114 114
         $mergedCatalogue->setMetadata('a', ['notes' => ['test']], 'messages');
115
-        $mergedCatalogue->setMetadata('b', ['notes' => $mergedNotes, 'meta0' => 'zz',  'meta1' => 'yy', 'meta2' => 'xx'], 'messages');
115
+        $mergedCatalogue->setMetadata('b', ['notes' => $mergedNotes, 'meta0' => 'zz', 'meta1' => 'yy', 'meta2' => 'xx'], 'messages');
116 116
         $mergedCatalogue->setMetadata('c', 'qux', 'messages');
117 117
 
118 118
         $resultCatalogue = $this->createOperation($leftCatalogue, $rightCatalogue)->getResult();
Please login to merge, or discard this patch.
Controller/WebUIController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
 
134 134
         /** @var CatalogueMessage[] $messages */
135 135
         $messages = $this->catalogueManager->getMessages($locale, $domain);
136
-        \usort($messages, function (CatalogueMessage $a, CatalogueMessage $b) {
136
+        \usort($messages, function(CatalogueMessage $a, CatalogueMessage $b) {
137 137
             return \strcmp($a->getKey(), $b->getKey());
138 138
         });
139 139
 
Please login to merge, or discard this patch.
Command/CheckMissingCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
         foreach ($catalogue->getDomains() as $domain) {
135 135
             $emptyTranslations = \array_filter(
136 136
                 $catalogue->all($domain),
137
-                function (string $message = null): bool {
137
+                function(string $message = null): bool {
138 138
                     return null === $message || '' === $message;
139 139
                 }
140 140
             );
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                             ->info('Directories we should scan for translations')
109 109
                             ->prototype('scalar')
110 110
                                 ->validate()
111
-                                    ->always(function ($value) use ($container) {
111
+                                    ->always(function($value) use ($container) {
112 112
                                         $value = \str_replace(\DIRECTORY_SEPARATOR, '/', $value);
113 113
 
114 114
                                         if ('@' === $value[0]) {
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
                             ->info('Options passed to the local file storage\'s dumper.')
169 169
                             ->defaultValue([])
170 170
                             ->validate()
171
-                                ->ifTrue(function ($value) {
171
+                                ->ifTrue(function($value) {
172 172
                                     return !\is_array($value);
173 173
                                 })
174 174
                                 ->thenInvalid('"local_file_storage_options" must be an array.')
Please login to merge, or discard this patch.
Model/Metadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
             }
156 156
         }
157 157
 
158
-        \usort($data, static function (array $a, array $b) {
158
+        \usort($data, static function(array $a, array $b) {
159 159
             return (int) $a['priority'] - (int) $b['priority'];
160 160
         });
161 161
 
Please login to merge, or discard this patch.