@@ -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 |
@@ -220,10 +220,10 @@ discard block |
||
220 | 220 | $expr[] = $search->compare( '==', 'customer.longitude', '10.0' ); |
221 | 221 | $expr[] = $search->compare( '==', 'customer.latitude', '50.0' ); |
222 | 222 | |
223 | - $param = ['text','default', $listItem->getRefId()]; |
|
223 | + $param = ['text', 'default', $listItem->getRefId()]; |
|
224 | 224 | $expr[] = $search->compare( '!=', $search->createFunction( 'customer:has', $param ), null ); |
225 | 225 | |
226 | - $param = ['text','default', 0]; |
|
226 | + $param = ['text', 'default', 0]; |
|
227 | 227 | $expr[] = $search->compare( '==', $search->createFunction( 'customer:has', $param ), null ); |
228 | 228 | |
229 | 229 | $param = ['newsletter', null, '1']; |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | $this->assertEquals( 2, count( $results ) ); |
300 | 300 | $this->assertEquals( 3, $total ); |
301 | 301 | |
302 | - foreach($results as $itemId => $item) { |
|
302 | + foreach( $results as $itemId => $item ) { |
|
303 | 303 | $this->assertEquals( $itemId, $item->getId() ); |
304 | 304 | } |
305 | 305 | } |
@@ -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' ); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2014-2018 |
6 | 6 | */ |
7 | 7 | |
8 | -return array ( |
|
8 | +return array( |
|
9 | 9 | 'customer/lists/type' => array( |
10 | 10 | 'customer/group/default' => array( 'domain' => 'customer/group', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ), |
11 | 11 | 'order/download' => array( 'domain' => 'order', 'code' => 'download', 'label' => 'Download', 'status' => 1 ), |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2014-2018 |
6 | 6 | */ |
7 | 7 | |
8 | -return array ( |
|
8 | +return array( |
|
9 | 9 | 'customer' => array( |
10 | 10 | 'customer/UTC001' => array( 'label' => 'unitCustomer001', 'code' => 'UTC001', 'status' => 1, 'company' => 'Example company', 'vatid' => 'DE999999999', 'salutation' => 'mr', 'title' => 'Dr', 'firstname' => 'Our', 'lastname' => 'Unittest', 'address1' => 'Pickhuben', 'address2' => '2-4', 'address3' => '', 'postal' => '20457', 'city' => 'Hamburg', 'state' => 'Hamburg', 'countryid' => 'DE', 'langid' => 'de', 'telephone' => '055544332211', 'email' => '[email protected]', 'telefax' => '055544332212', 'website' => 'www.example.com', 'longitude' => '10.0', 'latitude' => '50.0', 'password' => 'unittest' ), |
11 | 11 | 'customer/UTC002' => array( 'label' => 'unitCustomer002', 'code' => 'UTC002', 'status' => 1, 'company' => '', 'vatid' => '', 'salutation' => '', 'title' => '', 'firstname' => '', 'lastname' => '', 'address1' => '', 'address2' => '', 'address3' => '', 'postal' => '', 'city' => '', 'state' => '', 'countryid' => null, 'langid' => 'de', 'telephone' => '', 'email' => '[email protected]', 'telefax' => '', 'website' => '', 'longitude' => '', 'latitude' => '' ), |