@@ -24,7 +24,7 @@ |
||
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) { |
@@ -16,13 +16,13 @@ discard block |
||
16 | 16 | $domains = []; |
17 | 17 | $domainsQueryResult = $entityManager->createQueryBuilder()->select('DISTINCT t.domain')->from('\Lexik\Bundle\TranslationBundle\Entity\File', 't')->getQuery()->getResult(Query::HYDRATE_ARRAY); |
18 | 18 | |
19 | - array_walk_recursive($domainsQueryResult, function ($domain) use (&$domains) { |
|
19 | + array_walk_recursive($domainsQueryResult, function($domain) use (&$domains) { |
|
20 | 20 | $domains[$domain] = $domain; |
21 | 21 | }); |
22 | 22 | ksort($domains); |
23 | 23 | |
24 | 24 | $filter->add('locale', 'doctrine_orm_callback', [ |
25 | - 'callback' => function (ProxyQuery $queryBuilder, $alias, $field, $options) { |
|
25 | + 'callback' => function(ProxyQuery $queryBuilder, $alias, $field, $options) { |
|
26 | 26 | if (!isset($options['value']) || empty($options['value'])) { |
27 | 27 | return; |
28 | 28 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | ], |
38 | 38 | 'field_type' => 'choice', |
39 | 39 | ])->add('show_non_translated_only', 'doctrine_orm_callback', [ |
40 | - 'callback' => function (ProxyQuery $queryBuilder, $alias, $field, $options) { |
|
40 | + 'callback' => function(ProxyQuery $queryBuilder, $alias, $field, $options) { |
|
41 | 41 | if (!isset($options['value']) || empty($options['value']) || false === $options['value']) { |
42 | 42 | return; |
43 | 43 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | ], |
68 | 68 | 'field_type' => 'choice', |
69 | 69 | ])->add('content', 'doctrine_orm_callback', [ |
70 | - 'callback' => function (ProxyQuery $queryBuilder, $alias, $field, $options) { |
|
70 | + 'callback' => function(ProxyQuery $queryBuilder, $alias, $field, $options) { |
|
71 | 71 | if (!isset($options['value']) || empty($options['value'])) { |
72 | 72 | return; |
73 | 73 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | private function formatLocales(array $locales) |
116 | 116 | { |
117 | 117 | $formattedLocales = []; |
118 | - array_walk_recursive($locales, function ($language) use (&$formattedLocales) { |
|
118 | + array_walk_recursive($locales, function($language) use (&$formattedLocales) { |
|
119 | 119 | $formattedLocales[$language] = $language; |
120 | 120 | }); |
121 | 121 |
@@ -25,12 +25,12 @@ discard block |
||
25 | 25 | self::init($class, $className); |
26 | 26 | $locale = self::getLocaleVar($locale); |
27 | 27 | |
28 | - if((int)$id === 0){ |
|
28 | + if ((int)$id === 0) { |
|
29 | 29 | $id = Quick::findNextIdExt(self::$entityManager->getMetadataFactory()->getMetadataFor($class)); |
30 | 30 | } |
31 | 31 | |
32 | 32 | $update = (int)self::findByLocale($class, $locale, $content, $field, null, $id); |
33 | - if($update === 0){ |
|
33 | + if ($update === 0) { |
|
34 | 34 | $id = Quick::findNextIdExt(self::$entityManager->getMetadataFactory()->getMetadataFor($class)); |
35 | 35 | } |
36 | 36 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | if ($isId) { |
104 | 104 | $where['foreign_key'] = $isId; |
105 | 105 | } else { |
106 | - if($content !== null) { |
|
106 | + if ($content !== null) { |
|
107 | 107 | $where['content'] = $content; |
108 | 108 | } |
109 | 109 | } |
@@ -25,12 +25,12 @@ |
||
25 | 25 | self::init($class, $className); |
26 | 26 | $locale = self::getLocaleVar($locale); |
27 | 27 | |
28 | - if((int)$id === 0){ |
|
28 | + if((int)$id === 0) { |
|
29 | 29 | $id = Quick::findNextIdExt(self::$entityManager->getMetadataFactory()->getMetadataFor($class)); |
30 | 30 | } |
31 | 31 | |
32 | 32 | $update = (int)self::findByLocale($class, $locale, $content, $field, null, $id); |
33 | - if($update === 0){ |
|
33 | + if($update === 0) { |
|
34 | 34 | $id = Quick::findNextIdExt(self::$entityManager->getMetadataFactory()->getMetadataFor($class)); |
35 | 35 | } |
36 | 36 |