* @return void
*/
public function executeTask () {
+ // "Cache" handler instance
+ $handlerInstance = $this->getHandlerInstance();
+
// Are there chunks to handle or a final array to assemble?
- if ($this->getHandlerInstance()->ifUnassembledChunksAvailable()) {
+ if ($handlerInstance->ifUnassembledChunksAvailable()) {
/*
* Then do the final steps:
*
* 4) If the package is assembled back together, hash it again for
* the very final verification.
*/
- $this->getHandlerInstance()->assembleChunksFromFinalArray();
- } elseif ($this->getHandlerInstance()->ifUnhandledChunksWithFinalAvailable()) {
+ $handlerInstance->assembleChunksFromFinalArray();
+ } elseif ($handlerInstance->ifUnhandledChunksWithFinalAvailable()) {
/*
* Then handle them (not all!). This should push all chunks into a
* 'final array' for last verification.
*/
- $this->getHandlerInstance()->handleAvailableChunksWithFinal();
- } elseif ($this->getHandlerInstance()->ifRawPackageDataIsAvailable()) {
+ $handlerInstance->handleAvailableChunksWithFinal();
+ } elseif ($handlerInstance->ifRawPackageDataIsAvailable()) {
/*
* The final raw package data is back together again. So feed it
* into the next stack for further decoding/processing
*/
- $this->getHandlerInstance()->handledAssembledRawPackageData();
+ $handlerInstance->handledAssembledRawPackageData();
}
}
}