@@ -73,9 +73,9 @@ |
||
| 73 | 73 | return $string; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - return '`' . $alias . '`.`' . $columnName . '`'; |
|
| 76 | + return '`'.$alias.'`.`'.$columnName.'`'; |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - return '`' . $string . '`'; |
|
| 79 | + return '`'.$string.'`'; |
|
| 80 | 80 | } |
| 81 | 81 | } |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | !is_string($type) || empty($type) |
| 192 | 192 | || !is_string($id) || empty($id) |
| 193 | 193 | ) { |
| 194 | - throw new \InvalidArgumentException($role . ' parameters must be string and not empty'); |
|
| 194 | + throw new \InvalidArgumentException($role.' parameters must be string and not empty'); |
|
| 195 | 195 | } |
| 196 | 196 | } |
| 197 | 197 | |
@@ -414,12 +414,12 @@ discard block |
||
| 414 | 414 | $qb = $this->dbConn->getQueryBuilder(); |
| 415 | 415 | $castAs = ($this->dbConn->getDatabasePlatform() instanceof MySqlPlatform) ? 'unsigned integer' : 'int'; |
| 416 | 416 | $query = $qb->select('fileid', $qb->createFunction( |
| 417 | - 'COUNT(' . $qb->getColumnName('c.id') . ')') |
|
| 417 | + 'COUNT('.$qb->getColumnName('c.id').')') |
|
| 418 | 418 | )->from('comments', 'c') |
| 419 | 419 | ->innerJoin('c', 'filecache', 'f', $qb->expr()->andX( |
| 420 | 420 | $qb->expr()->eq('c.object_type', $qb->createNamedParameter('files')), |
| 421 | 421 | $qb->expr()->eq('f.fileid', $qb->createFunction( |
| 422 | - 'cast(' . $qb->getColumnName('c.object_id') . ' as ' . $castAs . ')' |
|
| 422 | + 'cast('.$qb->getColumnName('c.object_id').' as '.$castAs.')' |
|
| 423 | 423 | )) |
| 424 | 424 | )) |
| 425 | 425 | ->leftJoin('c', 'comments_read_markers', 'm', $qb->expr()->andX( |
@@ -435,8 +435,8 @@ discard block |
||
| 435 | 435 | ->groupBy('f.fileid'); |
| 436 | 436 | |
| 437 | 437 | $resultStatement = $query->execute(); |
| 438 | - return array_map(function ($count) { |
|
| 439 | - return (int)$count; |
|
| 438 | + return array_map(function($count) { |
|
| 439 | + return (int) $count; |
|
| 440 | 440 | }, $resultStatement->fetchAll(\PDO::FETCH_KEY_PAIR)); |
| 441 | 441 | } |
| 442 | 442 | |
@@ -543,7 +543,7 @@ discard block |
||
| 543 | 543 | * @param IComment $comment |
| 544 | 544 | * @return bool |
| 545 | 545 | */ |
| 546 | - protected function insert(IComment &$comment) { |
|
| 546 | + protected function insert(IComment & $comment) { |
|
| 547 | 547 | $qb = $this->dbConn->getQueryBuilder(); |
| 548 | 548 | $affectedRows = $qb |
| 549 | 549 | ->insert('comments') |
@@ -842,7 +842,7 @@ discard block |
||
| 842 | 842 | if (!isset($this->displayNameResolvers[$type])) { |
| 843 | 843 | throw new \OutOfBoundsException('No Displayname resolver for this type registered'); |
| 844 | 844 | } |
| 845 | - return (string)$this->displayNameResolvers[$type]($id); |
|
| 845 | + return (string) $this->displayNameResolvers[$type]($id); |
|
| 846 | 846 | } |
| 847 | 847 | |
| 848 | 848 | /** |