@@ -8,7 +8,7 @@ |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'madmin_queue' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'madmin_queue' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | 12 | |
13 | 13 | $table = $schema->createTable( 'madmin_queue' ); |
14 | 14 |
@@ -8,7 +8,8 @@ |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'madmin_queue' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'madmin_queue' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
12 | + { |
|
12 | 13 | |
13 | 14 | $table = $schema->createTable( 'madmin_queue' ); |
14 | 15 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | 11 | |
12 | - 'mshop_locale_site' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | + 'mshop_locale_site' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
13 | 13 | |
14 | 14 | $table = $schema->createTable( 'mshop_locale_site' ); |
15 | 15 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | return $schema; |
35 | 35 | }, |
36 | 36 | |
37 | - 'mshop_locale_language' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
37 | + 'mshop_locale_language' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
38 | 38 | |
39 | 39 | $table = $schema->createTable( 'mshop_locale_language' ); |
40 | 40 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | return $schema; |
57 | 57 | }, |
58 | 58 | |
59 | - 'mshop_locale_currency' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
59 | + 'mshop_locale_currency' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
60 | 60 | |
61 | 61 | $table = $schema->createTable( 'mshop_locale_currency' ); |
62 | 62 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | return $schema; |
79 | 79 | }, |
80 | 80 | |
81 | - 'mshop_locale' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
81 | + 'mshop_locale' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
82 | 82 | |
83 | 83 | $table = $schema->createTable( 'mshop_locale' ); |
84 | 84 |
@@ -9,7 +9,8 @@ discard block |
||
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | 11 | |
12 | - 'mshop_locale_site' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | + 'mshop_locale_site' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
13 | + { |
|
13 | 14 | |
14 | 15 | $table = $schema->createTable( 'mshop_locale_site' ); |
15 | 16 | |
@@ -34,7 +35,8 @@ discard block |
||
34 | 35 | return $schema; |
35 | 36 | }, |
36 | 37 | |
37 | - 'mshop_locale_language' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
38 | + 'mshop_locale_language' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
39 | + { |
|
38 | 40 | |
39 | 41 | $table = $schema->createTable( 'mshop_locale_language' ); |
40 | 42 | |
@@ -56,7 +58,8 @@ discard block |
||
56 | 58 | return $schema; |
57 | 59 | }, |
58 | 60 | |
59 | - 'mshop_locale_currency' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
61 | + 'mshop_locale_currency' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
62 | + { |
|
60 | 63 | |
61 | 64 | $table = $schema->createTable( 'mshop_locale_currency' ); |
62 | 65 | |
@@ -78,7 +81,8 @@ discard block |
||
78 | 81 | return $schema; |
79 | 82 | }, |
80 | 83 | |
81 | - 'mshop_locale' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
84 | + 'mshop_locale' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
85 | + { |
|
82 | 86 | |
83 | 87 | $table = $schema->createTable( 'mshop_locale' ); |
84 | 88 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'madmin_job' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'madmin_job' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | 12 | |
13 | 13 | $table = $schema->createTable( 'madmin_job' ); |
14 | 14 |
@@ -8,7 +8,8 @@ |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'madmin_job' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'madmin_job' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
12 | + { |
|
12 | 13 | |
13 | 14 | $table = $schema->createTable( 'madmin_job' ); |
14 | 15 |
@@ -8,7 +8,8 @@ discard block |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'mshop_customer' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'mshop_customer' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
12 | + { |
|
12 | 13 | |
13 | 14 | $table = $schema->createTable( 'mshop_customer' ); |
14 | 15 | |
@@ -57,7 +58,8 @@ discard block |
||
57 | 58 | return $schema; |
58 | 59 | }, |
59 | 60 | |
60 | - 'mshop_customer_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
61 | + 'mshop_customer_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
62 | + { |
|
61 | 63 | |
62 | 64 | $table = $schema->createTable( 'mshop_customer_address' ); |
63 | 65 | |
@@ -106,7 +108,8 @@ discard block |
||
106 | 108 | return $schema; |
107 | 109 | }, |
108 | 110 | |
109 | - 'mshop_customer_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
111 | + 'mshop_customer_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
112 | + { |
|
110 | 113 | |
111 | 114 | $table = $schema->createTable( 'mshop_customer_list_type' ); |
112 | 115 | |
@@ -129,7 +132,8 @@ discard block |
||
129 | 132 | return $schema; |
130 | 133 | }, |
131 | 134 | |
132 | - 'mshop_customer_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
135 | + 'mshop_customer_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
136 | + { |
|
133 | 137 | |
134 | 138 | $table = $schema->createTable( 'mshop_customer_list' ); |
135 | 139 | |
@@ -165,7 +169,8 @@ discard block |
||
165 | 169 | return $schema; |
166 | 170 | }, |
167 | 171 | |
168 | - 'mshop_customer_group' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
172 | + 'mshop_customer_group' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
173 | + { |
|
169 | 174 | |
170 | 175 | $table = $schema->createTable( 'mshop_customer_group' ); |
171 | 176 |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'mshop_customer' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'mshop_customer' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | 12 | |
13 | 13 | $table = $schema->createTable( 'mshop_customer' ); |
14 | 14 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $table->addColumn( 'status', 'smallint', [] ); |
43 | 43 | $table->addColumn( 'mtime', 'datetime', [] ); |
44 | 44 | $table->addColumn( 'ctime', 'datetime', [] ); |
45 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
45 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
46 | 46 | |
47 | 47 | $table->setPrimaryKey( array( 'id' ), 'pk_mscus_id' ); |
48 | 48 | $table->addUniqueIndex( array( 'siteid', 'code' ), 'unq_mscus_sid_code' ); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | return $schema; |
57 | 57 | }, |
58 | 58 | |
59 | - 'mshop_customer_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
59 | + 'mshop_customer_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
60 | 60 | |
61 | 61 | $table = $schema->createTable( 'mshop_customer_address' ); |
62 | 62 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $table->addColumn( 'pos', 'smallint', [] ); |
88 | 88 | $table->addColumn( 'mtime', 'datetime', [] ); |
89 | 89 | $table->addColumn( 'ctime', 'datetime', [] ); |
90 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
90 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
91 | 91 | |
92 | 92 | $table->setPrimaryKey( array( 'id' ), 'pk_mscusad_id' ); |
93 | 93 | $table->addIndex( array( 'parentid' ), 'fk_mscusad_pid' ); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | return $schema; |
105 | 105 | }, |
106 | 106 | |
107 | - 'mshop_customer_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
107 | + 'mshop_customer_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
108 | 108 | |
109 | 109 | $table = $schema->createTable( 'mshop_customer_list_type' ); |
110 | 110 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | return $schema; |
128 | 128 | }, |
129 | 129 | |
130 | - 'mshop_customer_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
130 | + 'mshop_customer_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
131 | 131 | |
132 | 132 | $table = $schema->createTable( 'mshop_customer_list' ); |
133 | 133 | |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | return $schema; |
166 | 166 | }, |
167 | 167 | |
168 | - 'mshop_customer_group' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
168 | + 'mshop_customer_group' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
169 | 169 | |
170 | 170 | $table = $schema->createTable( 'mshop_customer_group' ); |
171 | 171 |
@@ -9,7 +9,8 @@ discard block |
||
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | 11 | |
12 | - 'mshop_supplier' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | + 'mshop_supplier' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
13 | + { |
|
13 | 14 | |
14 | 15 | $table = $schema->createTable( 'mshop_supplier' ); |
15 | 16 | |
@@ -28,7 +29,8 @@ discard block |
||
28 | 29 | return $schema; |
29 | 30 | }, |
30 | 31 | |
31 | - 'mshop_supplier_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
32 | + 'mshop_supplier_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
33 | + { |
|
32 | 34 | |
33 | 35 | $table = $schema->createTable( 'mshop_supplier_address' ); |
34 | 36 | |
@@ -69,7 +71,8 @@ discard block |
||
69 | 71 | return $schema; |
70 | 72 | }, |
71 | 73 | |
72 | - 'mshop_supplier_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
74 | + 'mshop_supplier_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
75 | + { |
|
73 | 76 | |
74 | 77 | $table = $schema->createTable( 'mshop_supplier_list_type' ); |
75 | 78 | |
@@ -92,7 +95,8 @@ discard block |
||
92 | 95 | return $schema; |
93 | 96 | }, |
94 | 97 | |
95 | - 'mshop_supplier_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
98 | + 'mshop_supplier_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
99 | + { |
|
96 | 100 | |
97 | 101 | $table = $schema->createTable( 'mshop_supplier_list' ); |
98 | 102 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | 11 | |
12 | - 'mshop_supplier' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | + 'mshop_supplier' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
13 | 13 | |
14 | 14 | $table = $schema->createTable( 'mshop_supplier' ); |
15 | 15 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $table->addColumn( 'status', 'smallint', [] ); |
21 | 21 | $table->addColumn( 'mtime', 'datetime', [] ); |
22 | 22 | $table->addColumn( 'ctime', 'datetime', [] ); |
23 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
23 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
24 | 24 | |
25 | 25 | $table->setPrimaryKey( array( 'id' ), 'pk_mssup_id' ); |
26 | 26 | $table->addUniqueIndex( array( 'siteid', 'code' ), 'unq_mssup_sid_code' ); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | return $schema; |
31 | 31 | }, |
32 | 32 | |
33 | - 'mshop_supplier_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
33 | + 'mshop_supplier_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
34 | 34 | |
35 | 35 | $table = $schema->createTable( 'mshop_supplier_address' ); |
36 | 36 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $table->addColumn( 'pos', 'smallint', [] ); |
62 | 62 | $table->addColumn( 'mtime', 'datetime', [] ); |
63 | 63 | $table->addColumn( 'ctime', 'datetime', [] ); |
64 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
64 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
65 | 65 | |
66 | 66 | $table->setPrimaryKey( array( 'id' ), 'pk_mssupad_id' ); |
67 | 67 | $table->addIndex( array( 'siteid', 'parentid' ), 'idx_mssupad_sid_rid' ); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | return $schema; |
74 | 74 | }, |
75 | 75 | |
76 | - 'mshop_supplier_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
76 | + 'mshop_supplier_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
77 | 77 | |
78 | 78 | $table = $schema->createTable( 'mshop_supplier_list_type' ); |
79 | 79 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | return $schema; |
97 | 97 | }, |
98 | 98 | |
99 | - 'mshop_supplier_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
99 | + 'mshop_supplier_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
100 | 100 | |
101 | 101 | $table = $schema->createTable( 'mshop_supplier_list' ); |
102 | 102 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | protected function tearDown() |
23 | 23 | { |
24 | - unset($this->object); |
|
24 | + unset( $this->object ); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | $name = 'MAdminCacheProxyDefaultTest'; |
40 | 40 | $this->context->getConfig()->set( 'madmin/cache/manager/name', $name ); |
41 | 41 | |
42 | - \Aimeos\MAdmin\Cache\Manager\Factory::injectManager( '\\Aimeos\\MAdmin\\Cache\\Manager\\' . $name, $manager ); |
|
42 | + \Aimeos\MAdmin\Cache\Manager\Factory::injectManager( '\\Aimeos\\MAdmin\\Cache\\Manager\\'.$name, $manager ); |
|
43 | 43 | |
44 | 44 | $this->object = new \Aimeos\MAdmin\Cache\Proxy\Standard( $this->context ); |
45 | 45 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $this->additional->setEditor( 'core:unittest' ); |
52 | 52 | |
53 | 53 | $ds = DIRECTORY_SEPARATOR; |
54 | - $path = __DIR__ . $ds . 'data' . $ds . 'productproperty.php'; |
|
54 | + $path = __DIR__.$ds.'data'.$ds.'productproperty.php'; |
|
55 | 55 | |
56 | 56 | if( ( $testdata = include( $path ) ) == false ) { |
57 | 57 | throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for product domain', $path ) ); |
@@ -89,19 +89,19 @@ discard block |
||
89 | 89 | $type->setStatus( $dataset['status'] ); |
90 | 90 | |
91 | 91 | $productPropertyTypeManager->saveItem( $type ); |
92 | - $typeIds[ $key ] = $type->getId(); |
|
92 | + $typeIds[$key] = $type->getId(); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | $prodProperty = $productPropertyManager->createItem(); |
96 | 96 | foreach( $testdata['product/property'] as $key => $dataset ) |
97 | 97 | { |
98 | - if( !isset( $typeIds[ $dataset['typeid'] ] ) ) { |
|
98 | + if( !isset( $typeIds[$dataset['typeid']] ) ) { |
|
99 | 99 | throw new \Aimeos\MW\Setup\Exception( sprintf( 'No product property type ID found for "%1$s"', $dataset['typeid'] ) ); |
100 | 100 | } |
101 | 101 | |
102 | 102 | $prodProperty->setId( null ); |
103 | - $prodProperty->setParentId( $prodIds[ $dataset['parentid'] ] ); |
|
104 | - $prodProperty->setTypeId( $typeIds[ $dataset['typeid'] ] ); |
|
103 | + $prodProperty->setParentId( $prodIds[$dataset['parentid']] ); |
|
104 | + $prodProperty->setTypeId( $typeIds[$dataset['typeid']] ); |
|
105 | 105 | $prodProperty->setLanguageId( $dataset['langid'] ); |
106 | 106 | $prodProperty->setValue( $dataset['value'] ); |
107 | 107 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | $search = $productManager->createSearch(); |
125 | 125 | |
126 | 126 | foreach( $productManager->searchItems( $search ) as $id => $item ) { |
127 | - $entry[ 'product/' . $item->getCode() ] = $id; |
|
127 | + $entry['product/'.$item->getCode()] = $id; |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | return $entry; |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2014-2015 |
6 | 6 | */ |
7 | 7 | |
8 | -return array ( |
|
8 | +return array( |
|
9 | 9 | 'product/property/type' => array( |
10 | 10 | 'product/property/type/packheight' => array( 'domain' => 'product', 'code' => 'package-height', 'label' => 'Package height', 'status' => 1 ), |
11 | 11 | 'product/property/type/packlength' => array( 'domain' => 'product', 'code' => 'package-length', 'label' => 'Package lenght', 'status' => 1 ), |