@@ -45,7 +45,7 @@ |
||
| 45 | 45 | |
| 46 | 46 | $currentTime = new \DateTime('now', new \DateTimeZone('UTC')); |
| 47 | 47 | if (!$this->lastUpdatedTime |
| 48 | - || (($currentTime->getTimestamp() - $this->lastUpdatedTime->getTimestamp())/60 |
|
| 48 | + || (($currentTime->getTimestamp() - $this->lastUpdatedTime->getTimestamp()) / 60 |
|
| 49 | 49 | >= $this->updateHeartbeatPeriod |
| 50 | 50 | ) |
| 51 | 51 | ) { |
@@ -48,6 +48,6 @@ |
||
| 48 | 48 | return false; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - return !(($currentTime->getTimestamp() - $lastAliveTime->getTimestamp())/60 >= $this->updatePeriod); |
|
| 51 | + return !(($currentTime->getTimestamp() - $lastAliveTime->getTimestamp()) / 60 >= $this->updatePeriod); |
|
| 52 | 52 | } |
| 53 | 53 | } |
@@ -395,7 +395,7 @@ |
||
| 395 | 395 | 'priority' => 77, |
| 396 | 396 | 'class' => 'Old Class', |
| 397 | 397 | 'subblocks' => [] |
| 398 | - ] ; |
|
| 398 | + ]; |
|
| 399 | 399 | |
| 400 | 400 | return [ |
| 401 | 401 | 'remove not existing block' => [ |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | if (!$forceDependenciesInstalling && $requirements = $manager->getRequirements($packageName)) { |
| 141 | 141 | $responseContent['requirements'] = array_map( |
| 142 | - function (PackageRequirement $pr) { |
|
| 142 | + function(PackageRequirement $pr) { |
|
| 143 | 143 | return $pr->toArray(); |
| 144 | 144 | }, |
| 145 | 145 | $requirements |
@@ -154,8 +154,7 @@ discard block |
||
| 154 | 154 | $manager->install($packageName, $packageVersion, (bool)$loadDemoData); |
| 155 | 155 | } catch (\Exception $e) { |
| 156 | 156 | $message = $e instanceof VerboseException ? |
| 157 | - $e->getMessage() . '_' . $e->getVerboseMessage() : |
|
| 158 | - $e->getMessage(); |
|
| 157 | + $e->getMessage() . '_' . $e->getVerboseMessage() : $e->getMessage(); |
|
| 159 | 158 | $responseContent = [ |
| 160 | 159 | 'code' => self::CODE_ERROR, |
| 161 | 160 | 'message' => $message |
@@ -34,9 +34,9 @@ |
||
| 34 | 34 | ->with( |
| 35 | 35 | json_encode( |
| 36 | 36 | array( |
| 37 | - \Ratchet\Wamp\ServerProtocol::MSG_PUBLISH, |
|
| 38 | - self::TOPIC, |
|
| 39 | - self::MESSAGE |
|
| 37 | + \Ratchet\Wamp\ServerProtocol::MSG_PUBLISH, |
|
| 38 | + self::TOPIC, |
|
| 39 | + self::MESSAGE |
|
| 40 | 40 | ) |
| 41 | 41 | ) |
| 42 | 42 | ); |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $definition->expects($this->any()) |
| 56 | 56 | ->method('addMethodCall') |
| 57 | 57 | ->with('markSkipped') |
| 58 | - ->willReturnCallback(function ($method, array $arguments) use (&$skippedEntityClasses) { |
|
| 58 | + ->willReturnCallback(function($method, array $arguments) use (&$skippedEntityClasses) { |
|
| 59 | 59 | $skippedEntityClasses[] = $arguments[0]; |
| 60 | 60 | }); |
| 61 | 61 | |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | if (!empty($tags)) { |
| 55 | 55 | $userName = $this->getUserName(); |
| 56 | 56 | $tags = array_map( |
| 57 | - function ($tag) use ($userName) { |
|
| 57 | + function($tag) use ($userName) { |
|
| 58 | 58 | return ['username' => $userName, 'tagname' => $tag]; |
| 59 | 59 | }, |
| 60 | 60 | $tags |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | if (!$this->strategyHelper->isGranted('CREATE', 'entity:' . ClassUtils::getClass($entity))) { |
| 176 | 176 | $error = $this->translator->trans( |
| 177 | 177 | 'oro.importexport.import.errors.access_denied_entity', |
| 178 | - ['%entity_name%' => $entityClass,] |
|
| 178 | + ['%entity_name%' => $entityClass, ] |
|
| 179 | 179 | ); |
| 180 | 180 | $this->context->addError($error); |
| 181 | 181 | |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | if (!$this->strategyHelper->isGranted($permission, $entity)) { |
| 591 | 591 | $error = $this->translator->trans( |
| 592 | 592 | 'oro.importexport.import.errors.access_denied_entity', |
| 593 | - ['%entity_name%' => $entityClass,] |
|
| 593 | + ['%entity_name%' => $entityClass, ] |
|
| 594 | 594 | ); |
| 595 | 595 | $this->context->addError($error); |
| 596 | 596 | |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | */ |
| 434 | 434 | protected function removedIgnoredColumnsFromData(array &$data, array $ignoredColumns) |
| 435 | 435 | { |
| 436 | - array_walk($data, function (array $item, $key) use ($ignoredColumns, &$data) { |
|
| 436 | + array_walk($data, function(array $item, $key) use ($ignoredColumns, &$data) { |
|
| 437 | 437 | $data[$key] = array_diff_key($data[$key], array_flip($ignoredColumns)); |
| 438 | 438 | }); |
| 439 | 439 | } |
@@ -447,7 +447,7 @@ discard block |
||
| 447 | 447 | { |
| 448 | 448 | $resultData = str_getcsv($content, "\n"); |
| 449 | 449 | $header = str_getcsv(array_shift($resultData)); |
| 450 | - array_walk($resultData, function (&$row) use ($header, $resultData) { |
|
| 450 | + array_walk($resultData, function(&$row) use ($header, $resultData) { |
|
| 451 | 451 | $row = array_combine($header, str_getcsv($row)); |
| 452 | 452 | $resultData[] = $row; |
| 453 | 453 | }); |