@@ -148,9 +148,9 @@ discard block |
||
| 148 | 148 | */ |
| 149 | 149 | protected function __construct(Connection $conn, Configuration $config, EventManager $eventManager) |
| 150 | 150 | { |
| 151 | - $this->conn = $conn; |
|
| 152 | - $this->config = $config; |
|
| 153 | - $this->eventManager = $eventManager; |
|
| 151 | + $this->conn = $conn; |
|
| 152 | + $this->config = $config; |
|
| 153 | + $this->eventManager = $eventManager; |
|
| 154 | 154 | |
| 155 | 155 | $metadataFactoryClassName = $config->getClassMetadataFactoryName(); |
| 156 | 156 | |
@@ -225,8 +225,8 @@ discard block |
||
| 225 | 225 | */ |
| 226 | 226 | public function transactional($func) |
| 227 | 227 | { |
| 228 | - if (!is_callable($func)) { |
|
| 229 | - throw new \InvalidArgumentException('Expected argument of type "callable", got "' . gettype($func) . '"'); |
|
| 228 | + if ( ! is_callable($func)) { |
|
| 229 | + throw new \InvalidArgumentException('Expected argument of type "callable", got "'.gettype($func).'"'); |
|
| 230 | 230 | } |
| 231 | 231 | |
| 232 | 232 | $this->conn->beginTransaction(); |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | { |
| 291 | 291 | $query = new Query($this); |
| 292 | 292 | |
| 293 | - if (!empty($dql)) { |
|
| 293 | + if ( ! empty($dql)) { |
|
| 294 | 294 | $query->setDQL($dql); |
| 295 | 295 | } |
| 296 | 296 | |
@@ -762,7 +762,7 @@ discard block |
||
| 762 | 762 | */ |
| 763 | 763 | public function isOpen() |
| 764 | 764 | { |
| 765 | - return (!$this->closed); |
|
| 765 | + return ( ! $this->closed); |
|
| 766 | 766 | } |
| 767 | 767 | |
| 768 | 768 | /** |
@@ -873,7 +873,7 @@ discard block |
||
| 873 | 873 | sprintf( |
| 874 | 874 | 'Invalid $connection argument of type %s given%s.', |
| 875 | 875 | is_object($connection) ? get_class($connection) : gettype($connection), |
| 876 | - is_object($connection) ? '' : ': "' . $connection . '"' |
|
| 876 | + is_object($connection) ? '' : ': "'.$connection.'"' |
|
| 877 | 877 | ) |
| 878 | 878 | ); |
| 879 | 879 | } |
@@ -923,13 +923,13 @@ discard block |
||
| 923 | 923 | { |
| 924 | 924 | switch ($lockMode) { |
| 925 | 925 | case LockMode::OPTIMISTIC: |
| 926 | - if (!$class->isVersioned) { |
|
| 926 | + if ( ! $class->isVersioned) { |
|
| 927 | 927 | throw OptimisticLockException::notVersioned($class->name); |
| 928 | 928 | } |
| 929 | 929 | break; |
| 930 | 930 | case LockMode::PESSIMISTIC_READ: |
| 931 | 931 | case LockMode::PESSIMISTIC_WRITE: |
| 932 | - if (!$this->getConnection()->isTransactionActive()) { |
|
| 932 | + if ( ! $this->getConnection()->isTransactionActive()) { |
|
| 933 | 933 | throw TransactionRequiredException::transactionRequired(); |
| 934 | 934 | } |
| 935 | 935 | } |