Skip to content

Commit

Permalink
style: fix formatting for styleci
Browse files Browse the repository at this point in the history
  • Loading branch information
xHeaven committed Jan 17, 2025
1 parent 2464caf commit a6f313b
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function defaultExtracts(Context $context): array
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),
];
}
Expand Down
4 changes: 2 additions & 2 deletions framework/core/src/Frontend/Content/CorePayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
readonly class CorePayload
{
public function __construct(
private LocaleManager $locales,
private MaintenanceMode $maintenance,
private LocaleManager $locales,
private MaintenanceMode $maintenance,
private SettingsRepositoryInterface $settings
) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{
public function __construct(
private MaintenanceMode $maintenance,
private array $exemptRoutes,
private array $exemptRoutes,
) {
}

Expand Down
4 changes: 2 additions & 2 deletions framework/core/src/Install/AdminUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
readonly class AdminUser
{
public function __construct(
private string $username,
private string $username,
#[\SensitiveParameter] private string $password,
private string $email
private string $email
) {
$this->validate();
}
Expand Down
12 changes: 6 additions & 6 deletions framework/core/src/Install/DatabaseConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
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();
}
Expand Down
4 changes: 2 additions & 2 deletions framework/core/src/Install/Steps/ConnectToDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
{
public function __construct(
private DatabaseConfig $dbConfig,
private Closure $store,
private string $basePath
private Closure $store,
private string $basePath
) {
}

Expand Down
2 changes: 1 addition & 1 deletion framework/core/src/Install/Steps/CreateAdminUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{
public function __construct(
private ConnectionInterface $database,
private AdminUser $admin,
private AdminUser $admin,
#[\SensitiveParameter] private ?string $accessToken = null
) {
}
Expand Down
4 changes: 2 additions & 2 deletions framework/core/src/Install/Steps/RunMigrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
{
public function __construct(
private ConnectionInterface $database,
private string $driver,
private string $path
private string $driver,
private string $path
) {
}

Expand Down
6 changes: 3 additions & 3 deletions framework/core/src/Install/Steps/StoreConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
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
) {
}

Expand Down
2 changes: 1 addition & 1 deletion framework/core/src/Install/Steps/WriteSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
public function __construct(
private ConnectionInterface $database,
private array $custom
private array $custom
) {
}

Expand Down
2 changes: 1 addition & 1 deletion framework/core/src/Post/PostRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function getIndexForNumber(int $discussionId, int $number, ?User $actor =

// 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();
Expand Down

0 comments on commit a6f313b

Please sign in to comment.