@@ -72,8 +72,7 @@ |
||
| 72 | 72 | { |
| 73 | 73 | $this->executeList( $stmts ); |
| 74 | 74 | $this->status( 'migrated' ); |
| 75 | - } |
|
| 76 | - else |
|
| 75 | + } else |
|
| 77 | 76 | { |
| 78 | 77 | $this->status( 'OK' ); |
| 79 | 78 | } |
@@ -72,8 +72,7 @@ |
||
| 72 | 72 | { |
| 73 | 73 | $this->executeList( $stmts ); |
| 74 | 74 | $this->status( 'migrated' ); |
| 75 | - } |
|
| 76 | - else |
|
| 75 | + } else |
|
| 77 | 76 | { |
| 78 | 77 | $this->status( 'OK' ); |
| 79 | 78 | } |
@@ -76,8 +76,7 @@ |
||
| 76 | 76 | { |
| 77 | 77 | $this->executeList( $stmtList ); |
| 78 | 78 | $this->status( 'renamed' ); |
| 79 | - } |
|
| 80 | - else |
|
| 79 | + } else |
|
| 81 | 80 | { |
| 82 | 81 | $this->status( 'OK' ); |
| 83 | 82 | } |
@@ -60,8 +60,7 @@ |
||
| 60 | 60 | { |
| 61 | 61 | $this->execute( $this->sql ); |
| 62 | 62 | $this->status( 'done' ); |
| 63 | - } |
|
| 64 | - else |
|
| 63 | + } else |
|
| 65 | 64 | { |
| 66 | 65 | $this->status( 'OK' ); |
| 67 | 66 | } |
@@ -62,8 +62,7 @@ |
||
| 62 | 62 | { |
| 63 | 63 | $this->executeList( $stmts ); |
| 64 | 64 | $this->status( 'done' ); |
| 65 | - } |
|
| 66 | - else |
|
| 65 | + } else |
|
| 67 | 66 | { |
| 68 | 67 | $this->status( 'OK' ); |
| 69 | 68 | } |
@@ -67,8 +67,7 @@ |
||
| 67 | 67 | { |
| 68 | 68 | $this->execute( $stmt ); |
| 69 | 69 | $this->status( 'renamed' ); |
| 70 | - } |
|
| 71 | - else |
|
| 70 | + } else |
|
| 72 | 71 | { |
| 73 | 72 | $this->status( 'OK' ); |
| 74 | 73 | } |
@@ -81,8 +81,7 @@ |
||
| 81 | 81 | } else { |
| 82 | 82 | $this->status( 'OK' ); |
| 83 | 83 | } |
| 84 | - } |
|
| 85 | - else |
|
| 84 | + } else |
|
| 86 | 85 | { |
| 87 | 86 | $this->status( 'OK' ); |
| 88 | 87 | } |
@@ -86,10 +86,14 @@ |
||
| 86 | 86 | $type->setStatus( $dataset['status'] ); |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - try { |
|
| 89 | + try |
|
| 90 | + { |
|
| 90 | 91 | $domainManager->saveItem( $type ); |
| 91 | 92 | $num++; |
| 92 | - } catch( \Exception $e ) {; } // if type was already available |
|
| 93 | + } |
|
| 94 | + catch( \Exception $e ) |
|
| 95 | + { |
|
| 96 | +; } // if type was already available |
|
| 93 | 97 | } |
| 94 | 98 | |
| 95 | 99 | $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | } catch( \Exception $e ) {; } // if type was already available |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
|
| 80 | + $this->status( $num > 0 ? $num.'/'.$total : 'OK' ); |
|
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | \ No newline at end of file |
@@ -65,8 +65,7 @@ |
||
| 65 | 65 | { |
| 66 | 66 | $this->executeList( $stmts ); |
| 67 | 67 | $this->status( 'added' ); |
| 68 | - } |
|
| 69 | - else |
|
| 68 | + } else |
|
| 70 | 69 | { |
| 71 | 70 | $this->status( 'OK' ); |
| 72 | 71 | } |