update v1.0.4
This commit is contained in:
		| @@ -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 | ||||
|             ); | ||||
|         } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sujitprasad
					sujitprasad