]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Activity.php
Changes:
[friendica.git] / src / Protocol / Activity.php
index e75b1cf507213b00919be6f7560f5a30453da15f..0f15e851c3df8ee3a5ec7900bcceffb27f68d040 100644 (file)
@@ -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) &&