@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | { |
143 | 143 | $types = self::find()->all(); |
144 | 144 | |
145 | - return array_filter($types, function ($t) use ($selfUpdate, $usableOnly) { |
|
145 | + return array_filter($types, function($t) use ($selfUpdate, $usableOnly) { |
|
146 | 146 | return ($selfUpdate === null || $t->selfUpdate == $selfUpdate) && (!$usableOnly || ($t->usable && $t->enabled)); |
147 | 147 | }); |
148 | 148 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | { |
178 | 178 | $types = self::find()->all(); |
179 | 179 | |
180 | - return array_filter(array_map(function ($t) { |
|
180 | + return array_filter(array_map(function($t) { |
|
181 | 181 | return $t->input == self::KINDS['FILE'] ? $t->id : null; |
182 | 182 | }, $types)); |
183 | 183 | } |
@@ -67,7 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * Get last inserted AUTO_INCREMENT id from database. |
69 | 69 | * |
70 | - * @return int last insert id |
|
70 | + * @return string last insert id |
|
71 | 71 | */ |
72 | 72 | public function getLastId() |
73 | 73 | { |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$params = require __DIR__ . '/params.php'; |
|
4 | -$db = require __DIR__ . '/db.php'; |
|
3 | +$params = require __DIR__.'/params.php'; |
|
4 | +$db = require __DIR__.'/db.php'; |
|
5 | 5 | |
6 | 6 | $config = [ |
7 | 7 | 'id' => 'lcds', |