Skip to content

Commit

Permalink
phpdoc, minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Aug 30, 2024
1 parent 153f79d commit 0cf13ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/GaletteEvents/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Activity
* @param Db $zdb Database instance
* @param Login $login Login instance
* @param null|int|ArrayObject<string,int|string> $args Either a ResultSet row or its id for to load
* a specific event, or null to just
* a specific activity, or null to just
* instanciate object
*/
public function __construct(Db $zdb, Login $login, int|ArrayObject $args = null)
Expand All @@ -76,9 +76,9 @@ public function __construct(Db $zdb, Login $login, int|ArrayObject $args = null)
}

/**
* Loads an event from its id
* Loads an activity from its id
*
* @param int $id the identifiant for the event to load
* @param int $id the identifiant for the activity to load
*
* @return bool true if query succeed, false otherwise
*/
Expand Down
4 changes: 3 additions & 1 deletion lib/GaletteEvents/Filters/EventsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ public function __set(string $name, mixed $value): void
throw new \Exception(
sprintf(
//TRANS: %1$s is field label, %2$s is list of known date formats
_T('Unknown date format for %1$s.<br/>Know formats are: %2$s')
_T('Unknown date format for %1$s.<br/>Know formats are: %2$s'),
$field,
implode(', ', $formats)
)
);
}
Expand Down

0 comments on commit 0cf13ed

Please sign in to comment.