@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | return array_filter( |
| 91 | 91 | $entities, |
| 92 | - function ($entityName) use ($modeFilter, $self) { |
|
| 92 | + function($entityName) use ($modeFilter, $self) { |
|
| 93 | 93 | $mode = $self->getEntityModeConfig($entityName); |
| 94 | 94 | |
| 95 | 95 | return is_array($modeFilter) ? in_array($mode, $modeFilter, true) : $mode === $modeFilter; |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | if ($mode !== Mode::NORMAL) { |
| 144 | 144 | return array_filter( |
| 145 | 145 | $this->getEntities(), |
| 146 | - function ($className) use ($entityName) { |
|
| 146 | + function($className) use ($entityName) { |
|
| 147 | 147 | return is_subclass_of($className, $entityName); |
| 148 | 148 | } |
| 149 | 149 | ); |
@@ -269,7 +269,7 @@ |
||
| 269 | 269 | $joinAlias = $this->getJoinAlias(Query::TYPE_TEXT, $index); |
| 270 | 270 | |
| 271 | 271 | $qb->addSelect(sprintf('TsRank(%s.value, :quotedValue%s) as rankField%s', $joinAlias, $index, $index)) |
| 272 | - ->addOrderBy(sprintf('rankField%s', $index), Criteria::DESC); |
|
| 272 | + ->addOrderBy(sprintf('rankField%s', $index), Criteria::DESC); |
|
| 273 | 273 | |
| 274 | 274 | $parameter = $qb->getParameter(sprintf('value%s', $index)); |
| 275 | 275 | $quotedValue = sprintf('\'%s\'', $parameter->getValue()); |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | /** @var Collection $values */ |
| 77 | 77 | $values = $data['value']; |
| 78 | 78 | $values = $values->map( |
| 79 | - function ($entity) { |
|
| 79 | + function($entity) { |
|
| 80 | 80 | return $this->doctrineHelper->getSingleEntityIdentifier($entity, false); |
| 81 | 81 | } |
| 82 | 82 | ); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | 'name' => 'products', |
| 56 | 56 | 'relation_type' => 'one-to-many', |
| 57 | 57 | 'relation_fields' => [ |
| 58 | - [ // test that 'target_fields' is set to ['products'] |
|
| 58 | + [// test that 'target_fields' is set to ['products'] |
|
| 59 | 59 | 'name' => 'name', |
| 60 | 60 | 'target_type' => 'text', |
| 61 | 61 | ], |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | 'name' => 'categories', |
| 64 | 64 | 'relation_type' => 'one-to-many', |
| 65 | 65 | 'relation_fields' => [ |
| 66 | - [ // test that 'target_fields' is set to ['categories'] |
|
| 66 | + [// test that 'target_fields' is set to ['categories'] |
|
| 67 | 67 | 'name' => 'name', |
| 68 | 68 | 'target_type' => 'text', |
| 69 | 69 | ], |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | 'target_type' => 'decimal', |
| 112 | 112 | 'target_fields' => ['price'] |
| 113 | 113 | ], |
| 114 | - [ // test that 'target_fields' is set to ['count'] |
|
| 114 | + [// test that 'target_fields' is set to ['count'] |
|
| 115 | 115 | 'name' => 'count', |
| 116 | 116 | 'target_type' => 'integer', |
| 117 | 117 | ], |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | 'name' => 'products', |
| 140 | 140 | 'relation_type' => 'many-to-many', |
| 141 | 141 | 'relation_fields' => [ |
| 142 | - [ // test that 'target_fields' is set to ['products'] |
|
| 142 | + [// test that 'target_fields' is set to ['products'] |
|
| 143 | 143 | 'name' => 'name', |
| 144 | 144 | 'target_type' => 'text', |
| 145 | 145 | ], |
@@ -189,14 +189,14 @@ discard block |
||
| 189 | 189 | |
| 190 | 190 | $this->dispatcher = $this->createMock(EventDispatcherInterface::class); |
| 191 | 191 | |
| 192 | - $this->mapperProvider = new SearchMappingProvider($this->dispatcher); |
|
| 192 | + $this->mapperProvider = new SearchMappingProvider($this->dispatcher); |
|
| 193 | 193 | $this->mapperProvider->setMappingConfig($this->mappingConfig); |
| 194 | 194 | |
| 195 | 195 | $this->htmlTagHelper = $this->createMock(HtmlTagHelper::class); |
| 196 | 196 | $this->htmlTagHelper->expects($this->any()) |
| 197 | 197 | ->method('stripTags') |
| 198 | 198 | ->willReturnCallback( |
| 199 | - function ($value) { |
|
| 199 | + function($value) { |
|
| 200 | 200 | return trim(strip_tags($value)); |
| 201 | 201 | } |
| 202 | 202 | ); |
@@ -159,8 +159,8 @@ |
||
| 159 | 159 | // collect owners of all changed collections if owner class has mapping to collection field |
| 160 | 160 | return array_reduce( |
| 161 | 161 | $collectionUpdates, |
| 162 | - function (array $entities, PersistentCollection $collection) { |
|
| 163 | - $owner = $collection->getOwner(); |
|
| 162 | + function(array $entities, PersistentCollection $collection) { |
|
| 163 | + $owner = $collection->getOwner(); |
|
| 164 | 164 | $className = ClassUtils::getClass($owner); |
| 165 | 165 | $changedFields = $this->getIntersectChangedIndexedFields( |
| 166 | 166 | $className, |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | class FulltextIndexListener |
| 12 | 12 | { |
| 13 | 13 | /** |
| 14 | - * @var Connection |
|
| 15 | - */ |
|
| 14 | + * @var Connection |
|
| 15 | + */ |
|
| 16 | 16 | protected $connection; |
| 17 | 17 | |
| 18 | 18 | /** |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | $massAction = null; |
| 76 | 76 | $extensions = array_filter( |
| 77 | 77 | $dataGrid->getAcceptor()->getExtensions(), |
| 78 | - function (ExtensionVisitorInterface $extension) { |
|
| 78 | + function(ExtensionVisitorInterface $extension) { |
|
| 79 | 79 | return $extension instanceof MassActionExtension; |
| 80 | 80 | } |
| 81 | 81 | ); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | { |
| 43 | 43 | $formatedTime = clone $dateTime; |
| 44 | 44 | |
| 45 | - $minutes = (int) $dateTime->format('i'); |
|
| 45 | + $minutes = (int)$dateTime->format('i'); |
|
| 46 | 46 | if ($minutes >= 15 && $minutes < 45) { |
| 47 | 47 | $minutes = '30'; |
| 48 | 48 | } else { |
@@ -695,7 +695,7 @@ discard block |
||
| 695 | 695 | |
| 696 | 696 | $crawler = new Crawler($row->getHtml()); |
| 697 | 697 | /** @var Crawler[] $columns */ |
| 698 | - $columns = $crawler->filter('td')->each(function (Crawler $td) { |
|
| 698 | + $columns = $crawler->filter('td')->each(function(Crawler $td) { |
|
| 699 | 699 | return $td; |
| 700 | 700 | }); |
| 701 | 701 | |
@@ -935,7 +935,7 @@ discard block |
||
| 935 | 935 | { |
| 936 | 936 | $hints = array_filter( |
| 937 | 937 | array_map( |
| 938 | - function ($item) { |
|
| 938 | + function($item) { |
|
| 939 | 939 | $label = trim($this->createElement('GridFilterHintLabel', $item)->getText()); |
| 940 | 940 | $text = trim($this->createElement('GridFilterHint', $item)->getText()); |
| 941 | 941 | |
@@ -1079,7 +1079,7 @@ discard block |
||
| 1079 | 1079 | $row = $grid->getRowByNumber($number); |
| 1080 | 1080 | |
| 1081 | 1081 | $actions = array_map( |
| 1082 | - function (Element $action) { |
|
| 1082 | + function(Element $action) { |
|
| 1083 | 1083 | return $action->getText() ?: $action->getAttribute('title'); |
| 1084 | 1084 | }, |
| 1085 | 1085 | $row->getActionLinks() |