Browse Source

correct code formatting

Anatoly Marinescu 13 năm trước cách đây
mục cha
commit
d1524ae1db
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      lib/Gedmo/Tree/Strategy/ORM/Closure.php

+ 4 - 2
lib/Gedmo/Tree/Strategy/ORM/Closure.php

@@ -170,13 +170,15 @@ class Closure implements Strategy
     public function processScheduledDelete($em, $entity)
     {}
 
-    protected function _getJoinColumnFieldName($association)
+    protected function getJoinColumnFieldName($association)
     {
-        if (count($association['joinColumnFieldNames']) > 1)
+        if (count($association['joinColumnFieldNames']) > 1) {
             throw new RuntimeException('More association on field '.$association['fieldName']);
+        }
 
         return array_shift($association['joinColumnFieldNames']);
     }
+
     /**
      * {@inheritdoc}
      */