]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Hook.php
in "getidforurl" "no update" is now "update"
[friendica.git] / src / Core / Hook.php
index b8ad0fb8bd3b7d33399d671c0e111dfaaaf0af77..8fdadd666a9c769da520feff285f8cc32d21c2d6 100644 (file)
@@ -1,7 +1,24 @@
 <?php
 /**
- * @file src/Core/Hook.php
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
  */
+
 namespace Friendica\Core;
 
 use Friendica\App;
@@ -45,7 +62,7 @@ class Hook
        }
 
        /**
-        * @brief Adds a new hook to the hooks array.
+        * Adds a new hook to the hooks array.
         *
         * This function is meant to be called by modules on each page load as it works after loadHooks has been called.
         *
@@ -62,7 +79,7 @@ class Hook
        }
 
        /**
-        * @brief Registers a hook.
+        * Registers a hook.
         *
         * This function is meant to be called once when an addon is enabled for example as it doesn't add to the current hooks.
         *
@@ -127,7 +144,7 @@ class Hook
        }
 
        /**
-        * @brief Forks a hook.
+        * Forks a hook.
         *
         * Use this function when you want to fork a hook via the worker.
         *
@@ -162,7 +179,7 @@ class Hook
        }
 
        /**
-        * @brief Calls a hook.
+        * Calls a hook.
         *
         * Use this function when you want to be able to allow a hook to manipulate
         * the provided data.
@@ -181,7 +198,7 @@ class Hook
        }
 
        /**
-        * @brief Calls a single hook.
+        * Calls a single hook.
         *
         * @param App             $a
         * @param string          $name of the hook to call