@@ -42,8 +42,8 @@ |
||
42 | 42 | */ |
43 | 43 | public function migrate() |
44 | 44 | { |
45 | - $this->msg('Setting up Aimeos TYPO3 test tables', 0); |
|
46 | - $this->status(''); |
|
45 | + $this->msg( 'Setting up Aimeos TYPO3 test tables', 0 ); |
|
46 | + $this->status( '' ); |
|
47 | 47 | |
48 | 48 | $filename = __DIR__ . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'mysql.sql'; |
49 | 49 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $ds = DIRECTORY_SEPARATOR; |
41 | 41 | $path = __DIR__ . $ds . 'data' . $ds . 'customer.php'; |
42 | 42 | |
43 | - if( ( $testdata = include( $path ) ) == false ){ |
|
43 | + if( ( $testdata = include( $path ) ) == false ) { |
|
44 | 44 | throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for customer domain', $path ) ); |
45 | 45 | } |
46 | 46 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $customerAddressManager = $customerManager->getSubManager( 'address', 'Typo3' ); |
50 | 50 | |
51 | 51 | foreach( $customerManager->searchItems( $customerManager->createSearch() ) as $id => $item ) { |
52 | - $parentIds[ 'customer/' . $item->getCode() ] = $id; |
|
52 | + $parentIds['customer/' . $item->getCode()] = $id; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | $this->conn->begin(); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2018 |
6 | 6 | */ |
7 | 7 | |
8 | -return array ( |
|
8 | +return array( |
|
9 | 9 | 'customer/property/type' => array( |
10 | 10 | 'customer/property/type/newsletter' => array( 'domain' => 'customer', 'code' => 'newsletter', 'label' => 'Newsletter', 'status' => 1 ), |
11 | 11 | ), |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | public function getPostDependencies() |
40 | 40 | { |
41 | - return array('TablesCreateTypo3'); |
|
41 | + return array( 'TablesCreateTypo3' ); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | { |
61 | 61 | $this->msg( 'Adding "vatid" column to fe_users tables', 0 ); $this->status( '' ); |
62 | 62 | |
63 | - foreach( $stmts AS $table => $stmt ) |
|
63 | + foreach( $stmts as $table => $stmt ) |
|
64 | 64 | { |
65 | 65 | $this->msg( sprintf( 'Checking "%1$s" table', $table ), 1 ); |
66 | 66 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | class FEUsersAddSiteIdTypo3 extends \Aimeos\MW\Setup\Task\Base |
16 | 16 | { |
17 | 17 | private $migrate = array( |
18 | - 'mysql' => array ( |
|
18 | + 'mysql' => array( |
|
19 | 19 | 'ALTER TABLE "fe_users" ADD "siteid" INTEGER NULL' |
20 | 20 | ), |
21 | 21 | ); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function getPostDependencies() |
41 | 41 | { |
42 | - return array('TablesCreateTypo3'); |
|
42 | + return array( 'TablesCreateTypo3' ); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | && $schema->tableExists( $table ) === true |
62 | 62 | && $schema->columnExists( $table, $column ) === false ) |
63 | 63 | { |
64 | - foreach ( $this->migrate[$schema->getName()] as $stmt ) |
|
64 | + foreach( $this->migrate[$schema->getName()] as $stmt ) |
|
65 | 65 | { |
66 | 66 | $this->execute( $stmt ); |
67 | 67 | } |
@@ -66,8 +66,7 @@ |
||
66 | 66 | $this->execute( $stmt ); |
67 | 67 | } |
68 | 68 | $this->status( 'done' ); |
69 | - } |
|
70 | - else |
|
69 | + } else |
|
71 | 70 | { |
72 | 71 | $this->status( 'OK' ); |
73 | 72 | } |
@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | { |
54 | 54 | $this->execute( $this->sql['address'] ); |
55 | 55 | $this->status( 'done' ); |
56 | - } |
|
57 | - else |
|
56 | + } else |
|
58 | 57 | { |
59 | 58 | $this->status( 'OK' ); |
60 | 59 | } |
@@ -66,8 +65,7 @@ discard block |
||
66 | 65 | { |
67 | 66 | $this->execute( $this->sql['list'] ); |
68 | 67 | $this->status( 'done' ); |
69 | - } |
|
70 | - else |
|
68 | + } else |
|
71 | 69 | { |
72 | 70 | $this->status( 'OK' ); |
73 | 71 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | protected function tearDown() |
34 | 34 | { |
35 | - unset($this->object); |
|
35 | + unset( $this->object ); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | protected function tearDown() |
34 | 34 | { |
35 | - unset($this->object); |
|
35 | + unset( $this->object ); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | protected function tearDown() |
34 | 34 | { |
35 | - unset($this->object); |
|
35 | + unset( $this->object ); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 |