Test Setup Failed
Pull Request — master (#793)
by
unknown
04:30
created
src/Oro/Bundle/ImportExportBundle/Reader/CsvFileReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
         $data = $this->getFile()->fgetcsv();
50 50
         if (false !== $data) {
51
-            if (! $context instanceof ContextInterface) {
51
+            if (!$context instanceof ContextInterface) {
52 52
                 $context = $this->getContext();
53 53
             }
54 54
             $context->incrementReadOffset();
Please login to merge, or discard this patch.
src/Oro/Bundle/ImportExportBundle/Controller/ImportExportController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -463,7 +463,7 @@
 block discarded – undo
463 463
             $jobExecutor->getJobFailureExceptions($jobCode),
464 464
             $jobExecutor->getJobErrors($jobCode)
465 465
         );
466
-        $content     = implode("\r\n", $errors);
466
+        $content = implode("\r\n", $errors);
467 467
 
468 468
         return new Response($content, 200, ['Content-Type' => 'text/x-log']);
469 469
     }
Please login to merge, or discard this patch.
src/Oro/Bundle/ImportExportBundle/Context/Context.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
     public function getFailureExceptions()
111 111
     {
112 112
         return array_map(
113
-            function ($e) {
113
+            function($e) {
114 114
                 return $e['message'];
115 115
             },
116 116
             $this->failureExceptions
Please login to merge, or discard this patch.
Bundle/ImportExportBundle/Async/Import/PreHttpImportMessageProcessor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     protected function validateMessageBody($body)
33 33
     {
34
-        if (! isset(
34
+        if (!isset(
35 35
             $body['userId'],
36 36
             $body['jobName'],
37 37
             $body['process'],
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
         $result = $this->jobRunner->runUnique(
70 70
             $parentMessageId,
71 71
             $jobName,
72
-            function (JobRunner $jobRunner, Job $job) use ($jobName, $body, $files) {
72
+            function(JobRunner $jobRunner, Job $job) use ($jobName, $body, $files) {
73 73
                 foreach ($files as $key => $file) {
74 74
                     $jobRunner->createDelayed(
75 75
                         sprintf('%s:chunk.%s', $jobName, ++$key),
76
-                        function (JobRunner $jobRunner, Job $child) use ($body, $file, $key) {
76
+                        function(JobRunner $jobRunner, Job $child) use ($body, $file, $key) {
77 77
                             $body['fileName'] = $file;
78 78
                             $body['options']['batch_number'] = $key;
79 79
                             $this->producer->send(
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             ->getRepository(User::class)
130 130
             ->find($body['userId']);
131 131
 
132
-        if (! $user instanceof User) {
132
+        if (!$user instanceof User) {
133 133
             $this->logger->critical(
134 134
                 sprintf('User not found. Id: %s', $body['userId'])
135 135
             );
Please login to merge, or discard this patch.
ImportExportBundle/Async/Import/PreImportMessageProcessorAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
 
176 176
         $body = $this->validateMessageBody($body);
177 177
 
178
-        if (! $body) {
178
+        if (!$body) {
179 179
             return self::REJECT;
180 180
         }
181 181
 
Please login to merge, or discard this patch.
Oro/Bundle/ImportExportBundle/Async/Import/PreCliImportMessageProcessor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     protected function validateMessageBody($body)
16 16
     {
17
-        if (! isset(
17
+        if (!isset(
18 18
             $body['jobName'],
19 19
             $body['process'],
20 20
             $body['processorAlias'],
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
53 53
         $result = $this->jobRunner->runUnique(
54 54
             $parentMessageId,
55 55
             $jobName,
56
-            function (JobRunner $jobRunner, Job $job) use ($jobName, $body, $files) {
56
+            function(JobRunner $jobRunner, Job $job) use ($jobName, $body, $files) {
57 57
                 foreach ($files as $key => $file) {
58 58
                     $jobRunner->createDelayed(
59 59
                         sprintf('%s:chunk.%s', $jobName, ++$key),
60
-                        function (JobRunner $jobRunner, Job $child) use ($file, $body) {
60
+                        function(JobRunner $jobRunner, Job $child) use ($file, $body) {
61 61
                             $body['fileName'] = $file;
62 62
                             $this->producer->send(
63 63
                                 Topics::CLI_IMPORT,
Please login to merge, or discard this patch.
Oro/Bundle/ImportExportBundle/Async/Export/PostExportMessageProcessor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
     {
82 82
         $body = JSON::decode($message->getBody());
83 83
 
84
-        if (! isset($body['jobId'], $body['jobName'], $body['exportType'], $body['outputFormat'], $body['email'])) {
84
+        if (!isset($body['jobId'], $body['jobName'], $body['exportType'], $body['outputFormat'], $body['email'])) {
85 85
             $this->logger->critical('Invalid message');
86 86
         }
87 87
 
88
-        if (! ($job = $this->jobStorage->findJobById($body['jobId']))) {
88
+        if (!($job = $this->jobStorage->findJobById($body['jobId']))) {
89 89
             $this->logger->critical('Job not found');
90 90
 
91 91
             return self::REJECT;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $files = [];
96 96
 
97 97
         foreach ($job->getChildJobs() as $childJob) {
98
-            if (! empty($childJob->getData()) && ($file = $childJob->getData()['file'])) {
98
+            if (!empty($childJob->getData()) && ($file = $childJob->getData()['file'])) {
99 99
                 $files[] = $file;
100 100
             }
101 101
         }
Please login to merge, or discard this patch.
src/Oro/Bundle/ReminderBundle/DependencyInjection/OroReminderExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $configuration = new Configuration();
18 18
         $config = $this->processConfiguration($configuration, $configs);
19 19
 
20
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
20
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
21 21
         $loader->load('form.yml');
22 22
         $loader->load('services.yml');
23 23
     }
Please login to merge, or discard this patch.
TestFrameworkBundle/Tests/Unit/Behat/Listener/JsLogSubscriberTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $jsLogSubscriber->method('getUrl')->willReturn('example.com');
32 32
         $jsLogSubscriber->log($this->getEventMock());
33 33
 
34
-        $expectedLogFile = sys_get_temp_dir().DIRECTORY_SEPARATOR.'behat_browser.log';
34
+        $expectedLogFile = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'behat_browser.log';
35 35
         $this->assertFileExists($expectedLogFile);
36 36
         $this->assertStringEqualsFile($expectedLogFile, $expectedContent);
37 37
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $jsLogSubscriber->method('getLogs')->willReturn([]);
48 48
         $jsLogSubscriber->log($this->getEventMock());
49 49
 
50
-        $expectedLogFile = sys_get_temp_dir().DIRECTORY_SEPARATOR.'behat_browser.log';
50
+        $expectedLogFile = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'behat_browser.log';
51 51
         $this->assertFileNotExists($expectedLogFile);
52 52
     }
53 53
 
@@ -68,12 +68,12 @@  discard block
 block discarded – undo
68 68
                     ],
69 69
                 ],
70 70
                 'expected result' =>
71
-                    '[ERROR - 2017-07-10T19:04:21+00:00] [URL: "example.com"] '.
72
-                        '[Feature: "Feature Example", On line: 0, Step: "Test JsLogger Mock Step"] '.
73
-                        'Something went wrong'.PHP_EOL.
74
-                    '[WARNING - 2017-07-10T19:04:21+00:00] [URL: "example.com"] '.
75
-                        '[Feature: "Feature Example", On line: 0, Step: "Test JsLogger Mock Step"] '.
76
-                        'Check your environment'.PHP_EOL
71
+                    '[ERROR - 2017-07-10T19:04:21+00:00] [URL: "example.com"] ' .
72
+                        '[Feature: "Feature Example", On line: 0, Step: "Test JsLogger Mock Step"] ' .
73
+                        'Something went wrong' . PHP_EOL .
74
+                    '[WARNING - 2017-07-10T19:04:21+00:00] [URL: "example.com"] ' .
75
+                        '[Feature: "Feature Example", On line: 0, Step: "Test JsLogger Mock Step"] ' .
76
+                        'Check your environment' . PHP_EOL
77 77
             ],
78 78
             'irregular log' => [
79 79
                 'logs' => [
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
                     ],
83 83
                 ],
84 84
                 'expected result' =>
85
-                    '[UNKNOWN_LEVEL - 2017-07-10T19:04:21+00:00] [URL: "example.com"] '.
86
-                        '[Feature: "Feature Example", On line: 0, Step: "Test JsLogger Mock Step"] '.
87
-                        'UNKNOWN_MESSAGE'.PHP_EOL
85
+                    '[UNKNOWN_LEVEL - 2017-07-10T19:04:21+00:00] [URL: "example.com"] ' .
86
+                        '[Feature: "Feature Example", On line: 0, Step: "Test JsLogger Mock Step"] ' .
87
+                        'UNKNOWN_MESSAGE' . PHP_EOL
88 88
             ],
89 89
         ];
90 90
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function removeLog()
96 96
     {
97
-        $log = sys_get_temp_dir().DIRECTORY_SEPARATOR.'behat_browser.log';
97
+        $log = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'behat_browser.log';
98 98
 
99 99
         if (file_exists($log)) {
100 100
             unlink($log);
Please login to merge, or discard this patch.