Skip to content

Commit

Permalink
Fix coding style and comment wording
Browse files Browse the repository at this point in the history
Co-authored-by: Ahmet Bora <[email protected]>
  • Loading branch information
lukasbestle and afbora committed Dec 19, 2024
1 parent ab347fa commit 8b1b969
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Cms/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public function is(File $file): bool
}

/**
* Checks if the files is accessible.
* Checks if the file is accessible to the current user
* This permission depends on the `read` option until v5
*/
public function isAccessible(): bool
Expand Down
3 changes: 1 addition & 2 deletions src/Cms/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,6 @@ public function update(array|null $props = null): static
// make sure the slug is nice and clean
$props['slug'] = Str::slug($props['slug'] ?? null);


// trigger before hook
$language = $kirby->apply(
'language.update:before',
Expand Down Expand Up @@ -615,7 +614,7 @@ public function update(array|null $props = null): static
[
'newLanguage' => $language,
'oldLanguage' => $this,
'input' => $props
'input' => $props
],
'newLanguage'
);
Expand Down
2 changes: 1 addition & 1 deletion src/Cms/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ public function is($page): bool
}

/**
* Checks if the page is accessible that accessible and listable.
* Checks if the page is accessible to the current user
* This permission depends on the `read` option until v5
*/
public function isAccessible(): bool
Expand Down

0 comments on commit 8b1b969

Please sign in to comment.