@@ -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'])) { |
@@ -155,9 +155,9 @@ discard block |
||
155 | 155 | $params = []; |
156 | 156 | foreach ($this->getParameters() as $placeholder => $value) { |
157 | 157 | if (is_array($value)) { |
158 | - $params[] = $placeholder . ' => (\'' . implode('\', \'', $value) . '\')'; |
|
158 | + $params[] = $placeholder.' => (\''.implode('\', \'', $value).'\')'; |
|
159 | 159 | } else { |
160 | - $params[] = $placeholder . ' => \'' . $value . '\''; |
|
160 | + $params[] = $placeholder.' => \''.$value.'\''; |
|
161 | 161 | } |
162 | 162 | } |
163 | 163 | if (empty($params)) { |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | public function selectAlias($select, $alias) { |
375 | 375 | |
376 | 376 | $this->queryBuilder->addSelect( |
377 | - $this->helper->quoteColumnName($select) . ' AS ' . $this->helper->quoteColumnName($alias) |
|
377 | + $this->helper->quoteColumnName($select).' AS '.$this->helper->quoteColumnName($alias) |
|
378 | 378 | ); |
379 | 379 | |
380 | 380 | return $this; |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | public function selectDistinct($select) { |
397 | 397 | |
398 | 398 | $this->queryBuilder->addSelect( |
399 | - 'DISTINCT ' . $this->helper->quoteColumnName($select) |
|
399 | + 'DISTINCT '.$this->helper->quoteColumnName($select) |
|
400 | 400 | ); |
401 | 401 | |
402 | 402 | return $this; |
@@ -1073,7 +1073,7 @@ discard block |
||
1073 | 1073 | * @return IParameter |
1074 | 1074 | */ |
1075 | 1075 | public function createParameter($name) { |
1076 | - return new Parameter(':' . $name); |
|
1076 | + return new Parameter(':'.$name); |
|
1077 | 1077 | } |
1078 | 1078 | |
1079 | 1079 | /** |
@@ -1140,7 +1140,7 @@ discard block |
||
1140 | 1140 | return $table; |
1141 | 1141 | } |
1142 | 1142 | |
1143 | - return '*PREFIX*' . $table; |
|
1143 | + return '*PREFIX*'.$table; |
|
1144 | 1144 | } |
1145 | 1145 | |
1146 | 1146 | /** |
@@ -1155,6 +1155,6 @@ discard block |
||
1155 | 1155 | $tableAlias .= '.'; |
1156 | 1156 | } |
1157 | 1157 | |
1158 | - return $this->helper->quoteColumnName($tableAlias . $column); |
|
1158 | + return $this->helper->quoteColumnName($tableAlias.$column); |
|
1159 | 1159 | } |
1160 | 1160 | } |
@@ -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 |