diff options
author | Silvio <s1lv10@uol.com.br> | 2010-08-02 15:39:44 -0300 |
---|---|---|
committer | Silvio <s1lv10@uol.com.br> | 2010-08-02 15:39:44 -0300 |
commit | e7db3c2cb2325a773dd17650735740e0c57423e7 (patch) | |
tree | 53bdea89040cd6e0c194651e091a4dc007a632c2 | |
parent | de6ea6006bca5115d84e75dfdcd308caea5a9ffa (diff) | |
download | sf_isis_importer_plugin-e7db3c2cb2325a773dd17650735740e0c57423e7.tar.gz sf_isis_importer_plugin-e7db3c2cb2325a773dd17650735740e0c57423e7.tar.bz2 |
Coding style
-rw-r--r-- | lib/sfIsisImporter.class.php | 12 | ||||
-rw-r--r-- | lib/sfIsisImporterStats.class.php | 12 |
2 files changed, 16 insertions, 8 deletions
diff --git a/lib/sfIsisImporter.class.php b/lib/sfIsisImporter.class.php index a112155..7a263df 100644 --- a/lib/sfIsisImporter.class.php +++ b/lib/sfIsisImporter.class.php @@ -44,7 +44,8 @@ class sfIsisImporter extends IsisConnector * @param string $model Relation name * @return string Relation table id */ - static function getRelationId($relation) { + static function getRelationId($relation) + { return sfInflector::underscore($relation) .'_id'; } @@ -173,7 +174,8 @@ class sfIsisImporter extends IsisConnector * @param array $field Field data from ISIS database schema * @param int $row Row number */ - public function addField(&$model, $field, $row = 0) { + public function addField(&$model, $field, $row = 0) + { $value = $this->filterBrackets($this->getMainItem($field, $row)); if ($value != null) @@ -191,7 +193,8 @@ class sfIsisImporter extends IsisConnector * @param string $subfield Subfield name * @param int $row Row number */ - public function addSubfield(&$model, $field, $subfield, $row = 0) { + public function addSubfield(&$model, $field, $subfield, $row = 0) + { $value = $this->filterBrackets($this->getSubfield($field, $subfield, $row)); if ($value != null) @@ -308,7 +311,8 @@ class sfIsisImporter extends IsisConnector * @param array $values Values to be added * @param string $relation Relation name */ - public function addManyToMany(&$model, array $values, $relation) { + public function addManyToMany(&$model, array $values, $relation) + { $method = 'add'. $relation; foreach ($values as $value) diff --git a/lib/sfIsisImporterStats.class.php b/lib/sfIsisImporterStats.class.php index d7dae34..54789ab 100644 --- a/lib/sfIsisImporterStats.class.php +++ b/lib/sfIsisImporterStats.class.php @@ -45,7 +45,8 @@ class sfIsisImporterStats * * @param string $name Name */ - public function soundex($name) { + public function soundex($name) + { $this->stats['sounded'][soundex($name)] = $name; } @@ -54,7 +55,8 @@ class sfIsisImporterStats * * @param string $name Name */ - public function metaphone($name) { + public function metaphone($name) + { $this->stats['sounded'][metaphone($name)] = $name; } @@ -63,7 +65,8 @@ class sfIsisImporterStats * * @param string $name Name */ - public function similar($name) { + public function similar($name) + { $this->soundex($name); $this->metaphone($name); } @@ -73,6 +76,7 @@ class sfIsisImporterStats * * @todo Write and test */ - public function display() { + public function display() + { } } |