diff --git a/boot.php b/boot.php index 695f9e85c..00058727f 100644 --- a/boot.php +++ b/boot.php @@ -524,6 +524,8 @@ function startup() * @brief Retrieve the App structure * * Useful in functions which require it but don't get it passed to them + * + * @return App */ function get_app() { diff --git a/include/text.php b/include/text.php index 5cc573697..cbba8d0c5 100644 --- a/include/text.php +++ b/include/text.php @@ -1701,7 +1701,7 @@ function array_xmlify($val){ /** - * transorm link href and img src from relative to absolute + * transform link href and img src from relative to absolute * * @param string $text * @param string $base base url diff --git a/src/App.php b/src/App.php index adea01a03..b16786140 100644 --- a/src/App.php +++ b/src/App.php @@ -619,7 +619,7 @@ class App { * If $name is not defined, return engine defined by theme, * or default * - * @param strin $name Template engine name + * @param string $name Template engine name * @return object Template Engine instance */ function template_engine($name = '') { diff --git a/src/Model/Contact.php b/src/Model/Contact.php index aec417a65..1b15f1c76 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -197,7 +197,7 @@ class Contact extends BaseObject * up or some other transient event and that there's a possibility we could recover from it. * * @param array $contact contact to mark for archival - * @return type + * @return null */ public static function markForArchival(array $contact) { diff --git a/src/Model/GContact.php b/src/Model/GContact.php index 562212448..6c13c03b1 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -636,7 +636,7 @@ class GContact /** * @brief Replace alternate OStatus user format with the primary one * - * @param arr $contact contact array (called by reference) + * @param array $contact contact array (called by reference) * @return void */ public static function fixAlternateContactAddress(&$contact) @@ -656,7 +656,7 @@ class GContact /** * @brief Fetch the gcontact id, add an entry if not existed * - * @param arr $contact contact array + * @param array $contact contact array * * @return bool|int Returns false if not found, integer if contact was found */ @@ -747,7 +747,7 @@ class GContact /** * @brief Updates the gcontact table from a given array * - * @param arr $contact contact array + * @param array $contact contact array * * @return bool|int Returns false if not found, integer if contact was found */ @@ -908,7 +908,7 @@ class GContact /** * @brief Updates the gcontact entry from probe * - * @param str $url profile link + * @param string $url profile link * @return void */ public static function updateFromProbe($url) @@ -974,7 +974,7 @@ class GContact * * If the "Statistics" plugin is enabled (See http://gstools.org/ for details) we query user data with this. * - * @param str $server Server address + * @param string $server Server address * @return void */ public static function fetchGsUsers($server) diff --git a/src/Model/Group.php b/src/Model/Group.php index 209c78798..410f78b15 100644 --- a/src/Model/Group.php +++ b/src/Model/Group.php @@ -131,7 +131,7 @@ class Group extends BaseObject /** * @brief Mark a group as deleted * - * @param type $gid + * @param int $gid * @return boolean */ public static function remove($gid) { @@ -176,9 +176,9 @@ class Group extends BaseObject * * @deprecated Use Group::remove instead * - * @param type $uid - * @param type $name - * @return type + * @param int $uid + * @param string $name + * @return bool */ public static function removeByName($uid, $name) { $return = false; diff --git a/src/Object/Image.php b/src/Object/Image.php index b39945ede..f979e4943 100644 --- a/src/Object/Image.php +++ b/src/Object/Image.php @@ -111,7 +111,7 @@ class Image /** * @brief Maps Mime types to Imagick formats - * @return arr With with image formats (mime type as key) + * @return array With with image formats (mime type as key) */ public static function getFormatsMap() { diff --git a/src/ParseUrl.php b/src/ParseUrl.php index c2c01b8ae..9e46281ec 100644 --- a/src/ParseUrl.php +++ b/src/ParseUrl.php @@ -25,10 +25,10 @@ class ParseUrl /** * @brief Search for chached embeddable data of an url otherwise fetch it * - * @param type $url The url of the page which should be scraped - * @param type $no_guessing If true the parse doens't search for + * @param string $url The url of the page which should be scraped + * @param bool $no_guessing If true the parse doens't search for * preview pictures - * @param type $do_oembed The false option is used by the function fetch_oembed() + * @param bool $do_oembed The false option is used by the function fetch_oembed() * to avoid endless loops * * @return array which contains needed data for embedding @@ -89,12 +89,12 @@ class ParseUrl * like \