Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/appstore-conventional-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@b7f32a8347e86c26ea2f4823cc7c160b9014c6a0 # v3
uses: TriPSs/conventional-changelog-action@b7f32a8347e86c26ea2f4823cc7c160b9014c6a0 # v3.18.1
with:
github-token: ${{ secrets.RELEASE_PAT }}
git-user-email: nextcloud-command@users.noreply.github.com
Expand All @@ -75,7 +75,7 @@ jobs:
- name: Create Release
if: ${{ steps.changelog.outputs.skipped == 'false' }}
id: create_release
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
with:
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/Generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Generate extends Command {
private $userManager;

public function __construct(
private CodeStorage $codeStorage,
private readonly CodeStorage $codeStorage,
IUserManager $userManager,
) {
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/AdminCodeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(
IUserManager $userManager,
IGroupManager $groupManager,
ISubAdmin $subAdmin,
private CodeStorage $codeStorage,
private readonly CodeStorage $codeStorage,
IUserSession $userSession,
) {
parent::__construct(Application::APP_ID, $request);
Expand Down
2 changes: 1 addition & 1 deletion lib/Event/StateChanged.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class StateChanged extends Event {

public function __construct(
IUser $user,
private bool $enabled,
private readonly bool $enabled,
) {
parent::__construct();

Expand Down
2 changes: 1 addition & 1 deletion lib/Listener/StateChangeRegistryUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class StateChangeRegistryUpdater implements IEventListener {

public function __construct(
IRegistry $registry,
private AdminProvider $provider,
private readonly AdminProvider $provider,
) {
$this->registry = $registry;
}
Expand Down
12 changes: 6 additions & 6 deletions lib/Provider/AdminProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
class AdminProvider implements IProvider, IProvidesIcons, IDeactivatableByAdmin {

public function __construct(
private string $appName,
private IL10N $l10n,
private IURLGenerator $urlGenerator,
private CodeStorage $codeStorage,
private readonly string $appName,
private readonly IL10N $l10n,
private readonly IURLGenerator $urlGenerator,
private readonly CodeStorage $codeStorage,
) {
}

Expand Down Expand Up @@ -83,11 +83,11 @@ public function disableFor(IUser $user): void {
$this->codeStorage->removeCodesForUser($user);
}

public function getLightIcon(): String {
public function getLightIcon(): string {
return $this->urlGenerator->imagePath('core', 'actions/more-white.svg');
}

public function getDarkIcon(): String {
public function getDarkIcon(): string {
return $this->urlGenerator->imagePath('core', 'actions/more.svg');
}
}
2 changes: 1 addition & 1 deletion lib/Service/CodeStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class CodeStorage {
private $timeFactory;

public function __construct(
private CodeMapper $codeMapper,
private readonly CodeMapper $codeMapper,
ISecureRandom $random,
IEventDispatcher $eventDispatcher,
ITimeFactory $timeFactory,
Expand Down
5 changes: 2 additions & 3 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
__DIR__ . '/templates',
__DIR__ . '/tests',
])
->withPhpSets(php80: true)
->withPhpSets(php81: true)
->withTypeCoverageLevel(0)
->withImportNames(importShortClasses:false)
->withPreparedSets(
Expand All @@ -27,8 +27,7 @@
earlyReturn: true,
instanceOf: true,
privatization: true,
strictBooleans: true,
)
->withSets([
NextcloudSets::NEXTCLOUD_27,
NextcloudSets::NEXTCLOUD_30,
]);
2 changes: 1 addition & 1 deletion tests/Unit/Template/ChallengeTemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function setUp(): void {
public function testRender() {
$html = $this->template->fetchPage();

$this->assertStringStartsWith('<img', trim($html));
$this->assertStringStartsWith('<img', trim((string)$html));
}

}
Loading