Skip to content

Commit

Permalink
replaced "get_class()" with "get_called_class()" because it's faster
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed May 23, 2012
1 parent 96750fd commit 4c734e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/Zend/Wildfire/Channel/HttpHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public static function setControllerPluginStackIndex($index)
protected function _registerControllerPlugin()
{
$controller = Controller\Front::getInstance();
if (!$controller->hasPlugin(get_class($this))) {
if (!$controller->hasPlugin(get_called_class())) {
$controller->registerPlugin($this, self::$_controllerPluginStackIndex);
}
}
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Wildfire/Protocol/JsonStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ protected function _encode($value)
public function getPayload(Wildfire\Channel $channel)
{
if (!$channel instanceof Wildfire\Channel\HttpHeaders) {
throw new Exception\InvalidArgumentException('The '.get_class($channel).' channel is not supported by the '.get_class($this).' protocol.');
throw new Exception\InvalidArgumentException('The '.get_class($channel).' channel is not supported by the '.get_called_class().' protocol.');
}

if ($this->_plugins) {
Expand Down

0 comments on commit 4c734e4

Please sign in to comment.