@@ -69,7 +69,7 @@ |
||
| 69 | 69 | $result->closeCursor(); |
| 70 | 70 | |
| 71 | 71 | if ($entriesUpdated > 0) { |
| 72 | - $output->info($entriesUpdated . ' mounts updated'); |
|
| 72 | + $output->info($entriesUpdated.' mounts updated'); |
|
| 73 | 73 | return; |
| 74 | 74 | } |
| 75 | 75 | |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | private function updateMimetypes($updatedMimetypes) { |
| 136 | 136 | if (empty($this->folderMimeTypeId)) { |
| 137 | 137 | $result = \OC_DB::executeAudited(self::getIdStmt(), array('httpd/unix-directory')); |
| 138 | - $this->folderMimeTypeId = (int)$result->fetchOne(); |
|
| 138 | + $this->folderMimeTypeId = (int) $result->fetchOne(); |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | foreach ($updatedMimetypes as $extension => $mimetype) { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | $mimetypeId = $result->fetchOne(); |
| 153 | 153 | |
| 154 | 154 | // change mimetype for files with x extension |
| 155 | - \OC_DB::executeAudited(self::updateByNameStmt(), array($mimetypeId, $this->folderMimeTypeId, $mimetypeId, '%.' . $extension)); |
|
| 155 | + \OC_DB::executeAudited(self::updateByNameStmt(), array($mimetypeId, $this->folderMimeTypeId, $mimetypeId, '%.'.$extension)); |
|
| 156 | 156 | } |
| 157 | 157 | } |
| 158 | 158 | |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | $result->closeCursor(); |
| 94 | 94 | |
| 95 | 95 | if ($deletedEntries) { |
| 96 | - $output->info('Removed ' . $deletedEntries . ' shares where user is not a member of the group anymore'); |
|
| 96 | + $output->info('Removed '.$deletedEntries.' shares where user is not a member of the group anymore'); |
|
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | } |
| 34 | 34 | if ($table !== null) { |
| 35 | 35 | $suffix = '_SEQ'; |
| 36 | - $table = '"' . $table . $suffix . '"'; |
|
| 36 | + $table = '"'.$table.$suffix.'"'; |
|
| 37 | 37 | } |
| 38 | 38 | return $this->conn->realLastInsertId($table); |
| 39 | 39 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | /** |
| 38 | 38 | * {@inheritDoc} |
| 39 | 39 | */ |
| 40 | - protected function _getCreateTableSQL($name, array $columns, array $options = array()){ |
|
| 40 | + protected function _getCreateTableSQL($name, array $columns, array $options = array()) { |
|
| 41 | 41 | // if auto increment is set the column is already defined as primary key |
| 42 | 42 | foreach ($columns as $column) { |
| 43 | 43 | if (!empty($column['autoincrement'])) { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | use OCP\DB\QueryBuilder\ILiteral; |
| 26 | 26 | |
| 27 | -class Literal implements ILiteral{ |
|
| 27 | +class Literal implements ILiteral { |
|
| 28 | 28 | /** @var mixed */ |
| 29 | 29 | protected $literal; |
| 30 | 30 | |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | public function iLike($x, $y, $type = null) { |
| 49 | 49 | $x = $this->helper->quoteColumnName($x); |
| 50 | 50 | $y = $this->helper->quoteColumnName($y); |
| 51 | - return $this->expressionBuilder->comparison($x, ' COLLATE ' . $this->charset . '_general_ci LIKE', $y); |
|
| 51 | + return $this->expressionBuilder->comparison($x, ' COLLATE '.$this->charset.'_general_ci LIKE', $y); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | public function castColumn($column, $type) { |
| 40 | 40 | if ($type === IQueryBuilder::PARAM_INT) { |
| 41 | 41 | $column = $this->helper->quoteColumnName($column); |
| 42 | - return new QueryFunction('CAST(' . $column . ' AS INT)'); |
|
| 42 | + return new QueryFunction('CAST('.$column.' AS INT)'); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | return parent::castColumn($column, $type); |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | * @return null |
| 49 | 49 | */ |
| 50 | 50 | public function resynchronizeDatabaseSequences(Connection $conn) { |
| 51 | - $filterExpression = '/^' . preg_quote($this->config->getSystemValue('dbtableprefix', 'oc_')) . '/'; |
|
| 51 | + $filterExpression = '/^'.preg_quote($this->config->getSystemValue('dbtableprefix', 'oc_')).'/'; |
|
| 52 | 52 | $databaseName = $conn->getDatabase(); |
| 53 | 53 | $conn->getConfiguration()->setFilterSchemaAssetsExpression($filterExpression); |
| 54 | 54 | |