Remove unnecessary $this.

Related to b3b5e36d42.
This commit is contained in:
resurtm
2013-10-18 19:36:16 +06:00
parent 24bc980da4
commit ffbd10638f
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ abstract class Mutex extends Component
{
if ($this->autoRelease) {
$locks = &$this->_locks;
register_shutdown_function(function () use ($this, &$locks) {
register_shutdown_function(function () use (&$locks) {
foreach ($locks as $lock) {
$this->release($lock);
}

View File

@@ -88,7 +88,7 @@ class ActionColumn extends Column
*/
protected function renderDataCellContent($model, $index)
{
return preg_replace_callback('/\\{(\w+)\\}/', function ($matches) use ($this, $model) {
return preg_replace_callback('/\\{(\w+)\\}/', function ($matches) use ($model) {
$name = $matches[1];
if (isset($this->buttons[$name])) {
return call_user_func($this->buttons[$name], $model, $this);