@@ -50,10 +50,10 @@ |
||
50 | 50 | try { |
51 | 51 | $rm = new \ReflectionMethod($interface, "create"); |
52 | 52 | } catch(\ReflectionException $e) { |
53 | - throw new InvalidChatControlFactoryException("Interface $interface does not contain method create.", 0, $e); |
|
53 | + throw new InvalidChatControlFactoryException("interface $interface does not contain method create.", 0, $e); |
|
54 | 54 | } |
55 | 55 | $returnType = $rm->getReturnType(); |
56 | - if(is_null($returnType) OR !is_subclass_of($returnType->getName(), ChatControl::class)) { |
|
56 | + if(is_null($returnType) or !is_subclass_of($returnType->getName(), ChatControl::class)) { |
|
57 | 57 | throw new InvalidChatControlFactoryException("Return type of $interface::create() is not a subtype of " . ChatControl::class . "."); |
58 | 58 | } |
59 | 59 | } |