Test Setup Failed
Branch master (44bb91)
by Dima
03:54
created
src/Oro/Bundle/ChannelBundle/Async/ChangeIntegrationStatusProcessor.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     public function process(MessageInterface $message, SessionInterface $session)
44 44
     {
45 45
         $body = array_replace(['channelId' => null], JSON::decode($message->getBody()));
46
-        if (! $body['channelId']) {
46
+        if (!$body['channelId']) {
47 47
             $this->logger->critical('The message invalid. It must have channelId set');
48 48
 
49 49
             return self::REJECT;
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         /** @var Channel $channel */
55 55
         $channel = $em->find(Channel::class, $body['channelId']);
56
-        if (! $channel) {
56
+        if (!$channel) {
57 57
             $this->logger->critical(sprintf('Channel not found: %s', $body['channelId']));
58 58
 
59 59
             return self::REJECT;
@@ -63,8 +63,7 @@  discard block
 block discarded – undo
63 63
         if ($dataSource instanceof Integration) {
64 64
             if (Channel::STATUS_ACTIVE === $channel->getStatus()) {
65 65
                 $enabled = null !== $dataSource->getPreviouslyEnabled() ?
66
-                    $dataSource->getPreviouslyEnabled() :
67
-                    true;
66
+                    $dataSource->getPreviouslyEnabled() : true;
68 67
 
69 68
                 $dataSource->setEnabled($enabled);
70 69
                 EditModeUtils::attemptChangeEditMode($dataSource, Integration::EDIT_MODE_RESTRICTED);
Please login to merge, or discard this patch.
Bundle/CaseBundle/Tests/Unit/EventListener/SearchIndexDataListenerTest.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
         $htmlTagHelper->expects($this->any())
25 25
             ->method('stripTags')
26 26
             ->willReturnCallback(
27
-                function ($value) {
27
+                function($value) {
28 28
                     return trim(strip_tags($value));
29 29
                 }
30 30
             );
Please login to merge, or discard this patch.
src/Oro/Bundle/ContactBundle/Entity/Manager/ContactApiEntityManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
                 'accounts'     => ['fields' => 'id'],
76 76
                 'picture'      => ['fields' => 'id']
77 77
             ],
78
-            'post_serialize'  => function (array &$result) {
78
+            'post_serialize'  => function(array &$result) {
79 79
                 $this->postSerializeContact($result);
80 80
             }
81 81
         ];
Please login to merge, or discard this patch.
src/Oro/Bundle/ContactBundle/Controller/Api/Rest/ContactController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,14 +108,14 @@
 block discarded – undo
108 108
             'assigneeId'       => $userIdFilter,
109 109
             'assigneeUsername' => $userNameFilter,
110 110
         ];
111
-        $map              = [
111
+        $map = [
112 112
             'ownerId'          => 'owner',
113 113
             'ownerUsername'    => 'owner',
114 114
             'assigneeId'       => 'assignedTo',
115 115
             'assigneeUsername' => 'assignedTo',
116 116
             'phone'            => 'phones.phone'
117 117
         ];
118
-        $joins            = [
118
+        $joins = [
119 119
             'phones'
120 120
         ];
121 121
         $criteria = $this->getFilterCriteria($this->getSupportedQueryParameters('cgetAction'), $filterParameters, $map);
Please login to merge, or discard this patch.
src/Oro/Bundle/ContactBundle/Controller/Api/Rest/ContactPhoneController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
     protected function getPreparedItem($entity, $resultFields = [])
154 154
     {
155 155
         $result['id']      = $entity->getId();
156
-        $result['owner']   = (string) $entity->getOwner();
156
+        $result['owner']   = (string)$entity->getOwner();
157 157
         $result['phone']   = $entity->getPhone();
158 158
         $result['primary'] = $entity->isPrimary();
159 159
 
Please login to merge, or discard this patch.
Bundle/ContactBundle/Tests/Functional/AbstractContactPaginationTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     /**
15 15
      * @var array
16 16
      */
17
-    protected $gridParams         = [
17
+    protected $gridParams = [
18 18
         'contacts-grid' =>
19 19
             'i=1&p=25&s%5BlastName%5D=-1&s%5BfirstName%5D=-1'
20 20
     ];
Please login to merge, or discard this patch.
Bundle/ContactBundle/Tests/Functional/DataFixtures/LoadContactPhoneData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     const FIRST_ENTITY_NAME  = '1111111';
14 14
     const SECOND_ENTITY_NAME = '2222222';
15 15
     const THIRD_ENTITY_NAME  = '3333333';
16
-    const FOURTH_ENTITY_NAME  = '4444444';
16
+    const FOURTH_ENTITY_NAME = '4444444';
17 17
 
18 18
     public function getDependencies()
19 19
     {
Please login to merge, or discard this patch.
Bundle/ContactBundle/Tests/Functional/DataFixtures/LoadContactEmailData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     const FIRST_ENTITY_NAME  = '[email protected]';
14 14
     const SECOND_ENTITY_NAME = '[email protected]';
15 15
     const THIRD_ENTITY_NAME  = '[email protected]';
16
-    const FOURTH_ENTITY_NAME  = '[email protected]';
16
+    const FOURTH_ENTITY_NAME = '[email protected]';
17 17
 
18 18
     public function getDependencies()
19 19
     {
Please login to merge, or discard this patch.
ContactBundle/Tests/Unit/EventListener/PrepareResultItemListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
         $this->nameFormatter->expects($this->any())
29 29
             ->method('format')
30
-            ->will($this->returnCallback(function (Contact $contact) {
30
+            ->will($this->returnCallback(function(Contact $contact) {
31 31
                 return trim(implode(' ', [$contact->getFirstName(), $contact->getLastName()]));
32 32
             }));
33 33
     }
Please login to merge, or discard this patch.