Completed
Push — master ( 15afa8...f212df )
by Jakub
03:00
created
src/DI/ChatExtension.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,10 +50,10 @@
 block discarded – undo
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
   }
Please login to merge, or discard this patch.