Sfoglia il codice sorgente

minor changes to stay as the coding standards

Daniel Gomes 13 anni fa
parent
commit
cf7b64ee08
1 ha cambiato i file con 10 aggiunte e 11 eliminazioni
  1. 10 11
      lib/Gedmo/Tree/Entity/Repository/NestedTreeRepository.php

+ 10 - 11
lib/Gedmo/Tree/Entity/Repository/NestedTreeRepository.php

@@ -888,25 +888,24 @@ class NestedTreeRepository extends AbstractTreeRepository
         $nestedTree = $this->processTree($nodes);
         $nestedTree = $this->processTree($nodes);
         
         
         // If you don't want any html output it will return the nested array
         // If you don't want any html output it will return the nested array
-        if(!$html){
+        if (!$html) {
             return $nestedTree;
             return $nestedTree;
         }
         }
 
 
         //Defines html decorators and opcional options
         //Defines html decorators and opcional options
-        if(!empty($options['root'])){
+        if (!empty($options['root'])) {
             $root_open  = $options['root']['open'];
             $root_open  = $options['root']['open'];
             $root_close = $options['root']['close'];
             $root_close = $options['root']['close'];
-        }else{
+        } else {
             $root_open  = "<ul> ";
             $root_open  = "<ul> ";
             $root_close = " </ul>";
             $root_close = " </ul>";
-        
-            if(!empty($options['child'])){
-                $child_open  = $options['child']['open'];
-                $child_close = $options['child']['close'];
-            }else{
-                $child_open  = "<li> ";
-                $child_close = " </li>";
-            }
+        }
+        if (!empty($options['child'])) {
+            $child_open  = $options['child']['open'];
+            $child_close = $options['child']['close'];
+        } else {
+            $child_open  = "<li> ";
+            $child_close = " </li>";
         }
         }
 
 
         $html_decorator = array(
         $html_decorator = array(