original_string: public function loadYmlFile($fileName, $path)
      {
          $configDirectories = array(($path!=null)?$path:$this->rootDir);
  
          $locator = new FileLocator($configDirectories);
          $ymlFile = $locator->locate($fileName, null, true);
          $ymlDatas = Yaml::parse($ymlFile);
  
          $dataArray = array();
          foreach ($ymlDatas as $key => $data) {
              $dataArray[$key] = array_merge(
                  $data);
          }
  
          return $dataArray;
      }
code: public function loadYmlFile($fileName, $path)
      {
          $configDirectories = array(($path!=null)?$path:$this->rootDir);
  
          $locator = new FileLocator($configDirectories);
          $ymlFile = $locator->locate($fileName, null, true);
          $ymlDatas = Yaml::parse($ymlFile);
  
          $dataArray = array();
          foreach ($ymlDatas as $key => $data) {
              $dataArray[$key] = array_merge(
                  $data);
          }
  
          return $dataArray;
      }
code_tokens: public function loadYmlFile ( $ fileName , $ path ) { $ configDirectories = array ( ( $ path != null ) ? $ path : $ this -> rootDir ) ; $ locator = new FileLocator ( $ configDirectories ) ; $ ymlFile = $ locator -> locate ( $ fileName , null , true ) ; $ ymlDatas = Yaml :: parse ( $ ymlFile ) ; $ dataArray = array ( ) ; foreach ( $ ymlDatas as $ key => $ data ) { $ dataArray [ $ key ] = array_merge ( $ data ) ; } return $ dataArray ; }
docstring: Load a yml file and return an array of the data ordered by keys
  @param string $fileName
  @param string $path (full path to search in)
  @return array
docstring_tokens: Load a yml file and return an array of the data ordered by keys