Completed
Pull Request — master (#5860)
by Peter
11:09
created
lib/Doctrine/ORM/EntityManager.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -842,7 +842,7 @@
 block discarded – undo
842 842
             );
843 843
         } elseif ($conn instanceof Connection) {
844 844
             if ($eventManager !== null && $conn->getEventManager() !== $eventManager) {
845
-                 throw ORMException::mismatchedEventManager();
845
+                    throw ORMException::mismatchedEventManager();
846 846
             }
847 847
         } else {
848 848
             throw new \InvalidArgumentException("Invalid argument: " . $conn);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -224,8 +224,8 @@  discard block
 block discarded – undo
224 224
      */
225 225
     public function transactional($func)
226 226
     {
227
-        if (!is_callable($func)) {
228
-            throw new \InvalidArgumentException('Expected argument of type "callable", got "' . gettype($func) . '"');
227
+        if ( ! is_callable($func)) {
228
+            throw new \InvalidArgumentException('Expected argument of type "callable", got "'.gettype($func).'"');
229 229
         }
230 230
 
231 231
         $this->conn->beginTransaction();
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
      */
754 754
     public function isOpen()
755 755
     {
756
-        return (!$this->closed);
756
+        return ( ! $this->closed);
757 757
     }
758 758
 
759 759
     /**
@@ -845,7 +845,7 @@  discard block
 block discarded – undo
845 845
                  throw ORMException::mismatchedEventManager();
846 846
             }
847 847
         } else {
848
-            throw new \InvalidArgumentException("Invalid argument: " . $conn);
848
+            throw new \InvalidArgumentException("Invalid argument: ".$conn);
849 849
         }
850 850
 
851 851
         return new EntityManager($conn, $config, $conn->getEventManager());
Please login to merge, or discard this patch.