Cancelled
Push — master ( 33a3bb...e2379a )
by Dāvis
05:55
created
Guzzle/GuzzleHttp/MessageFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
     {
125 125
         $cache = [];
126 126
 
127
-        return preg_replace_callback('/{\s*([A-Za-z_\-\.0-9]+)\s*}/', function (array $matches) use ($request, $response, $error, &$cache) {
127
+        return preg_replace_callback('/{\s*([A-Za-z_\-\.0-9]+)\s*}/', function(array $matches) use ($request, $response, $error, &$cache) {
128 128
             if (isset($cache[$matches[1]])) {
129 129
                 return $cache[$matches[1]];
130 130
             }
Please login to merge, or discard this patch.
Script/Utils/StreamResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $chunked = $this->headers->has('Transfer-Encoding');
25 25
         $this->content->seek(0);
26 26
 
27
-        for (; ;) {
27
+        for (;;) {
28 28
             $chunk = $this->content->read($this->bufferSize);
29 29
 
30 30
             if ($chunked) {
Please login to merge, or discard this patch.
Translatable/Form/Type/TranslatorType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     private function addPreSetDataListener(FormBuilderInterface $builder, $fieldName, $translations, $fieldType, $class, $required, $className, $id)
86 86
     {
87 87
         // 'populate' fields by *hook on form generation
88
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($fieldName, $translations, $fieldType, $class, $required, $className, $id) {
88
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($fieldName, $translations, $fieldType, $class, $required, $className, $id) {
89 89
             $form = $event->getForm();
90 90
             foreach ($this->locales as $locale) {
91 91
                 $data = (array_key_exists($locale, $translations) && array_key_exists($fieldName, $translations[$locale])) ? $translations[$locale][$fieldName] : null;
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
     private function addPostSubmitListener(FormBuilderInterface $builder, $fieldName, $className, $id)
111 111
     {
112
-        $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) use ($fieldName, $className, $id) {
112
+        $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) use ($fieldName, $className, $id) {
113 113
             $form = $event->getForm();
114 114
             $this->manager->persistTranslations($form, $className, $fieldName, $id, $this->locales);
115 115
         });
Please login to merge, or discard this patch.
Lexik/Admin/ORMTranslationAdmin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     private function getLocaleOptions()
12 12
     {
13 13
         return [
14
-            'callback' => function (ProxyQuery $queryBuilder, $alias, $field, $options) {
14
+            'callback' => function(ProxyQuery $queryBuilder, $alias, $field, $options) {
15 15
                 if (!isset($options['value']) || empty($options['value'])) {
16 16
                     return;
17 17
                 }
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     private function getNonOptions()
32 32
     {
33 33
         return [
34
-            'callback' => function (ProxyQuery $queryBuilder, $alias, $field, $options) {
34
+            'callback' => function(ProxyQuery $queryBuilder, $alias, $field, $options) {
35 35
                 if (!isset($options['value']) || empty($options['value']) || false === $options['value']) {
36 36
                     return;
37 37
                 }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     private function getContentOptions()
71 71
     {
72 72
         return [
73
-            'callback' => function (ProxyQuery $queryBuilder, $alias, $field, $options) {
73
+            'callback' => function(ProxyQuery $queryBuilder, $alias, $field, $options) {
74 74
                 if (!isset($options['value']) || empty($options['value'])) {
75 75
                     return;
76 76
                 }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $domains = [];
91 91
         $domainsQueryResult = $entityManager->createQueryBuilder()->select('DISTINCT t.domain')->from('\Lexik\Bundle\TranslationBundle\Entity\File', 't')->getQuery()->getResult(Query::HYDRATE_ARRAY);
92 92
 
93
-        array_walk_recursive($domainsQueryResult, function ($domain) use (&$domains) {
93
+        array_walk_recursive($domainsQueryResult, function($domain) use (&$domains) {
94 94
             $domains[$domain] = $domain;
95 95
         });
96 96
         ksort($domains);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     private function formatLocales(array $locales)
141 141
     {
142 142
         $formattedLocales = [];
143
-        array_walk_recursive($locales, function ($language) use (&$formattedLocales) {
143
+        array_walk_recursive($locales, function($language) use (&$formattedLocales) {
144 144
             $formattedLocales[$language] = $language;
145 145
         });
146 146
 
Please login to merge, or discard this patch.
DependencyInjection/Compiler/MiddlewarePass.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -159,12 +159,12 @@
 block discarded – undo
159 159
         $this->makeLists($tags[0], $whiteList, $blackList);
160 160
 
161 161
         if ($whiteList) {
162
-            return array_filter($middlewareBag, function ($value) use ($whiteList) {
162
+            return array_filter($middlewareBag, function($value) use ($whiteList) {
163 163
                 return \in_array($value['alias'], $whiteList, true);
164 164
             });
165 165
         }
166 166
 
167
-        return array_filter($middlewareBag, function ($value) use ($blackList) {
167
+        return array_filter($middlewareBag, function($value) use ($blackList) {
168 168
             return !\in_array($value['alias'], $blackList, true);
169 169
         });
170 170
     }
Please login to merge, or discard this patch.