浏览代码

correct code formatting

Anatoly Marinescu 13 年之前
父节点
当前提交
d1524ae1db
共有 1 个文件被更改,包括 4 次插入2 次删除
  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}
      */