Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

remove $that = $this usage #1

Merged
merged 2 commits into from
Jun 4, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"require": {
"php": ">=5.3.23",
"php": ">=5.5",
"zendframework/zend-stdlib": "~2.5",
"zendframework/zend-servicemanager": "~2.5",
"zendframework/zend-serializer": "~2.5",
Expand Down Expand Up @@ -47,4 +47,4 @@
"ZendTest\\Cache\\": "test/"
}
}
}
}
5 changes: 2 additions & 3 deletions src/Pattern/CaptureCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ public function start($pageId = null)
$pageId = $this->detectPageId();
}

$that = $this;
ob_start(function ($content) use ($that, $pageId) {
$that->set($content, $pageId);
ob_start(function ($content) use ($pageId) {
$this->set($content, $pageId);

// http://php.net/manual/function.ob-start.php
// -> If output_callback returns FALSE original input is sent to the browser.
Expand Down