Skip to content

Commit

Permalink
Added return types in PHP documenation in basics.php, since it raises…
Browse files Browse the repository at this point in the history
… warning in ie. PHPStorm, like:

- Method _toString is not implemented for translated
  • Loading branch information
annuh authored and markstory committed Jul 8, 2015
1 parent 4102961 commit b4b10e7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/Cake/basics.php
Expand Up @@ -625,7 +625,7 @@ function __n($singular, $plural, $count, $args = null) {
* @param string $domain Domain
* @param string $msg String to translate
* @param mixed $args Array with arguments or multiple arguments in function
* @return translated string
* @return string translated string
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#__d
*/
function __d($domain, $msg, $args = null) {
Expand All @@ -652,7 +652,7 @@ function __d($domain, $msg, $args = null) {
* @param string $plural Plural
* @param int $count Count
* @param mixed $args Array with arguments or multiple arguments in function
* @return plural form of translated string
* @return string plural form of translated string
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#__dn
*/
function __dn($domain, $singular, $plural, $count, $args = null) {
Expand Down Expand Up @@ -690,7 +690,7 @@ function __dn($domain, $singular, $plural, $count, $args = null) {
* @param string $msg Message to translate
* @param int $category Category
* @param mixed $args Array with arguments or multiple arguments in function
* @return translated string
* @return string translated string
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#__dc
*/
function __dc($domain, $msg, $category, $args = null) {
Expand Down Expand Up @@ -732,7 +732,7 @@ function __dc($domain, $msg, $category, $args = null) {
* @param int $count Count
* @param int $category Category
* @param mixed $args Array with arguments or multiple arguments in function
* @return plural form of translated string
* @return string plural form of translated string
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#__dcn
*/
function __dcn($domain, $singular, $plural, $count, $category, $args = null) {
Expand Down Expand Up @@ -766,7 +766,7 @@ function __dcn($domain, $singular, $plural, $count, $category, $args = null) {
* @param string $msg String to translate
* @param int $category Category
* @param mixed $args Array with arguments or multiple arguments in function
* @return translated string
* @return string translated string
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#__c
*/
function __c($msg, $category, $args = null) {
Expand Down Expand Up @@ -841,7 +841,7 @@ function __xn($context, $singular, $plural, $count, $args = null) {
* @param string $context Context of the text
* @param string $msg String to translate
* @param mixed $args Array with arguments or multiple arguments in function
* @return translated string
* @return string translated string
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#__d
*/
function __dx($domain, $context, $msg, $args = null) {
Expand Down Expand Up @@ -869,7 +869,7 @@ function __dx($domain, $context, $msg, $args = null) {
* @param string $plural Plural
* @param int $count Count
* @param mixed $args Array with arguments or multiple arguments in function
* @return plural form of translated string
* @return string plural form of translated string
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#__dn
*/
function __dxn($domain, $context, $singular, $plural, $count, $args = null) {
Expand Down Expand Up @@ -908,7 +908,7 @@ function __dxn($domain, $context, $singular, $plural, $count, $args = null) {
* @param string $msg Message to translate
* @param int $category Category
* @param mixed $args Array with arguments or multiple arguments in function
* @return translated string
* @return string translated string
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#__dc
*/
function __dxc($domain, $context, $msg, $category, $args = null) {
Expand Down Expand Up @@ -951,7 +951,7 @@ function __dxc($domain, $context, $msg, $category, $args = null) {
* @param int $count Count
* @param int $category Category
* @param mixed $args Array with arguments or multiple arguments in function
* @return plural form of translated string
* @return string plural form of translated string
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#__dcn
*/
function __dxcn($domain, $context, $singular, $plural, $count, $category, $args = null) {
Expand Down Expand Up @@ -986,7 +986,7 @@ function __dxcn($domain, $context, $singular, $plural, $count, $category, $args
* @param string $msg String to translate
* @param int $category Category
* @param mixed $args Array with arguments or multiple arguments in function
* @return translated string
* @return string translated string
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#__c
*/
function __xc($context, $msg, $category, $args = null) {
Expand Down Expand Up @@ -1025,7 +1025,7 @@ function LogError($message) {
* Searches include path for files.
*
* @param string $file File to look for
* @return Full path to file if exists, otherwise false
* @return string Full path to file if exists, otherwise false
* @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#fileExistsInPath
*/
function fileExistsInPath($file) {
Expand Down

0 comments on commit b4b10e7

Please sign in to comment.