Skip to content

Apply fixes from StyleCI #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2025
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
32 changes: 16 additions & 16 deletions app/Helpers/Policy.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static function make()
/**
* Check if the user has access based on roles.
*
* @param array $roles
* @param array $roles
* @return bool
*/
private static function hasAccess($roles): bool
Expand All @@ -40,7 +40,7 @@ public function get(): bool
/**
* Set access allowed for specific roles.
*
* @param string $roles
* @param string $roles
* @return self
*/
public function allowedFor(string $roles = 'all'): self
Expand All @@ -53,7 +53,7 @@ public function allowedFor(string $roles = 'all'): self
/**
* Set access not allowed for specific roles.
*
* @param string $roles
* @param string $roles
* @return self
*/
public function notAllowedFor(string $roles = 'all'): self
Expand All @@ -66,7 +66,7 @@ public function notAllowedFor(string $roles = 'all'): self
/**
* Set access allowed for a specific year.
*
* @param mixed $year
* @param mixed $year
* @return self
*/
public function withYear($year): self
Expand All @@ -79,9 +79,9 @@ public function withYear($year): self
/**
* Set access allowed if two expressions are equal.
*
* @param mixed $expr1
* @param mixed $expr2
* @param bool $strict
* @param mixed $expr1
* @param mixed $expr2
* @param bool $strict
* @return self
*/
public function andEqual($expr1, $expr2, $strict = true): self
Expand All @@ -94,9 +94,9 @@ public function andEqual($expr1, $expr2, $strict = true): self
/**
* Set access allowed if two expressions are not equal.
*
* @param mixed $expr1
* @param mixed $expr2
* @param bool $strict
* @param mixed $expr1
* @param mixed $expr2
* @param bool $strict
* @return self
*/
public function andNotEqual($expr1, $expr2, $strict = true): self
Expand All @@ -109,9 +109,9 @@ public function andNotEqual($expr1, $expr2, $strict = true): self
/**
* Set access allowed if either of two expressions are equal.
*
* @param mixed $expr1
* @param mixed $expr2
* @param bool $strict
* @param mixed $expr1
* @param mixed $expr2
* @param bool $strict
* @return self
*/
public function orEqual($expr1, $expr2, $strict = true): self
Expand All @@ -124,9 +124,9 @@ public function orEqual($expr1, $expr2, $strict = true): self
/**
* Set access allowed if either of two expressions are not equal.
*
* @param mixed $expr1
* @param mixed $expr2
* @param bool $strict
* @param mixed $expr1
* @param mixed $expr2
* @param bool $strict
* @return self
*/
public function orNotEqual($expr1, $expr2, $strict = true): self
Expand Down
8 changes: 4 additions & 4 deletions app/Helpers/TemplateProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function gettempDocumentMainPart()
/**
* Set the main part of the temporary document.
*
* @param string $new
* @param string $new
* @return void
*/
public function settempDocumentMainPart($new)
Expand All @@ -31,7 +31,7 @@ public function settempDocumentMainPart($new)
/**
* Ensure the subject is UTF-8 encoded.
*
* @param string $subject
* @param string $subject
* @return string
*/
protected static function ensureUtf8Encoded($subject)
Expand All @@ -42,8 +42,8 @@ protected static function ensureUtf8Encoded($subject)
/**
* Clone a row in the document.
*
* @param string $search
* @param int $numberOfClones
* @param string $search
* @param int $numberOfClones
* @return void
*/
public function cloneRow($search, $numberOfClones): void
Expand Down