@@ -66,8 +66,7 @@ |
||
66 | 66 | { |
67 | 67 | $this->execute( $stmt ); |
68 | 68 | $this->status( 'done' ); |
69 | - } |
|
70 | - else |
|
69 | + } else |
|
71 | 70 | { |
72 | 71 | $this->status( 'OK' ); |
73 | 72 | } |
@@ -132,56 +132,56 @@ discard block |
||
132 | 132 | |
133 | 133 | $this->assertTrue( $item->getId() !== null ); |
134 | 134 | $this->assertEquals( $item->getId(), $itemSaved->getId() ); |
135 | - $this->assertEquals( $item->getParentId(), $itemSaved->getParentId()); |
|
136 | - $this->assertEquals( $item->getPosition(), $itemSaved->getPosition()); |
|
137 | - $this->assertEquals( $item->getCompany(), $itemSaved->getCompany()); |
|
138 | - $this->assertEquals( $item->getVatID(), $itemSaved->getVatID()); |
|
139 | - $this->assertEquals( $item->getSalutation(), $itemSaved->getSalutation()); |
|
140 | - $this->assertEquals( $item->getTitle(), $itemSaved->getTitle()); |
|
141 | - $this->assertEquals( $item->getFirstname(), $itemSaved->getFirstname()); |
|
142 | - $this->assertEquals( $item->getLastname(), $itemSaved->getLastname()); |
|
143 | - $this->assertEquals( $item->getAddress1(), $itemSaved->getAddress1()); |
|
144 | - $this->assertEquals( $item->getAddress2(), $itemSaved->getAddress2()); |
|
145 | - $this->assertEquals( $item->getAddress3(), $itemSaved->getAddress3()); |
|
146 | - $this->assertEquals( $item->getPostal(), $itemSaved->getPostal()); |
|
147 | - $this->assertEquals( $item->getCity(), $itemSaved->getCity()); |
|
148 | - $this->assertEquals( $item->getState(), $itemSaved->getState()); |
|
149 | - $this->assertEquals( $item->getCountryId(), $itemSaved->getCountryId()); |
|
150 | - $this->assertEquals( $item->getLanguageId(), $itemSaved->getLanguageId()); |
|
151 | - $this->assertEquals( $item->getTelephone(), $itemSaved->getTelephone()); |
|
152 | - $this->assertEquals( $item->getEmail(), $itemSaved->getEmail()); |
|
153 | - $this->assertEquals( $item->getTelefax(), $itemSaved->getTelefax()); |
|
154 | - $this->assertEquals( $item->getWebsite(), $itemSaved->getWebsite()); |
|
155 | - $this->assertEquals( $item->getLongitude(), $itemSaved->getLongitude()); |
|
156 | - $this->assertEquals( $item->getLatitude(), $itemSaved->getLatitude()); |
|
135 | + $this->assertEquals( $item->getParentId(), $itemSaved->getParentId() ); |
|
136 | + $this->assertEquals( $item->getPosition(), $itemSaved->getPosition() ); |
|
137 | + $this->assertEquals( $item->getCompany(), $itemSaved->getCompany() ); |
|
138 | + $this->assertEquals( $item->getVatID(), $itemSaved->getVatID() ); |
|
139 | + $this->assertEquals( $item->getSalutation(), $itemSaved->getSalutation() ); |
|
140 | + $this->assertEquals( $item->getTitle(), $itemSaved->getTitle() ); |
|
141 | + $this->assertEquals( $item->getFirstname(), $itemSaved->getFirstname() ); |
|
142 | + $this->assertEquals( $item->getLastname(), $itemSaved->getLastname() ); |
|
143 | + $this->assertEquals( $item->getAddress1(), $itemSaved->getAddress1() ); |
|
144 | + $this->assertEquals( $item->getAddress2(), $itemSaved->getAddress2() ); |
|
145 | + $this->assertEquals( $item->getAddress3(), $itemSaved->getAddress3() ); |
|
146 | + $this->assertEquals( $item->getPostal(), $itemSaved->getPostal() ); |
|
147 | + $this->assertEquals( $item->getCity(), $itemSaved->getCity() ); |
|
148 | + $this->assertEquals( $item->getState(), $itemSaved->getState() ); |
|
149 | + $this->assertEquals( $item->getCountryId(), $itemSaved->getCountryId() ); |
|
150 | + $this->assertEquals( $item->getLanguageId(), $itemSaved->getLanguageId() ); |
|
151 | + $this->assertEquals( $item->getTelephone(), $itemSaved->getTelephone() ); |
|
152 | + $this->assertEquals( $item->getEmail(), $itemSaved->getEmail() ); |
|
153 | + $this->assertEquals( $item->getTelefax(), $itemSaved->getTelefax() ); |
|
154 | + $this->assertEquals( $item->getWebsite(), $itemSaved->getWebsite() ); |
|
155 | + $this->assertEquals( $item->getLongitude(), $itemSaved->getLongitude() ); |
|
156 | + $this->assertEquals( $item->getLatitude(), $itemSaved->getLatitude() ); |
|
157 | 157 | |
158 | 158 | $this->assertEquals( $this->editor, $itemSaved->getEditor() ); |
159 | 159 | $this->assertRegExp( '/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeCreated() ); |
160 | - $this->assertRegExp('/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeModified()); |
|
160 | + $this->assertRegExp( '/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeModified() ); |
|
161 | 161 | |
162 | 162 | $this->assertEquals( $itemExp->getId(), $itemUpd->getId() ); |
163 | - $this->assertEquals( $itemExp->getParentId(), $itemUpd->getParentId()); |
|
164 | - $this->assertEquals( $itemExp->getPosition(), $itemUpd->getPosition()); |
|
165 | - $this->assertEquals( $itemExp->getCompany(), $itemUpd->getCompany()); |
|
166 | - $this->assertEquals( $itemExp->getVatID(), $itemUpd->getVatID()); |
|
167 | - $this->assertEquals( $itemExp->getSalutation(), $itemUpd->getSalutation()); |
|
168 | - $this->assertEquals( $itemExp->getTitle(), $itemUpd->getTitle()); |
|
169 | - $this->assertEquals( $itemExp->getFirstname(), $itemUpd->getFirstname()); |
|
170 | - $this->assertEquals( $itemExp->getLastname(), $itemUpd->getLastname()); |
|
171 | - $this->assertEquals( $itemExp->getAddress1(), $itemUpd->getAddress1()); |
|
172 | - $this->assertEquals( $itemExp->getAddress2(), $itemUpd->getAddress2()); |
|
173 | - $this->assertEquals( $itemExp->getAddress3(), $itemUpd->getAddress3()); |
|
174 | - $this->assertEquals( $itemExp->getPostal(), $itemUpd->getPostal()); |
|
175 | - $this->assertEquals( $itemExp->getCity(), $itemUpd->getCity()); |
|
176 | - $this->assertEquals( $itemExp->getState(), $itemUpd->getState()); |
|
177 | - $this->assertEquals( $itemExp->getCountryId(), $itemUpd->getCountryId()); |
|
178 | - $this->assertEquals( $itemExp->getLanguageId(), $itemUpd->getLanguageId()); |
|
179 | - $this->assertEquals( $itemExp->getTelephone(), $itemUpd->getTelephone()); |
|
180 | - $this->assertEquals( $itemExp->getEmail(), $itemUpd->getEmail()); |
|
181 | - $this->assertEquals( $itemExp->getTelefax(), $itemUpd->getTelefax()); |
|
182 | - $this->assertEquals( $itemExp->getWebsite(), $itemUpd->getWebsite()); |
|
183 | - $this->assertEquals( $itemExp->getLongitude(), $itemUpd->getLongitude()); |
|
184 | - $this->assertEquals( $itemExp->getLatitude(), $itemUpd->getLatitude()); |
|
163 | + $this->assertEquals( $itemExp->getParentId(), $itemUpd->getParentId() ); |
|
164 | + $this->assertEquals( $itemExp->getPosition(), $itemUpd->getPosition() ); |
|
165 | + $this->assertEquals( $itemExp->getCompany(), $itemUpd->getCompany() ); |
|
166 | + $this->assertEquals( $itemExp->getVatID(), $itemUpd->getVatID() ); |
|
167 | + $this->assertEquals( $itemExp->getSalutation(), $itemUpd->getSalutation() ); |
|
168 | + $this->assertEquals( $itemExp->getTitle(), $itemUpd->getTitle() ); |
|
169 | + $this->assertEquals( $itemExp->getFirstname(), $itemUpd->getFirstname() ); |
|
170 | + $this->assertEquals( $itemExp->getLastname(), $itemUpd->getLastname() ); |
|
171 | + $this->assertEquals( $itemExp->getAddress1(), $itemUpd->getAddress1() ); |
|
172 | + $this->assertEquals( $itemExp->getAddress2(), $itemUpd->getAddress2() ); |
|
173 | + $this->assertEquals( $itemExp->getAddress3(), $itemUpd->getAddress3() ); |
|
174 | + $this->assertEquals( $itemExp->getPostal(), $itemUpd->getPostal() ); |
|
175 | + $this->assertEquals( $itemExp->getCity(), $itemUpd->getCity() ); |
|
176 | + $this->assertEquals( $itemExp->getState(), $itemUpd->getState() ); |
|
177 | + $this->assertEquals( $itemExp->getCountryId(), $itemUpd->getCountryId() ); |
|
178 | + $this->assertEquals( $itemExp->getLanguageId(), $itemUpd->getLanguageId() ); |
|
179 | + $this->assertEquals( $itemExp->getTelephone(), $itemUpd->getTelephone() ); |
|
180 | + $this->assertEquals( $itemExp->getEmail(), $itemUpd->getEmail() ); |
|
181 | + $this->assertEquals( $itemExp->getTelefax(), $itemUpd->getTelefax() ); |
|
182 | + $this->assertEquals( $itemExp->getWebsite(), $itemUpd->getWebsite() ); |
|
183 | + $this->assertEquals( $itemExp->getLongitude(), $itemUpd->getLongitude() ); |
|
184 | + $this->assertEquals( $itemExp->getLatitude(), $itemUpd->getLatitude() ); |
|
185 | 185 | |
186 | 186 | $this->assertEquals( $this->editor, $itemUpd->getEditor() ); |
187 | 187 | $this->assertEquals( $itemExp->getTimeCreated(), $itemUpd->getTimeCreated() ); |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | $this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultSaved ); |
191 | 191 | $this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultUpd ); |
192 | 192 | |
193 | - $this->setExpectedException('\\Aimeos\\MShop\\Exception'); |
|
193 | + $this->setExpectedException( '\\Aimeos\\MShop\\Exception' ); |
|
194 | 194 | $this->object->getItem( $itemSaved->getId() ); |
195 | 195 | } |
196 | 196 |
@@ -57,11 +57,11 @@ discard block |
||
57 | 57 | $search->setConditions( $search->compare( '==', 'customer.property.editor', $this->editor ) ); |
58 | 58 | $results = $this->object->searchItems( $search ); |
59 | 59 | |
60 | - if( ( $item = reset($results) ) === false ) { |
|
60 | + if( ( $item = reset( $results ) ) === false ) { |
|
61 | 61 | throw new \RuntimeException( 'No property item found' ); |
62 | 62 | } |
63 | 63 | |
64 | - $item->setId(null); |
|
64 | + $item->setId( null ); |
|
65 | 65 | $item->setLanguageId( 'en' ); |
66 | 66 | $resultSaved = $this->object->saveItem( $item ); |
67 | 67 | $itemSaved = $this->object->getItem( $item->getId() ); |
@@ -110,13 +110,13 @@ discard block |
||
110 | 110 | { |
111 | 111 | $search = $this->object->createSearch(); |
112 | 112 | $conditions = array( |
113 | - $search->compare( '~=', 'customer.property.value', '1'), |
|
113 | + $search->compare( '~=', 'customer.property.value', '1' ), |
|
114 | 114 | $search->compare( '==', 'customer.property.editor', $this->editor ) |
115 | 115 | ); |
116 | 116 | $search->setConditions( $search->combine( '&&', $conditions ) ); |
117 | 117 | $results = $this->object->searchItems( $search ); |
118 | 118 | |
119 | - if( ($expected = reset($results)) === false ) { |
|
119 | + if( ( $expected = reset( $results ) ) === false ) { |
|
120 | 120 | throw new \RuntimeException( sprintf( 'No customer property item found for value "%1$s".', '1' ) ); |
121 | 121 | } |
122 | 122 | |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | $expr[] = $search->compare( '==', 'customer.property.value', '1' ); |
156 | 156 | $expr[] = $search->compare( '==', 'customer.property.editor', $this->editor ); |
157 | 157 | |
158 | - $search->setConditions( $search->combine('&&', $expr) ); |
|
158 | + $search->setConditions( $search->combine( '&&', $expr ) ); |
|
159 | 159 | $results = $this->object->searchItems( $search, [], $total ); |
160 | 160 | $this->assertEquals( 1, count( $results ) ); |
161 | 161 | } |
@@ -163,17 +163,17 @@ discard block |
||
163 | 163 | |
164 | 164 | public function testGetSubManager() |
165 | 165 | { |
166 | - $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type') ); |
|
167 | - $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type', 'Standard') ); |
|
166 | + $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type' ) ); |
|
167 | + $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type', 'Standard' ) ); |
|
168 | 168 | |
169 | - $this->setExpectedException('\\Aimeos\\MShop\\Exception'); |
|
170 | - $this->object->getSubManager('unknown'); |
|
169 | + $this->setExpectedException( '\\Aimeos\\MShop\\Exception' ); |
|
170 | + $this->object->getSubManager( 'unknown' ); |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | |
174 | 174 | public function testGetSubManagerInvalidName() |
175 | 175 | { |
176 | - $this->setExpectedException('\\Aimeos\\MShop\\Exception'); |
|
177 | - $this->object->getSubManager('type', 'unknown'); |
|
176 | + $this->setExpectedException( '\\Aimeos\\MShop\\Exception' ); |
|
177 | + $this->object->getSubManager( 'type', 'unknown' ); |
|
178 | 178 | } |
179 | 179 | } |
@@ -492,14 +492,14 @@ |
||
492 | 492 | |
493 | 493 | $results = $this->searchItemsBase( $conn, $search, $cfgPathSearch, $cfgPathCount, $required, $total, $level ); |
494 | 494 | while( ( $row = $results->fetch() ) !== false ) { |
495 | - $map[ $row['customer.id'] ] = $row; |
|
495 | + $map[$row['customer.id']] = $row; |
|
496 | 496 | } |
497 | 497 | |
498 | 498 | $dbm->release( $conn, $dbname ); |
499 | 499 | } |
500 | 500 | catch( \Exception $e ) |
501 | 501 | { |
502 | - $dbm->release( $conn, $dbname ); |
|
502 | + $dbm->release( $conn, $dbname ); |
|
503 | 503 | throw $e; |
504 | 504 | } |
505 | 505 |
@@ -340,8 +340,7 @@ |
||
340 | 340 | * @see mshop/customer/manager/fosuser/count |
341 | 341 | */ |
342 | 342 | $path = 'mshop/customer/manager/fosuser/insert'; |
343 | - } |
|
344 | - else |
|
343 | + } else |
|
345 | 344 | { |
346 | 345 | /** mshop/customer/manager/fosuser/update |
347 | 346 | * Updates an existing customer record in the database |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'fos_user' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'fos_user' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | 12 | |
13 | 13 | $table = $schema->createTable( 'fos_user' ); |
14 | 14 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $table->addColumn( 'vdate', 'date', array( 'notnull' => false ) ); |
49 | 49 | $table->addColumn( 'mtime', 'datetime', array( 'notnull' => false ) ); |
50 | 50 | $table->addColumn( 'ctime', 'datetime', array( 'notnull' => false ) ); |
51 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
51 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
52 | 52 | |
53 | 53 | $table->setPrimaryKey( array( 'id' ), 'pk_fosus_id' ); |
54 | 54 | $table->addUniqueIndex( array( 'confirmation_token' ), 'unq_fosus_confirmtoken' ); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | return $schema; |
66 | 66 | }, |
67 | 67 | |
68 | - 'fos_user_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
68 | + 'fos_user_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
69 | 69 | |
70 | 70 | $table = $schema->createTable( 'fos_user_address' ); |
71 | 71 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $table->addColumn( 'latitude', 'float', array( 'notnull' => false ) ); |
96 | 96 | $table->addColumn( 'mtime', 'datetime', [] ); |
97 | 97 | $table->addColumn( 'ctime', 'datetime', [] ); |
98 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
98 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
99 | 99 | |
100 | 100 | $table->setPrimaryKey( array( 'id' ), 'pk_fosad_id' ); |
101 | 101 | $table->addIndex( array( 'parentid' ), 'idx_fosad_pid' ); |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | return $schema; |
113 | 113 | }, |
114 | 114 | |
115 | - 'fos_user_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
115 | + 'fos_user_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
116 | 116 | |
117 | 117 | $table = $schema->createTable( 'fos_user_list_type' ); |
118 | 118 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | return $schema; |
137 | 137 | }, |
138 | 138 | |
139 | - 'fos_user_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
139 | + 'fos_user_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
140 | 140 | |
141 | 141 | $table = $schema->createTable( 'fos_user_list' ); |
142 | 142 | |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | return $schema; |
166 | 166 | }, |
167 | 167 | |
168 | - 'fos_user_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
168 | + 'fos_user_property_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
169 | 169 | |
170 | 170 | $table = $schema->createTable( 'fos_user_property_type' ); |
171 | 171 | |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | return $schema; |
190 | 190 | }, |
191 | 191 | |
192 | - 'fos_user_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
192 | + 'fos_user_property' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
193 | 193 | |
194 | 194 | $table = $schema->createTable( 'fos_user_property' ); |
195 | 195 |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public function testGetItem() |
64 | 64 | { |
65 | 65 | $search = $this->object->createSearch(); |
66 | - $search->setSlice(0, 1); |
|
66 | + $search->setSlice( 0, 1 ); |
|
67 | 67 | $results = $this->object->searchItems( $search ); |
68 | 68 | |
69 | 69 | if( ( $item = reset( $results ) ) === false ) { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | public function testSaveUpdateDeleteItem() |
78 | 78 | { |
79 | 79 | $search = $this->object->createSearch(); |
80 | - $search->setSlice(0, 1); |
|
80 | + $search->setSlice( 0, 1 ); |
|
81 | 81 | $items = $this->object->searchItems( $search ); |
82 | 82 | |
83 | 83 | if( ( $item = reset( $items ) ) === false ) { |
@@ -108,12 +108,12 @@ discard block |
||
108 | 108 | $this->assertEquals( $item->getDateEnd(), $itemSaved->getDateEnd() ); |
109 | 109 | $this->assertEquals( $item->getPosition(), $itemSaved->getPosition() ); |
110 | 110 | $this->assertEquals( $this->editor, $itemSaved->getEditor() ); |
111 | - $this->assertStringStartsWith(date('Y-m-d', time()), $itemSaved->getTimeCreated()); |
|
112 | - $this->assertStringStartsWith(date('Y-m-d', time()), $itemSaved->getTimeModified()); |
|
111 | + $this->assertStringStartsWith( date( 'Y-m-d', time() ), $itemSaved->getTimeCreated() ); |
|
112 | + $this->assertStringStartsWith( date( 'Y-m-d', time() ), $itemSaved->getTimeModified() ); |
|
113 | 113 | |
114 | 114 | $this->assertEquals( $this->editor, $itemSaved->getEditor() ); |
115 | 115 | $this->assertRegExp( '/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeCreated() ); |
116 | - $this->assertRegExp('/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeModified() ); |
|
116 | + $this->assertRegExp( '/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $itemSaved->getTimeModified() ); |
|
117 | 117 | |
118 | 118 | $this->assertEquals( $itemExp->getId(), $itemUpd->getId() ); |
119 | 119 | $this->assertEquals( $itemExp->getSiteId(), $itemUpd->getSiteId() ); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultSaved ); |
133 | 133 | $this->assertInstanceOf( \Aimeos\MShop\Common\Item\Iface::class, $resultUpd ); |
134 | 134 | |
135 | - $this->setExpectedException('\\Aimeos\\MShop\\Exception'); |
|
135 | + $this->setExpectedException( '\\Aimeos\\MShop\\Exception' ); |
|
136 | 136 | $this->object->getItem( $itemSaved->getId() ); |
137 | 137 | } |
138 | 138 | |
@@ -278,8 +278,8 @@ discard block |
||
278 | 278 | |
279 | 279 | public function testGetSubManager() |
280 | 280 | { |
281 | - $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type') ); |
|
282 | - $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type', 'Standard') ); |
|
281 | + $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type' ) ); |
|
282 | + $this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type', 'Standard' ) ); |
|
283 | 283 | |
284 | 284 | $this->setExpectedException( '\\Aimeos\\MShop\\Exception' ); |
285 | 285 | $this->object->getSubManager( 'unknown' ); |
@@ -75,7 +75,7 @@ |
||
75 | 75 | 'customer.address.telefax' => '055544332212', 'customer.address.website' => 'www.example.com', |
76 | 76 | 'customer.address.longitude' => '10.5', 'customer.address.latitude' => '51.0', |
77 | 77 | 'customer.address.position' => '0', |
78 | - ],[ |
|
78 | + ], [ |
|
79 | 79 | 'customer.address.company' => 'Example company LLC', 'customer.address.vatid' => 'DE999999999', |
80 | 80 | 'customer.address.salutation' => 'mr', 'customer.address.title' => 'Dr.', |
81 | 81 | 'customer.address.firstname' => 'Good', 'customer.address.lastname' => 'Unittest', |
@@ -66,8 +66,7 @@ |
||
66 | 66 | { |
67 | 67 | $this->execute( $stmt ); |
68 | 68 | $this->status( 'done' ); |
69 | - } |
|
70 | - else |
|
69 | + } else |
|
71 | 70 | { |
72 | 71 | $this->status( 'OK' ); |
73 | 72 | } |
@@ -220,13 +220,13 @@ |
||
220 | 220 | $expr[] = $search->compare( '==', 'customer.longitude', '10.0' ); |
221 | 221 | $expr[] = $search->compare( '==', 'customer.latitude', '50.0' ); |
222 | 222 | |
223 | - $param = ['text','default', 0]; |
|
223 | + $param = ['text', 'default', 0]; |
|
224 | 224 | $expr[] = $search->compare( '==', $search->createFunction( 'customer:has', $param ), null ); |
225 | 225 | |
226 | - $param = ['text','default', $listItem->getRefId()]; |
|
226 | + $param = ['text', 'default', $listItem->getRefId()]; |
|
227 | 227 | $expr[] = $search->compare( '!=', $search->createFunction( 'customer:has', $param ), null ); |
228 | 228 | |
229 | - $param = ['text','default']; |
|
229 | + $param = ['text', 'default']; |
|
230 | 230 | $expr[] = $search->compare( '!=', $search->createFunction( 'customer:has', $param ), null ); |
231 | 231 | |
232 | 232 | $param = ['text']; |