mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 07:42:48 +08:00
style: fix formatting for styleci
This commit is contained in:
parent
2464caffab
commit
a6f313b27b
|
@ -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),
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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
|
||||
) {
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ readonly class CheckForMaintenanceMode implements MiddlewareInterface
|
|||
{
|
||||
public function __construct(
|
||||
private MaintenanceMode $maintenance,
|
||||
private array $exemptRoutes,
|
||||
private array $exemptRoutes,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
) {
|
||||
}
|
||||
|
|
|
@ -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
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ readonly class WriteSettings implements Step
|
|||
{
|
||||
public function __construct(
|
||||
private ConnectionInterface $database,
|
||||
private array $custom
|
||||
private array $custom
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user