@@ -9,10 +9,10 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * @return $this |
| 11 | 11 | */ |
| 12 | - public function setSqlSafeUpdates(); |
|
| 12 | + public function setSqlSafeUpdates (); |
|
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * @return $this |
| 16 | 16 | */ |
| 17 | - public function unsetSqlSafeUpdates(); |
|
| 17 | + public function unsetSqlSafeUpdates (); |
|
| 18 | 18 | } |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | * @return string|EntityInterface |
| 24 | 24 | * @throws RepositoryException|\Exception |
| 25 | 25 | */ |
| 26 | - protected function insert(QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 26 | + protected function insert (QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 27 | 27 | { |
| 28 | 28 | if (!($entity = $queryBuilder->getEntity())) { |
| 29 | 29 | throw new RepositoryException( |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * |
| 68 | 68 | * @return string|EntityInterface |
| 69 | 69 | */ |
| 70 | - protected function insertIgnore(QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 70 | + protected function insertIgnore (QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 71 | 71 | { |
| 72 | 72 | return $this->insert($queryBuilder, $toString); |
| 73 | 73 | } |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * |
| 79 | 79 | * @return string|EntityInterface |
| 80 | 80 | */ |
| 81 | - protected function replace(QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 81 | + protected function replace (QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 82 | 82 | { |
| 83 | 83 | return $this->insert($queryBuilder, $toString); |
| 84 | 84 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * @return null|string |
| 91 | 91 | * @throws \Exception |
| 92 | 92 | */ |
| 93 | - protected function findOne(QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 93 | + protected function findOne (QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 94 | 94 | { |
| 95 | 95 | if (true === $toString) { |
| 96 | 96 | return $queryBuilder->toString(); |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | throw $e; |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | - return $statement->fetch() ? : null; |
|
| 114 | + return $statement->fetch() ?: null; |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | /** |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * @return array|string |
| 122 | 122 | * @throws \Exception |
| 123 | 123 | */ |
| 124 | - protected function find(QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 124 | + protected function find (QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 125 | 125 | { |
| 126 | 126 | if (true === $toString) { |
| 127 | 127 | return $queryBuilder->toString(); |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * @return null|bool|EntityInterface|string |
| 153 | 153 | * @throws \Exception |
| 154 | 154 | */ |
| 155 | - protected function update(QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 155 | + protected function update (QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 156 | 156 | { |
| 157 | 157 | if (($entity = $queryBuilder->getEntity()) && !$this->addEntityUpdateQuery($queryBuilder, $entity, $toString)) { |
| 158 | 158 | return $entity; |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | * |
| 187 | 187 | * @return null|string|bool|EntityInterface |
| 188 | 188 | */ |
| 189 | - protected function updateIgnore(QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 189 | + protected function updateIgnore (QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 190 | 190 | { |
| 191 | 191 | return $this->update($queryBuilder, $toString); |
| 192 | 192 | } |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | * @return bool|string |
| 199 | 199 | * @throws \Exception |
| 200 | 200 | */ |
| 201 | - protected function delete(QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 201 | + protected function delete (QueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 202 | 202 | { |
| 203 | 203 | if (($entity = $queryBuilder->getEntity()) && !$this->addEntityDeleteQuery($queryBuilder, $entity)) { |
| 204 | 204 | return false; |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | * @return int |
| 234 | 234 | * @throws RepositoryException|\Exception |
| 235 | 235 | */ |
| 236 | - protected function count(BaseQueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 236 | + protected function count (BaseQueryBuilderInterface $queryBuilder, bool $toString = false) |
|
| 237 | 237 | { |
| 238 | 238 | if (CommandEnum::SELECT !== $queryBuilder->commandData()) { |
| 239 | 239 | throw new RepositoryException(\sprintf( |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | * |
| 277 | 277 | * @return QueryBuilderInterface |
| 278 | 278 | */ |
| 279 | - protected function createQueryBuilder(?EntityInterface $entity = null): BaseQueryBuilderInterface |
|
| 279 | + protected function createQueryBuilder (?EntityInterface $entity = null): BaseQueryBuilderInterface |
|
| 280 | 280 | { |
| 281 | 281 | return (new QueryBuilder($this->createRepositoryCallClosure(), $entity)) |
| 282 | 282 | ->column(\sprintf('%s.*', $this->getEntityClassConstant(WriterInterface::CLASS_CONSTANT_TABLE_NAME))) |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | * |
| 291 | 291 | * @return $this |
| 292 | 292 | */ |
| 293 | - protected function addEntityInsertQuery(QueryBuilderInterface $queryBuilder, EntityInterface $entity) |
|
| 293 | + protected function addEntityInsertQuery (QueryBuilderInterface $queryBuilder, EntityInterface $entity) |
|
| 294 | 294 | { |
| 295 | 295 | $entityColumns = $entity->columns(); |
| 296 | 296 | $entityData = &$entity->data(); |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | * |
| 312 | 312 | * @return bool |
| 313 | 313 | */ |
| 314 | - protected function addEntityUpdateQuery( |
|
| 314 | + protected function addEntityUpdateQuery ( |
|
| 315 | 315 | QueryBuilderInterface $queryBuilder, |
| 316 | 316 | EntityInterface $entity, |
| 317 | 317 | bool $toString |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | * |
| 366 | 366 | * @return bool |
| 367 | 367 | */ |
| 368 | - protected function addEntityDeleteQuery(QueryBuilderInterface $queryBuilder, EntityInterface $entity) |
|
| 368 | + protected function addEntityDeleteQuery (QueryBuilderInterface $queryBuilder, EntityInterface $entity) |
|
| 369 | 369 | { |
| 370 | 370 | $performDelete = false; |
| 371 | 371 | $entityData = $entity->data(); |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | * |
| 414 | 414 | * @return $this |
| 415 | 415 | */ |
| 416 | - protected function addPaginateQuery( |
|
| 416 | + protected function addPaginateQuery ( |
|
| 417 | 417 | BaseQueryBuilderInterface $queryBuilder, |
| 418 | 418 | int $pageSize, |
| 419 | 419 | int $currentPage |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | * |
| 430 | 430 | * @return EntityInterface[] |
| 431 | 431 | */ |
| 432 | - protected function getPaginateResult(BaseQueryBuilderInterface $queryBuilder, bool $toString = false): array |
|
| 432 | + protected function getPaginateResult (BaseQueryBuilderInterface $queryBuilder, bool $toString = false): array |
|
| 433 | 433 | { |
| 434 | 434 | return $queryBuilder->find($toString); |
| 435 | 435 | } |
@@ -12,59 +12,59 @@ |
||
| 12 | 12 | * |
| 13 | 13 | * @return string|EntityInterface |
| 14 | 14 | */ |
| 15 | - public function insert(bool $toString = false); |
|
| 15 | + public function insert (bool $toString = false); |
|
| 16 | 16 | /** |
| 17 | 17 | * @param bool $toString |
| 18 | 18 | * |
| 19 | 19 | * @return string|EntityInterface |
| 20 | 20 | */ |
| 21 | - public function insertIgnore(bool $toString = false); |
|
| 21 | + public function insertIgnore (bool $toString = false); |
|
| 22 | 22 | /** |
| 23 | 23 | * @param bool $toString |
| 24 | 24 | * |
| 25 | 25 | * @return string|EntityInterface |
| 26 | 26 | */ |
| 27 | - public function replace(bool $toString = false); |
|
| 27 | + public function replace (bool $toString = false); |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * @param bool $toString |
| 31 | 31 | * |
| 32 | 32 | * @return string|EntityInterface[] |
| 33 | 33 | */ |
| 34 | - public function find(bool $toString = false); |
|
| 34 | + public function find (bool $toString = false); |
|
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * @param bool $toString |
| 38 | 38 | * |
| 39 | 39 | * @return null|string|EntityInterface |
| 40 | 40 | */ |
| 41 | - public function findOne(bool $toString = false); |
|
| 41 | + public function findOne (bool $toString = false); |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * @param bool $toString |
| 45 | 45 | * |
| 46 | 46 | * @return bool|string|EntityInterface |
| 47 | 47 | */ |
| 48 | - public function update(bool $toString = false); |
|
| 48 | + public function update (bool $toString = false); |
|
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * @param bool $toString |
| 52 | 52 | * |
| 53 | 53 | * @return bool|string|EntityInterface |
| 54 | 54 | */ |
| 55 | - public function updateIgnore(bool $toString = false); |
|
| 55 | + public function updateIgnore (bool $toString = false); |
|
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * @param bool $toString |
| 59 | 59 | * |
| 60 | 60 | * @return string|bool |
| 61 | 61 | */ |
| 62 | - public function delete(bool $toString = false); |
|
| 62 | + public function delete (bool $toString = false); |
|
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * @param bool $toString |
| 66 | 66 | * |
| 67 | 67 | * @return int |
| 68 | 68 | */ |
| 69 | - public function count(bool $toString = false); |
|
| 69 | + public function count (bool $toString = false); |
|
| 70 | 70 | } |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | * @param \Closure $repositoryCallback |
| 24 | 24 | * @param EntityInterface|null $entity |
| 25 | 25 | */ |
| 26 | - public function __construct(\Closure $repositoryCallback, EntityInterface $entity = null) |
|
| 26 | + public function __construct (\Closure $repositoryCallback, EntityInterface $entity = null) |
|
| 27 | 27 | { |
| 28 | 28 | $this->repositoryCallback = $repositoryCallback; |
| 29 | 29 | $this->entity = $entity; |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * |
| 35 | 35 | * @return string|EntityInterface |
| 36 | 36 | */ |
| 37 | - public function insert(bool $toString = false) |
|
| 37 | + public function insert (bool $toString = false) |
|
| 38 | 38 | { |
| 39 | 39 | $this->command(CommandEnum::INSERT_INTO); |
| 40 | 40 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * |
| 47 | 47 | * @return string|EntityInterface |
| 48 | 48 | */ |
| 49 | - public function insertIgnore(bool $toString = false) |
|
| 49 | + public function insertIgnore (bool $toString = false) |
|
| 50 | 50 | { |
| 51 | 51 | $this->command(CommandEnum::INSERT_IGNORE_INTO); |
| 52 | 52 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * |
| 59 | 59 | * @return string|EntityInterface |
| 60 | 60 | */ |
| 61 | - public function replace(bool $toString = false) |
|
| 61 | + public function replace (bool $toString = false) |
|
| 62 | 62 | { |
| 63 | 63 | $this->command(CommandEnum::REPLACE_INTO); |
| 64 | 64 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * |
| 71 | 71 | * @return string|EntityInterface[] |
| 72 | 72 | */ |
| 73 | - public function find(bool $toString = false) |
|
| 73 | + public function find (bool $toString = false) |
|
| 74 | 74 | { |
| 75 | 75 | $this->command(CommandEnum::SELECT); |
| 76 | 76 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * |
| 83 | 83 | * @return null|string|EntityInterface |
| 84 | 84 | */ |
| 85 | - public function findOne(bool $toString = false) |
|
| 85 | + public function findOne (bool $toString = false) |
|
| 86 | 86 | { |
| 87 | 87 | $this->command(CommandEnum::SELECT); |
| 88 | 88 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * |
| 95 | 95 | * @return null|string|bool|EntityInterface |
| 96 | 96 | */ |
| 97 | - public function update(bool $toString = false) |
|
| 97 | + public function update (bool $toString = false) |
|
| 98 | 98 | { |
| 99 | 99 | $this->command(CommandEnum::UPDATE); |
| 100 | 100 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | * |
| 107 | 107 | * @return null|string|bool|EntityInterface |
| 108 | 108 | */ |
| 109 | - public function updateIgnore(bool $toString = false) |
|
| 109 | + public function updateIgnore (bool $toString = false) |
|
| 110 | 110 | { |
| 111 | 111 | $this->command(CommandEnum::UPDATE_IGNORE); |
| 112 | 112 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * |
| 119 | 119 | * @return string|bool |
| 120 | 120 | */ |
| 121 | - public function delete(bool $toString = false) |
|
| 121 | + public function delete (bool $toString = false) |
|
| 122 | 122 | { |
| 123 | 123 | $this->command(CommandEnum::DELETE); |
| 124 | 124 | |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | * |
| 131 | 131 | * @return int |
| 132 | 132 | */ |
| 133 | - public function count(bool $toString = false) |
|
| 133 | + public function count (bool $toString = false) |
|
| 134 | 134 | { |
| 135 | 135 | $this->command(CommandEnum::SELECT); |
| 136 | 136 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * @return string |
| 142 | 142 | * @throws QueryBuilderException |
| 143 | 143 | */ |
| 144 | - public function buildQuery(): string |
|
| 144 | + public function buildQuery (): string |
|
| 145 | 145 | { |
| 146 | 146 | if (empty($this->command)) { |
| 147 | 147 | throw new QueryBuilderException('Could not build query, as there is no command provided!'); |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | /** |
| 240 | 240 | * @return null|EntityInterface |
| 241 | 241 | */ |
| 242 | - public function getEntity(): ?EntityInterface |
|
| 242 | + public function getEntity (): ?EntityInterface |
|
| 243 | 243 | { |
| 244 | 244 | return $this->entity; |
| 245 | 245 | } |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | /** |
| 248 | 248 | * @return string |
| 249 | 249 | */ |
| 250 | - public function toString(): string |
|
| 250 | + public function toString (): string |
|
| 251 | 251 | { |
| 252 | 252 | return $this->generateSqlExecuteString($this->buildQuery()); |
| 253 | 253 | } |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | * |
| 258 | 258 | * @return string |
| 259 | 259 | */ |
| 260 | - protected function generateSqlExecuteString(string $query): string |
|
| 260 | + protected function generateSqlExecuteString (string $query): string |
|
| 261 | 261 | { |
| 262 | 262 | foreach ($this->bind as $bindName => $bindValue) { |
| 263 | 263 | $query = \preg_replace( |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * @return $this |
| 20 | 20 | * @throws QueryBuilderException |
| 21 | 21 | */ |
| 22 | - public function where(string $condition, array $bind = []) |
|
| 22 | + public function where (string $condition, array $bind = []) |
|
| 23 | 23 | { |
| 24 | 24 | if (empty($condition)) { |
| 25 | 25 | throw new QueryBuilderException('You must pass $condition name to where method!'); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * |
| 41 | 41 | * @return $this |
| 42 | 42 | */ |
| 43 | - public function whereIn(string $column, array $params = []) |
|
| 43 | + public function whereIn (string $column, array $params = []) |
|
| 44 | 44 | { |
| 45 | 45 | if (!empty($params)) { |
| 46 | 46 | $bind = []; |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * |
| 68 | 68 | * @return $this |
| 69 | 69 | */ |
| 70 | - public function whereNotIn(string $column, array $params = []) |
|
| 70 | + public function whereNotIn (string $column, array $params = []) |
|
| 71 | 71 | { |
| 72 | 72 | if (!empty($params)) { |
| 73 | 73 | $bind = []; |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | /** |
| 92 | 92 | * @return null|string |
| 93 | 93 | */ |
| 94 | - protected function buildWhereQueryPart(): ?string |
|
| 94 | + protected function buildWhereQueryPart (): ?string |
|
| 95 | 95 | { |
| 96 | 96 | return empty($this->where) |
| 97 | 97 | ? null |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * @return $this |
| 22 | 22 | * @throws QueryBuilderException |
| 23 | 23 | */ |
| 24 | - public function join(string $join, string $tableName, string $onCondition, array $bind = []) |
|
| 24 | + public function join (string $join, string $tableName, string $onCondition, array $bind = []) |
|
| 25 | 25 | { |
| 26 | 26 | if (!\in_array($join, JoinEnum::JOINS)) { |
| 27 | 27 | throw new QueryBuilderException(\sprintf('$join "%s" is not a valid join type', $join)); |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * @return $this |
| 59 | 59 | * @throws QueryBuilderException |
| 60 | 60 | */ |
| 61 | - public function joinAs(string $join, string $tableName, string $alias, string $onCondition, array $bind = []) |
|
| 61 | + public function joinAs (string $join, string $tableName, string $alias, string $onCondition, array $bind = []) |
|
| 62 | 62 | { |
| 63 | 63 | if (empty($alias)) { |
| 64 | 64 | throw new QueryBuilderException('You must pass $alias name to join method!'); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * |
| 75 | 75 | * @return $this |
| 76 | 76 | */ |
| 77 | - public function innerJoin(string $tableName, string $onCondition, array $bind = []) |
|
| 77 | + public function innerJoin (string $tableName, string $onCondition, array $bind = []) |
|
| 78 | 78 | { |
| 79 | 79 | return $this->join(JoinEnum::INNER_JOIN, $tableName, $onCondition, $bind); |
| 80 | 80 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * |
| 88 | 88 | * @return $this |
| 89 | 89 | */ |
| 90 | - public function innerJoinAs(string $tableName, string $alias, string $onCondition, array $bind = []) |
|
| 90 | + public function innerJoinAs (string $tableName, string $alias, string $onCondition, array $bind = []) |
|
| 91 | 91 | { |
| 92 | 92 | return $this->joinAs(JoinEnum::INNER_JOIN, $tableName, $alias, $onCondition, $bind); |
| 93 | 93 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * |
| 100 | 100 | * @return $this |
| 101 | 101 | */ |
| 102 | - public function leftJoin(string $tableName, string $onCondition, array $bind = []) |
|
| 102 | + public function leftJoin (string $tableName, string $onCondition, array $bind = []) |
|
| 103 | 103 | { |
| 104 | 104 | return $this->join(JoinEnum::LEFT_JOIN, $tableName, $onCondition, $bind); |
| 105 | 105 | } |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | * |
| 113 | 113 | * @return $this |
| 114 | 114 | */ |
| 115 | - public function leftJoinAs(string $tableName, string $alias, string $onCondition, array $bind = []) |
|
| 115 | + public function leftJoinAs (string $tableName, string $alias, string $onCondition, array $bind = []) |
|
| 116 | 116 | { |
| 117 | 117 | return $this->joinAs(JoinEnum::LEFT_JOIN, $tableName, $alias, $onCondition, $bind); |
| 118 | 118 | } |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * |
| 125 | 125 | * @return $this |
| 126 | 126 | */ |
| 127 | - public function rightJoin(string $tableName, string $onCondition, array $bind = []) |
|
| 127 | + public function rightJoin (string $tableName, string $onCondition, array $bind = []) |
|
| 128 | 128 | { |
| 129 | 129 | return $this->join(JoinEnum::RIGHT_JOIN, $tableName, $onCondition, $bind); |
| 130 | 130 | } |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | * |
| 138 | 138 | * @return $this |
| 139 | 139 | */ |
| 140 | - public function rightJoinAs(string $tableName, string $alias, string $onCondition, array $bind = []) |
|
| 140 | + public function rightJoinAs (string $tableName, string $alias, string $onCondition, array $bind = []) |
|
| 141 | 141 | { |
| 142 | 142 | return $this->joinAs(JoinEnum::RIGHT_JOIN, $tableName, $alias, $onCondition, $bind); |
| 143 | 143 | } |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | * |
| 150 | 150 | * @return $this |
| 151 | 151 | */ |
| 152 | - public function crossJoin(string $tableName, string $onCondition, array $bind = []) |
|
| 152 | + public function crossJoin (string $tableName, string $onCondition, array $bind = []) |
|
| 153 | 153 | { |
| 154 | 154 | return $this->join(JoinEnum::CROSS_JOIN, $tableName, $onCondition, $bind); |
| 155 | 155 | } |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | * |
| 163 | 163 | * @return $this |
| 164 | 164 | */ |
| 165 | - public function crossJoinAs(string $tableName, string $alias, string $onCondition, array $bind = []) |
|
| 165 | + public function crossJoinAs (string $tableName, string $alias, string $onCondition, array $bind = []) |
|
| 166 | 166 | { |
| 167 | 167 | return $this->joinAs(JoinEnum::CROSS_JOIN, $tableName, $alias, $onCondition, $bind); |
| 168 | 168 | } |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | * |
| 175 | 175 | * @return $this |
| 176 | 176 | */ |
| 177 | - public function fullOuterJoin(string $tableName, string $onCondition, array $bind = []) |
|
| 177 | + public function fullOuterJoin (string $tableName, string $onCondition, array $bind = []) |
|
| 178 | 178 | { |
| 179 | 179 | return $this->join(JoinEnum::FULL_OUTER_JOIN, $tableName, $onCondition, $bind); |
| 180 | 180 | } |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | * |
| 188 | 188 | * @return $this |
| 189 | 189 | */ |
| 190 | - public function fullOuterJoinAs(string $tableName, string $alias, string $onCondition, array $bind = []) |
|
| 190 | + public function fullOuterJoinAs (string $tableName, string $alias, string $onCondition, array $bind = []) |
|
| 191 | 191 | { |
| 192 | 192 | return $this->joinAs(JoinEnum::FULL_OUTER_JOIN, $tableName, $alias, $onCondition, $bind); |
| 193 | 193 | } |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | /** |
| 196 | 196 | * @return null|string |
| 197 | 197 | */ |
| 198 | - protected function buildJoinQueryPart(): ?string |
|
| 198 | + protected function buildJoinQueryPart (): ?string |
|
| 199 | 199 | { |
| 200 | 200 | return empty($this->join) ? null : \implode(' ', $this->join); |
| 201 | 201 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | * |
| 15 | 15 | * @return $this |
| 16 | 16 | */ |
| 17 | - public function bind(array $bind = []) |
|
| 17 | + public function bind (array $bind = []) |
|
| 18 | 18 | { |
| 19 | 19 | $this->bind = \array_merge($this->bind, $bind); |
| 20 | 20 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * @return array |
| 26 | 26 | */ |
| 27 | - public function bindData(): array |
|
| 27 | + public function bindData (): array |
|
| 28 | 28 | { |
| 29 | 29 | return $this->bind; |
| 30 | 30 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | * |
| 15 | 15 | * @return $this |
| 16 | 16 | */ |
| 17 | - public function command(string $command) |
|
| 17 | + public function command (string $command) |
|
| 18 | 18 | { |
| 19 | 19 | $this->command = $command; |
| 20 | 20 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * @return string |
| 26 | 26 | */ |
| 27 | - public function commandData(): string |
|
| 27 | + public function commandData (): string |
|
| 28 | 28 | { |
| 29 | 29 | return $this->command; |
| 30 | 30 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * @return string |
| 34 | 34 | */ |
| 35 | - protected function buildCommandQueryPart(): string |
|
| 35 | + protected function buildCommandQueryPart (): string |
|
| 36 | 36 | { |
| 37 | 37 | return $this->command; |
| 38 | 38 | } |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * @throws QueryBuilderException |
| 21 | 21 | * @return $this |
| 22 | 22 | */ |
| 23 | - public function orderBy($orderBy, string $keyword = KeywordEnum::ASC) |
|
| 23 | + public function orderBy ($orderBy, string $keyword = KeywordEnum::ASC) |
|
| 24 | 24 | { |
| 25 | 25 | if (empty($orderBy)) { |
| 26 | 26 | throw new QueryBuilderException('You must pass $orderBy to orderBy method!'); |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | /** |
| 45 | 45 | * @return null|string |
| 46 | 46 | */ |
| 47 | - protected function buildOrderByQueryPart(): ?string |
|
| 47 | + protected function buildOrderByQueryPart (): ?string |
|
| 48 | 48 | { |
| 49 | 49 | return empty($this->orderBy) |
| 50 | 50 | ? null |