style: fix formatting for styleci

This commit is contained in:
Mark 2025-01-17 22:45:23 +01:00
parent 2464caffab
commit a6f313b27b
No known key found for this signature in database
GPG Key ID: 79CFF7869BD39873
11 changed files with 22 additions and 22 deletions

View File

@ -103,7 +103,7 @@ trait ExtractsListingParams
return [
'filter' => RequestUtil::extractFilter($context->request),
'sort' => RequestUtil::extractSort($context->request, $this->defaultSort, $this->getAvailableSorts($context)),
'limit' => $limit = (RequestUtil::extractLimit($context->request, $this->limit, $this->maxLimit)),
'limit' => $limit = RequestUtil::extractLimit($context->request, $this->limit, $this->maxLimit),
'offset' => RequestUtil::extractOffset($context->request, $limit),
];
}

View File

@ -20,8 +20,8 @@ use Psr\Http\Message\ServerRequestInterface as Request;
readonly class CorePayload
{
public function __construct(
private LocaleManager $locales,
private MaintenanceMode $maintenance,
private LocaleManager $locales,
private MaintenanceMode $maintenance,
private SettingsRepositoryInterface $settings
) {
}

View File

@ -21,7 +21,7 @@ readonly class CheckForMaintenanceMode implements MiddlewareInterface
{
public function __construct(
private MaintenanceMode $maintenance,
private array $exemptRoutes,
private array $exemptRoutes,
) {
}

View File

@ -15,9 +15,9 @@ use Illuminate\Hashing\BcryptHasher;
readonly class AdminUser
{
public function __construct(
private string $username,
private string $username,
#[\SensitiveParameter] private string $password,
private string $email
private string $email
) {
$this->validate();
}

View File

@ -15,13 +15,13 @@ use Illuminate\Contracts\Support\Arrayable;
class DatabaseConfig implements Arrayable
{
public function __construct(
private readonly string $driver,
private readonly ?string $host,
private readonly int $port,
private string $database,
private readonly ?string $username,
private readonly string $driver,
private readonly ?string $host,
private readonly int $port,
private string $database,
private readonly ?string $username,
#[\SensitiveParameter] private readonly ?string $password,
private readonly ?string $prefix
private readonly ?string $prefix
) {
$this->validate();
}

View File

@ -28,8 +28,8 @@ readonly class ConnectToDatabase implements Step
{
public function __construct(
private DatabaseConfig $dbConfig,
private Closure $store,
private string $basePath
private Closure $store,
private string $basePath
) {
}

View File

@ -19,7 +19,7 @@ readonly class CreateAdminUser implements Step
{
public function __construct(
private ConnectionInterface $database,
private AdminUser $admin,
private AdminUser $admin,
#[\SensitiveParameter] private ?string $accessToken = null
) {
}

View File

@ -19,8 +19,8 @@ readonly class RunMigrations implements Step
{
public function __construct(
private ConnectionInterface $database,
private string $driver,
private string $path
private string $driver,
private string $path
) {
}

View File

@ -16,10 +16,10 @@ use Flarum\Install\ReversibleStep;
readonly class StoreConfig implements ReversibleStep
{
public function __construct(
private bool $debugMode,
private bool $debugMode,
private DatabaseConfig $dbConfig,
private BaseUrl $baseUrl,
private string $configFile
private BaseUrl $baseUrl,
private string $configFile
) {
}

View File

@ -18,7 +18,7 @@ readonly class WriteSettings implements Step
{
public function __construct(
private ConnectionInterface $database,
private array $custom
private array $custom
) {
}

View File

@ -100,7 +100,7 @@ class PostRepository
// We don't add $number as a binding because for some
// reason doing so makes the bindings go out of order.
->orderByRaw('ABS(CAST(number AS SIGNED) - '. $number .')');
->orderByRaw('ABS(CAST(number AS SIGNED) - '.$number.')');
});
return $query->count();