Commit ffbd1063 by resurtm

Remove unnecessary $this.

Related to b3b5e36d.
parent 24bc980d
...@@ -35,7 +35,7 @@ abstract class Mutex extends Component ...@@ -35,7 +35,7 @@ abstract class Mutex extends Component
{ {
if ($this->autoRelease) { if ($this->autoRelease) {
$locks = &$this->_locks; $locks = &$this->_locks;
register_shutdown_function(function () use ($this, &$locks) { register_shutdown_function(function () use (&$locks) {
foreach ($locks as $lock) { foreach ($locks as $lock) {
$this->release($lock); $this->release($lock);
} }
......
...@@ -88,7 +88,7 @@ class ActionColumn extends Column ...@@ -88,7 +88,7 @@ class ActionColumn extends Column
*/ */
protected function renderDataCellContent($model, $index) 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]; $name = $matches[1];
if (isset($this->buttons[$name])) { if (isset($this->buttons[$name])) {
return call_user_func($this->buttons[$name], $model, $this); return call_user_func($this->buttons[$name], $model, $this);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment