@@ -36,7 +36,7 @@ |
||
| 36 | 36 | { |
| 37 | 37 | $alias = 'ALIAS'; |
| 38 | 38 | $pluralAlias = 'PLURAL_ALIAS'; |
| 39 | - $entityStructure = $this->getEntity(EntityStructure::class, ['className' => \stdClass::class,]); |
|
| 39 | + $entityStructure = $this->getEntity(EntityStructure::class, ['className' => \stdClass::class, ]); |
|
| 40 | 40 | |
| 41 | 41 | $this->entityAliasResolver |
| 42 | 42 | ->expects($this->once()) |
@@ -98,14 +98,14 @@ |
||
| 98 | 98 | $classInfo = $this->createMock(ClassMetadataInfo::class); |
| 99 | 99 | $classInfo->method('getTableName')->willReturn($table); |
| 100 | 100 | $classInfo->table = [ |
| 101 | - 'indexes' => [ |
|
| 102 | - $index => [ |
|
| 103 | - 'options' => [ |
|
| 104 | - 'where' => 'some condition', |
|
| 105 | - 'option2' => 'some value' |
|
| 106 | - ] |
|
| 107 | - ] |
|
| 108 | - ] |
|
| 101 | + 'indexes' => [ |
|
| 102 | + $index => [ |
|
| 103 | + 'options' => [ |
|
| 104 | + 'where' => 'some condition', |
|
| 105 | + 'option2' => 'some value' |
|
| 106 | + ] |
|
| 107 | + ] |
|
| 108 | + ] |
|
| 109 | 109 | ]; |
| 110 | 110 | |
| 111 | 111 | return $classInfo; |
@@ -177,7 +177,7 @@ |
||
| 177 | 177 | if ($representationField !== null) { |
| 178 | 178 | $text = $this->propertyAccessor->getValue($result, $representationField); |
| 179 | 179 | } else { |
| 180 | - $text = implode(' ', array_map(function ($field) use ($result) { |
|
| 180 | + $text = implode(' ', array_map(function($field) use ($result) { |
|
| 181 | 181 | return $this->propertyAccessor->getValue($result, $field); |
| 182 | 182 | }, $searchFields)); |
| 183 | 183 | } |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | |
| 84 | 84 | $builder->addEventListener( |
| 85 | 85 | FormEvents::PRE_SET_DATA, |
| 86 | - function (FormEvent $event) { |
|
| 86 | + function(FormEvent $event) { |
|
| 87 | 87 | $form = $event->getForm(); |
| 88 | 88 | $fallbackId = $event->getData() ? $event->getData()->getFallback() : null; |
| 89 | 89 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | if (is_array($conn)) { |
| 37 | - $conn = \Doctrine\DBAL\DriverManager::getConnection($conn, $config, ($eventManager ? : new EventManager())); |
|
| 37 | + $conn = \Doctrine\DBAL\DriverManager::getConnection($conn, $config, ($eventManager ?: new EventManager())); |
|
| 38 | 38 | } elseif ($conn instanceof Connection) { |
| 39 | 39 | if ($eventManager !== null && $conn->getEventManager() !== $eventManager) { |
| 40 | 40 | throw ORMException::mismatchedEventManager(); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $extendFieldConfig->get('target_title'), |
| 68 | 68 | $extendFieldConfig->get('target_detailed') |
| 69 | 69 | ); |
| 70 | - $targetIdField = $this->doctrineHelper->getSingleEntityIdentifierFieldName($targetEntityName); |
|
| 70 | + $targetIdField = $this->doctrineHelper->getSingleEntityIdentifierFieldName($targetEntityName); |
|
| 71 | 71 | // build 'assigned' field expression |
| 72 | 72 | if ($entityId) { |
| 73 | 73 | $extendEntityConfig = $extendConfigProvider->getConfig($entityClassName); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $relationHasInverseSide = $relation['target_field_id'] !== false; |
| 79 | 79 | if ($relationHasInverseSide) { |
| 80 | 80 | $targetFieldName = $relation['target_field_id']->getFieldName(); |
| 81 | - $whenExpr = sprintf( |
|
| 81 | + $whenExpr = sprintf( |
|
| 82 | 82 | '(:relation %s o.%s OR o.%s IN (:data_in)) AND o.%s NOT IN (:data_not_in)', |
| 83 | 83 | $operator, |
| 84 | 84 | $targetFieldName, |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $router = $this->router; |
| 56 | 56 | $route = $node['route']; |
| 57 | 57 | |
| 58 | - return function (ResultRecord $record) use ($gridName, $router, $route) { |
|
| 58 | + return function(ResultRecord $record) use ($gridName, $router, $route) { |
|
| 59 | 59 | $datagrid = $this->getVisitedDatagrid($gridName); |
| 60 | 60 | $className = $datagrid->getParameters()->get('class_name'); |
| 61 | 61 | return $router->generate( |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | { |
| 29 | 29 | IntlTestHelper::requireIntl($this); |
| 30 | 30 | |
| 31 | - $this->translator = $this->createMock('Symfony\Component\Translation\TranslatorInterface'); |
|
| 31 | + $this->translator = $this->createMock('Symfony\Component\Translation\TranslatorInterface'); |
|
| 32 | 32 | $this->configManager = $this->getMockBuilder('Oro\Bundle\ConfigBundle\Config\ConfigManager') |
| 33 | 33 | ->disableOriginalConstructor()->getMock(); |
| 34 | 34 | |
@@ -392,7 +392,7 @@ |
||
| 392 | 392 | array(\NumberFormatter::DECIMAL_ALWAYS_SHOWN, \NumberFormatter::DECIMAL, 'en_US', 0), |
| 393 | 393 | array(\NumberFormatter::MAX_INTEGER_DIGITS, \NumberFormatter::DECIMAL, 'en_US', $maxIntegerDigits), |
| 394 | 394 | array(\NumberFormatter::MIN_INTEGER_DIGITS, \NumberFormatter::DECIMAL, 'en_US', 1), |
| 395 | - array(\NumberFormatter::INTEGER_DIGITS,\NumberFormatter::DECIMAL, 'en_US', 1), |
|
| 395 | + array(\NumberFormatter::INTEGER_DIGITS, \NumberFormatter::DECIMAL, 'en_US', 1), |
|
| 396 | 396 | array(\NumberFormatter::MAX_FRACTION_DIGITS, \NumberFormatter::DECIMAL, 'en_US', 3), |
| 397 | 397 | array(\NumberFormatter::MIN_FRACTION_DIGITS, \NumberFormatter::DECIMAL, 'en_US', 0), |
| 398 | 398 | array(\NumberFormatter::MAX_FRACTION_DIGITS, \NumberFormatter::CURRENCY, 'en_US', 2), |