mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:50:10 +00:00
Added more type-hints
This commit is contained in:
parent
a8a21c7fb6
commit
c2e889cfae
7 changed files with 96 additions and 91 deletions
|
@ -212,7 +212,7 @@ final class Activity
|
|||
*
|
||||
* @return bool True, if the activity is hidden
|
||||
*/
|
||||
public function isHidden(string $activity)
|
||||
public function isHidden(string $activity): bool
|
||||
{
|
||||
foreach (self::HIDDEN_ACTIVITIES as $hiddenActivity) {
|
||||
if ($this->match($activity, $hiddenActivity)) {
|
||||
|
@ -231,7 +231,7 @@ final class Activity
|
|||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function match(string $haystack, string $needle)
|
||||
public function match(string $haystack, string $needle): bool
|
||||
{
|
||||
return (($haystack === $needle) ||
|
||||
((basename($needle) === $haystack) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue