Browse Source

Minor code style adjustments, phpdoc

tags/2.0.14
Alexander Makarov 7 years ago
parent
commit
0de49406db
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A
  1. 3
      framework/base/Component.php
  2. 2
      framework/base/Module.php
  3. 4
      framework/behaviors/CacheableWidgetBehavior.php

3
framework/base/Component.php

@ -552,8 +552,7 @@ class Component extends BaseObject
return false;
}
if ($handler === null) {
unset($this->_events[$name]);
unset($this->_eventWildcards[$name]);
unset($this->_events[$name], $this->_eventWildcards[$name]);
return true;
}

2
framework/base/Module.php

@ -649,6 +649,8 @@ class Module extends ServiceLocator
}
/**
* Checks if class name or prefix is incorrect
*
* @param string $className
* @param string $prefix
* @return bool

4
framework/behaviors/CacheableWidgetBehavior.php

@ -157,9 +157,7 @@ class CacheableWidgetBehavior extends Behavior
private function getCacheInstance()
{
$cacheInterface = 'yii\caching\CacheInterface';
$cache = Instance::ensure($this->cache, $cacheInterface);
return $cache;
return Instance::ensure($this->cache, $cacheInterface);
}
/**

Loading…
Cancel
Save