Skip to content
Permalink
Browse files

Added return types in PHP documenation in basics.php, since it raises…

… 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 b4b10e75ac1c099fc6c5e0413d912347722e7772
Showing with 11 additions and 11 deletions.
  1. +11 −11 lib/Cake/basics.php
@@ -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) {
@@ -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) {
@@ -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) {
@@ -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) {
@@ -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) {
@@ -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) {
@@ -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) {
@@ -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) {
@@ -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) {
@@ -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) {
@@ -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) {

0 comments on commit b4b10e7

Please sign in to comment.
You can’t perform that action at this time.