@@ -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 | } |