@@ -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 | |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | public function getNumberOfUnreadCommentsForFolder($folderId, IUser $user) { |
| 414 | 414 | $qb = $this->dbConn->getQueryBuilder(); |
| 415 | 415 | $query = $qb->select('fileid', $qb->createFunction( |
| 416 | - 'COUNT(' . $qb->getColumnName('c.id') . ')') |
|
| 416 | + 'COUNT('.$qb->getColumnName('c.id').')') |
|
| 417 | 417 | )->from('comments', 'c') |
| 418 | 418 | ->innerJoin('c', 'filecache', 'f', $qb->expr()->andX( |
| 419 | 419 | $qb->expr()->eq('c.object_type', $qb->createNamedParameter('files')), |
@@ -432,8 +432,8 @@ discard block |
||
| 432 | 432 | ->groupBy('f.fileid'); |
| 433 | 433 | |
| 434 | 434 | $resultStatement = $query->execute(); |
| 435 | - return array_map(function ($count) { |
|
| 436 | - return (int)$count; |
|
| 435 | + return array_map(function($count) { |
|
| 436 | + return (int) $count; |
|
| 437 | 437 | }, $resultStatement->fetchAll(\PDO::FETCH_KEY_PAIR)); |
| 438 | 438 | } |
| 439 | 439 | |
@@ -540,7 +540,7 @@ discard block |
||
| 540 | 540 | * @param IComment $comment |
| 541 | 541 | * @return bool |
| 542 | 542 | */ |
| 543 | - protected function insert(IComment &$comment) { |
|
| 543 | + protected function insert(IComment & $comment) { |
|
| 544 | 544 | $qb = $this->dbConn->getQueryBuilder(); |
| 545 | 545 | $affectedRows = $qb |
| 546 | 546 | ->insert('comments') |
@@ -839,7 +839,7 @@ discard block |
||
| 839 | 839 | if (!isset($this->displayNameResolvers[$type])) { |
| 840 | 840 | throw new \OutOfBoundsException('No Displayname resolver for this type registered'); |
| 841 | 841 | } |
| 842 | - return (string)$this->displayNameResolvers[$type]($id); |
|
| 842 | + return (string) $this->displayNameResolvers[$type]($id); |
|
| 843 | 843 | } |
| 844 | 844 | |
| 845 | 845 | /** |