@@ -54,8 +54,8 @@ |
||
| 54 | 54 | */ |
| 55 | 55 | public function cgetAction(Request $request) |
| 56 | 56 | { |
| 57 | - $page = (int) $request->get('page', 1); |
|
| 58 | - $limit = (int) $request->get('limit', self::ITEMS_PER_PAGE); |
|
| 57 | + $page = (int)$request->get('page', 1); |
|
| 58 | + $limit = (int)$request->get('limit', self::ITEMS_PER_PAGE); |
|
| 59 | 59 | |
| 60 | 60 | $contactIdFilter = new IdentifierToReferenceFilter($this->getDoctrine(), 'OroContactBundle:Contact'); |
| 61 | 61 | $filterParameters = [ |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | $qb->setParameter(':organization', $organization); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - return (bool) $qb->getQuery()->getSingleScalarResult(); |
|
| 70 | + return (bool)$qb->getQuery()->getSingleScalarResult(); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -47,8 +47,8 @@ |
||
| 47 | 47 | */ |
| 48 | 48 | public function cgetAction(Request $request) |
| 49 | 49 | { |
| 50 | - $page = (int) $request->get('page', 1); |
|
| 51 | - $limit = (int) $request->get('limit', self::ITEMS_PER_PAGE); |
|
| 50 | + $page = (int)$request->get('page', 1); |
|
| 51 | + $limit = (int)$request->get('limit', self::ITEMS_PER_PAGE); |
|
| 52 | 52 | |
| 53 | 53 | return $this->handleGetListRequest($page, $limit); |
| 54 | 54 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $value->getChannel()->getType() |
| 44 | 44 | ); |
| 45 | 45 | |
| 46 | - if (! $transportProvider instanceof MagentoTransportInterface) { |
|
| 46 | + if (!$transportProvider instanceof MagentoTransportInterface) { |
|
| 47 | 47 | throw new UnexpectedTypeException($transportProvider, MagentoTransportInterface::class); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * @var $transportProvider MagentoTransportInterface |
| 54 | 54 | */ |
| 55 | - if (! $transportProvider->isCustomerHasUniqueEmail($value)) { |
|
| 55 | + if (!$transportProvider->isCustomerHasUniqueEmail($value)) { |
|
| 56 | 56 | $this->context->buildViolation($constraint->message) |
| 57 | 57 | ->atPath('email') |
| 58 | 58 | ->addViolation(); |
@@ -67,13 +67,13 @@ |
||
| 67 | 67 | { |
| 68 | 68 | return [ |
| 69 | 69 | 'rows' => array_map( |
| 70 | - function ($item) use ($keys) { |
|
| 70 | + function($item) use ($keys) { |
|
| 71 | 71 | return array_intersect_key($item, array_flip($keys)); |
| 72 | 72 | }, |
| 73 | 73 | $response['data'] |
| 74 | 74 | ), |
| 75 | 75 | 'totals' => array_map( |
| 76 | - function ($item) { |
|
| 76 | + function($item) { |
|
| 77 | 77 | return $item['total'] ?? $item['label']; |
| 78 | 78 | }, |
| 79 | 79 | array_intersect_key($response['options']['totals']['grand_total']['columns'], array_flip($keys)) |
@@ -101,13 +101,13 @@ |
||
| 101 | 101 | private function getEmailAddresses(EmailAddressManager $emailAddressManager): array |
| 102 | 102 | { |
| 103 | 103 | $repo = $emailAddressManager->getEmailAddressRepository(); |
| 104 | - $emailAddresses = array_filter($repo->findAll(), function (EmailAddress $emailAddress) { |
|
| 104 | + $emailAddresses = array_filter($repo->findAll(), function(EmailAddress $emailAddress) { |
|
| 105 | 105 | return $emailAddress->getOwner() instanceof Contact; |
| 106 | 106 | }); |
| 107 | 107 | |
| 108 | 108 | return array_values( |
| 109 | 109 | array_map( |
| 110 | - function (EmailAddress $emailAddress) { |
|
| 110 | + function(EmailAddress $emailAddress) { |
|
| 111 | 111 | return $emailAddress->getEmail(); |
| 112 | 112 | }, |
| 113 | 113 | $emailAddresses |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | |
| 78 | 78 | $resolver->setNormalizer( |
| 79 | 79 | 'query_builder', |
| 80 | - function (Options $options, $value) { |
|
| 80 | + function(Options $options, $value) { |
|
| 81 | 81 | $entities = $options['entities']; |
| 82 | 82 | $queryBuilder = $this->channelsProvider->getChannelsByEntitiesQB($entities); |
| 83 | 83 | |
@@ -43,12 +43,12 @@ |
||
| 43 | 43 | // Set store form type readonly if ASSIGN permissions for integration not set |
| 44 | 44 | $resolver->setNormalizer( |
| 45 | 45 | 'disabled', |
| 46 | - function (Options $options, $value) { |
|
| 46 | + function(Options $options, $value) { |
|
| 47 | 47 | return $this->isReadOnly() ? true : $value; |
| 48 | 48 | } |
| 49 | 49 | )->setNormalizer( |
| 50 | 50 | 'validation_groups', |
| 51 | - function (Options $options, $value) { |
|
| 51 | + function(Options $options, $value) { |
|
| 52 | 52 | return $options['disabled'] ? false : $value; |
| 53 | 53 | } |
| 54 | 54 | ); |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | ->method('setNormalizer') |
| 27 | 27 | ->with( |
| 28 | 28 | 'entry_options', |
| 29 | - function (Options $options, $values) { |
|
| 29 | + function(Options $options, $values) { |
|
| 30 | 30 | if (!$values) { |
| 31 | 31 | $values = []; |
| 32 | 32 | } |