aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sfIsisImporter.class.php12
-rw-r--r--lib/sfIsisImporterStats.class.php12
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()
+ {
}
}