Skip to content
Permalink
Browse files

Use more specific datatypes in PHPDoc

  • Loading branch information...
garas committed Jan 28, 2016
1 parent fde1d08 commit 6e54a7391cfc81959d6accee9fb794367e1b4b55
@@ -89,7 +89,7 @@ class AuthComponent extends Component {
/**
* Objects that will be used for authentication checks.
*
* @var array
* @var BaseAuthenticate[]
*/
protected $_authenticateObjects = array();
@@ -129,7 +129,7 @@ class AuthComponent extends Component {
/**
* Objects that will be used for authorization checks.
*
* @var array
* @var BaseAuthorize[]
*/
protected $_authorizeObjects = array();
@@ -653,7 +653,7 @@ public function logout() {
* cookies + sessions will be used.
*
* @param string $key field to retrieve. Leave null to get entire User record
* @return array|null User record. or null if no user is logged in.
* @return mixed|null User record. or null if no user is logged in.
* @link http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#accessing-the-logged-in-user
*/
public static function user($key = null) {
@@ -102,7 +102,7 @@ public function name() {
/**
* Returns the subject of this event
*
* @return string
* @return object
*/
public function subject() {
return $this->_subject;
@@ -36,7 +36,7 @@ class ModelValidator implements ArrayAccess, IteratorAggregate, Countable {
/**
* Holds the CakeValidationSet objects array
*
* @var array
* @var CakeValidationSet[]
*/
protected $_fields = array();
@@ -386,7 +386,7 @@ public function getModel() {
* Processes the passed fieldList and returns the list of fields to be validated
*
* @param array $fieldList list of fields to be used for validation
* @return array List of validation rules to be applied
* @return CakeValidationSet[] List of validation rules to be applied
*/
protected function _validationList($fieldList = array()) {
if (empty($fieldList) || Hash::dimensions($fieldList) > 1) {
@@ -32,7 +32,7 @@ class CakeValidationSet implements ArrayAccess, IteratorAggregate, Countable {
/**
* Holds the CakeValidationRule objects
*
* @var array
* @var CakeValidationRule[]
*/
protected $_rules = array();
@@ -172,7 +172,7 @@ public function getRule($name) {
/**
* Returns all rules for this validation set
*
* @return array
* @return CakeValidationRule[]
*/
public function getRules() {
return $this->_rules;
@@ -339,7 +339,7 @@ class CakeEmail {
/**
* An instance of the EmailConfig class can be set here
*
* @var string
* @var EmailConfig
*/
protected $_configInstance;
@@ -1204,6 +1204,7 @@ public function send($content = null) {
*/
public static function deliver($to = null, $subject = null, $message = null, $transportConfig = 'fast', $send = true) {
$class = __CLASS__;
/** @var CakeEmail $instance */
$instance = new $class($transportConfig);
if ($to !== null) {
$instance->to($to);
@@ -1673,6 +1674,7 @@ protected function _renderTemplates($content) {
App::uses($viewClass, $plugin . 'View');
}
/** @var View $View */
$View = new $viewClass(null);
$View->viewVars = $this->_viewVars;
$View->helpers = $this->_helpers;

0 comments on commit 6e54a73

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