[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins-dist / textwheel / inc / yaml-mini.php
index acce627..867a697 100644 (file)
@@ -1,23 +1,20 @@
 <?php
 
-if (!defined('_ECRIRE_INC_VERSION')) return;
+if (!defined('_ECRIRE_INC_VERSION')) {
+       return;
+}
 # yaml_decode
 
 function yaml_decode($input) {
-       require_once dirname(__FILE__).'/../lib/yaml/sfYaml.php';
-       require_once dirname(__FILE__).'/../lib/yaml/sfYamlParser.php';
+       require_once dirname(__FILE__) . '/../lib/yaml/sfYaml.php';
+       require_once dirname(__FILE__) . '/../lib/yaml/sfYamlParser.php';
 
        $yaml = new sfYamlParser();
 
-       try
-       {
-         return $yaml->parse($input);
-         
-       }
-       catch (Exception $e)
-       {
+       try {
+               return $yaml->parse($input);
+
+       } catch (Exception $e) {
                return null;
        }
 }
-
-?>
\ No newline at end of file