update v1.0.4

This commit is contained in:
sujitprasad
2016-01-04 18:05:45 +05:30
parent 372485336b
commit 4864e5a3f1
529 changed files with 20956 additions and 8178 deletions

View File

@@ -39,12 +39,12 @@ trait PluggableTrait
*/
protected function findPlugin($method)
{
if (! isset($this->plugins[$method])) {
throw new PluginNotFoundException('Plugin not found for method: '.$method);
if ( ! isset($this->plugins[$method])) {
throw new PluginNotFoundException('Plugin not found for method: ' . $method);
}
if (! method_exists($this->plugins[$method], 'handle')) {
throw new LogicException(get_class($this->plugins[$method]).' does not have a handle method.');
if ( ! method_exists($this->plugins[$method], 'handle')) {
throw new LogicException(get_class($this->plugins[$method]) . ' does not have a handle method.');
}
return $this->plugins[$method];
@@ -84,8 +84,8 @@ trait PluggableTrait
} catch (PluginNotFoundException $e) {
throw new BadMethodCallException(
'Call to undefined method '
.get_class($this)
.'::'.$method
. get_class($this)
. '::' . $method
);
}
}