Test Setup Failed
Pull Request — master (#798)
by Paul
05:57
created
src/Oro/Bundle/LocaleBundle/Formatter/AddressFormatter.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
         $countryLocale = $this->localeSettings->getLocaleByCountry($country);
76 76
         $formatted = preg_replace_callback(
77 77
             '/%(\w+)%/',
78
-            function ($data) use ($address, $countryLocale, $newLineSeparator) {
78
+            function($data) use ($address, $countryLocale, $newLineSeparator) {
79 79
                 $key = $data[1];
80 80
                 $lowerCaseKey = strtolower($key);
81 81
                 if ('name' === $lowerCaseKey) {
Please login to merge, or discard this patch.
src/Oro/Bundle/LocaleBundle/Formatter/NumberFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -370,7 +370,7 @@
 block discarded – undo
370 370
         array $textAttributes = array(),
371 371
         array $symbols = array()
372 372
     ) {
373
-        $locale = $locale ? : $this->localeSettings->getLocale();
373
+        $locale = $locale ?: $this->localeSettings->getLocale();
374 374
         $style = $this->parseStyle($style);
375 375
         $attributes = $this->parseAttributes($attributes);
376 376
         $textAttributes = $this->parseAttributes($textAttributes);
Please login to merge, or discard this patch.
Tests/Functional/ORM/BufferedIdentityQueryResultIteratorTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
             if ($i % 3 == 0) {
343 343
                 $id = $item->getId();
344 344
                 $em->getConnection()
345
-                   ->exec("update test_search_item set stringValue = 'processed' where id = {$id}");
345
+                    ->exec("update test_search_item set stringValue = 'processed' where id = {$id}");
346 346
             }
347 347
             $iteratorResult[] = $item;
348 348
         }
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
         foreach ($iterator as $item) {
376 376
             $id = $item->getId();
377 377
             $em->getConnection()
378
-               ->exec("delete from test_search_item_value where id = {$id}");
378
+                ->exec("delete from test_search_item_value where id = {$id}");
379 379
         }
380 380
 
381 381
         $queryBuilder = $em->getRepository('OroTestFrameworkBundle:ItemValue')->createQueryBuilder('value');
Please login to merge, or discard this patch.
src/Oro/Bundle/ReportBundle/Grid/ReportDatagridConfigurationProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     protected function prepareConfiguration($gridName)
122 122
     {
123
-        $id     = (int) (substr($gridName, strlen(Report::GRID_PREFIX)));
123
+        $id     = (int)(substr($gridName, strlen(Report::GRID_PREFIX)));
124 124
         $repo   = $this->doctrine->getRepository('OroReportBundle:Report');
125 125
         $report = $repo->find($id);
126 126
 
@@ -139,6 +139,6 @@  discard block
 block discarded – undo
139 139
      */
140 140
     private function getCacheKey($gridName)
141 141
     {
142
-        return $this->prefixCacheKey.'.'.$gridName;
142
+        return $this->prefixCacheKey . '.' . $gridName;
143 143
     }
144 144
 }
Please login to merge, or discard this patch.
src/Oro/Bundle/ReportBundle/Form/Type/ReportChartType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         $resolver->setDefaults(
37 37
             array(
38
-                'chart_filter' => function ($chartConfig) {
38
+                'chart_filter' => function($chartConfig) {
39 39
                     return !empty($chartConfig['default_settings']['available_in_reports']);
40 40
                 }
41 41
             )
Please login to merge, or discard this patch.
src/Oro/Bundle/ReportBundle/EventListener/ReportCacheCleanerListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     protected function clearCache(Report $entity)
52 52
     {
53
-        $key = $this->prefixCacheKey.'.'.$entity->getGridPrefix().$entity->getId();
53
+        $key = $this->prefixCacheKey . '.' . $entity->getGridPrefix() . $entity->getId();
54 54
 
55 55
         if ($this->reportCacheManager->contains($key)) {
56 56
             $this->reportCacheManager->delete($key);
Please login to merge, or discard this patch.
Bundle/LocaleBundle/Tests/Unit/Formatter/FormattingCodeFormatterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Oro/Bundle/InstallerBundle/Command/InstallCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      */
234 234
     protected function getNotBlankValidator($message)
235 235
     {
236
-        return function ($value) use ($message) {
236
+        return function($value) use ($message) {
237 237
             if (strlen(trim($value)) === 0) {
238 238
                 throw new \Exception($message);
239 239
             }
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         $emailValidator     = $this->getNotBlankValidator('The email must be specified');
253 253
         $firstNameValidator = $this->getNotBlankValidator('The first name must be specified');
254 254
         $lastNameValidator  = $this->getNotBlankValidator('The last name must be specified');
255
-        $passwordValidator  = function ($value) {
255
+        $passwordValidator  = function($value) {
256 256
             if (strlen(trim($value)) < 2) {
257 257
                 throw new \Exception('The password must be at least 2 characters long');
258 258
             }
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
         /** @var ConfigManager $configManager */
327 327
         $configManager             = $this->getContainer()->get('oro_config.global');
328 328
         $defaultOrganizationName   = $configManager->get('oro_ui.organization_name');
329
-        $organizationNameValidator = function ($value) use (&$defaultOrganizationName) {
329
+        $organizationNameValidator = function($value) use (&$defaultOrganizationName) {
330 330
             $len = strlen(trim($value));
331 331
             if ($len === 0 && empty($defaultOrganizationName)) {
332 332
                 throw new \Exception('The organization name must not be empty');
Please login to merge, or discard this patch.
src/Oro/Bundle/ApiBundle/Tests/Functional/RestJsonApi/DocumentationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@
 block discarded – undo
268 268
     {
269 269
         return $this->filterDocs(
270 270
             $this->getExtractor()->all(self::VIEW),
271
-            function (Route $route) use ($entityType, $action) {
271
+            function(Route $route) use ($entityType, $action) {
272 272
                 return
273 273
                     $route->getDefault('entity') === $entityType
274 274
                     && $route->getDefault('_action') === $action;
Please login to merge, or discard this patch.