Fixes #3793: Changed inline autocomplete hints style to get more IDEs support

This commit is contained in:
Alexander Makarov
2014-06-20 16:11:45 +04:00
parent 0ab4da031e
commit 0c14f47f9a
186 changed files with 641 additions and 818 deletions

View File

@ -150,7 +150,7 @@ class Controller extends Component implements ViewContextInterface
}
foreach ($modules as $module) {
/** @var Module $module */
/* @var $module Module */
$result = $module->afterAction($action, $result);
}

View File

@ -170,7 +170,7 @@ class DynamicModel extends Model
*/
public static function validateData(array $data, $rules = [])
{
/** @var DynamicModel $model */
/* @var $model DynamicModel */
$model = new static($data);
if (!empty($rules)) {
$validators = $model->getValidators();

View File

@ -765,7 +765,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab
*/
public static function loadMultiple($models, $data)
{
/** @var Model $model */
/* @var $model Model */
$model = reset($models);
if ($model === false) {
return false;
@ -801,7 +801,7 @@ class Model extends Component implements IteratorAggregate, ArrayAccess, Arrayab
public static function validateMultiple($models, $attributeNames = null)
{
$valid = true;
/** @var Model $model */
/* @var $model Model */
foreach ($models as $model) {
$valid = $model->validate($attributeNames) && $valid;
}

View File

@ -422,7 +422,7 @@ class Module extends ServiceLocator
{
$parts = $this->createController($route);
if (is_array($parts)) {
/** @var Controller $controller */
/* @var $controller Controller */
list($controller, $actionID) = $parts;
$oldController = Yii::$app->controller;
Yii::$app->controller = $controller;

View File

@ -240,7 +240,7 @@ class View extends Component
if (is_array($this->renderers[$ext]) || is_string($this->renderers[$ext])) {
$this->renderers[$ext] = Yii::createObject($this->renderers[$ext]);
}
/** @var ViewRenderer $renderer */
/* @var $renderer ViewRenderer */
$renderer = $this->renderers[$ext];
$output = $renderer->render($this, $viewFile, $params);
} else {
@ -446,7 +446,7 @@ class View extends Component
{
$properties['id'] = $id;
$properties['view'] = $this;
/** @var FragmentCache $cache */
/* @var $cache FragmentCache */
$cache = FragmentCache::begin($properties);
if ($cache->getCachedContent() !== false) {
$this->endCache();

View File

@ -52,7 +52,7 @@ class Widget extends Component implements ViewContextInterface
public static function begin($config = [])
{
$config['class'] = get_called_class();
/** @var Widget $widget */
/* @var $widget Widget */
$widget = Yii::createObject($config);
static::$stack[] = $widget;
@ -90,7 +90,7 @@ class Widget extends Component implements ViewContextInterface
{
ob_start();
ob_implicit_flush(false);
/** @var Widget $widget */
/* @var $widget Widget */
$config['class'] = get_called_class();
$widget = Yii::createObject($config);
$out = $widget->run();