@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | |
| 344 | 344 | $this->operationsByScope[$scopeContext->getHash()] = []; |
| 345 | 345 | while ($opId = $result->fetchColumn(0)) { |
| 346 | - $this->operationsByScope[$scopeContext->getHash()][] = (int)$opId; |
|
| 346 | + $this->operationsByScope[$scopeContext->getHash()][] = (int) $opId; |
|
| 347 | 347 | } |
| 348 | 348 | $result->closeCursor(); |
| 349 | 349 | |
@@ -415,12 +415,12 @@ discard block |
||
| 415 | 415 | $query = $this->connection->getQueryBuilder(); |
| 416 | 416 | try { |
| 417 | 417 | $this->connection->beginTransaction(); |
| 418 | - $result = (bool)$query->delete('flow_operations') |
|
| 418 | + $result = (bool) $query->delete('flow_operations') |
|
| 419 | 419 | ->where($query->expr()->eq('id', $query->createNamedParameter($id))) |
| 420 | 420 | ->execute(); |
| 421 | 421 | if ($result) { |
| 422 | 422 | $qb = $this->connection->getQueryBuilder(); |
| 423 | - $result &= (bool)$qb->delete('flow_operations_scope') |
|
| 423 | + $result &= (bool) $qb->delete('flow_operations_scope') |
|
| 424 | 424 | ->where($qb->expr()->eq('operation_id', $qb->createNamedParameter($id))) |
| 425 | 425 | ->execute(); |
| 426 | 426 | } |
@@ -493,7 +493,7 @@ discard block |
||
| 493 | 493 | throw new \UnexpectedValueException($this->l->t('At least one check needs to be provided')); |
| 494 | 494 | } |
| 495 | 495 | |
| 496 | - if (strlen((string)$operation) > IManager::MAX_OPERATION_VALUE_BYTES) { |
|
| 496 | + if (strlen((string) $operation) > IManager::MAX_OPERATION_VALUE_BYTES) { |
|
| 497 | 497 | throw new \UnexpectedValueException($this->l->t('The provided operation data is too long')); |
| 498 | 498 | } |
| 499 | 499 | |
@@ -521,7 +521,7 @@ discard block |
||
| 521 | 521 | throw new \UnexpectedValueException($this->l->t('Check %s is not allowed with this entity', [$class])); |
| 522 | 522 | } |
| 523 | 523 | |
| 524 | - if (strlen((string)$check['value']) > IManager::MAX_CHECK_VALUE_BYTES) { |
|
| 524 | + if (strlen((string) $check['value']) > IManager::MAX_CHECK_VALUE_BYTES) { |
|
| 525 | 525 | throw new \UnexpectedValueException($this->l->t('The provided check value is too long')); |
| 526 | 526 | } |
| 527 | 527 | |
@@ -577,7 +577,7 @@ discard block |
||
| 577 | 577 | * @return int Check unique ID |
| 578 | 578 | */ |
| 579 | 579 | protected function addCheck($class, $operator, $value) { |
| 580 | - $hash = md5($class . '::' . $operator . '::' . $value); |
|
| 580 | + $hash = md5($class.'::'.$operator.'::'.$value); |
|
| 581 | 581 | |
| 582 | 582 | $query = $this->connection->getQueryBuilder(); |
| 583 | 583 | $query->select('id') |