Commit 56e2d362 authored by nicobn's avatar nicobn

Coding standard compliance

parent 9c9597fc
...@@ -36,27 +36,27 @@ ...@@ -36,27 +36,27 @@
* @version $Revision$ * @version $Revision$
* @author Nicolas Bérard-Nault <nicobn@gmail.com> * @author Nicolas Bérard-Nault <nicobn@gmail.com>
*/ */
abstract class Doctrine_Import_XML class Doctrine_Import_Xml
{ {
/** /**
* importObj * importObj
* *
* A method to import a XML Schema and translate it into a Doctrine_Record object * A method to import a XML Schema and translate it into a Doctrine_Record object
* *
* @param string $Schema The file containing the XML schema * @param string $schema The file containing the XML schema
* @param string $Directory The directory where the Doctrine_Record classes will * @param string $directory The directory where the Doctrine_Record classes will
* be written * be written
* @static * @static
*/ */
public static function importObj($Schema, $Directory) public function importObj($schema, $directory)
{ {
$Builder = new Doctrine_Import_Builder(); $Builder = new Doctrine_Import_Builder();
$Builder->setTargetPath($Directory); $Builder->setTargetPath($directory);
$Arr = self::importArr($Schema); $Arr = self::importArr($schema);
foreach ($Arr as $Name => $Columns) { foreach ($arr as $name => $columns) {
$Builder->buildRecord($Name, $Columns); $Builder->buildRecord($name, $columns);
} }
} }
...@@ -66,7 +66,7 @@ abstract class Doctrine_Import_XML ...@@ -66,7 +66,7 @@ abstract class Doctrine_Import_XML
* A method to import a XML Schema and translate it into a property array. * A method to import a XML Schema and translate it into a property array.
* The function returns that property array. * The function returns that property array.
* *
* @param string $Schema Path to the file containing the XML schema * @param string $schema Path to the file containing the XML schema
* @return array * @return array
* @static * @static
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment