@@ -95,7 +95,7 @@ |
||
95 | 95 | $server = ServerRequestFactory::normalizeServer( $server ); |
96 | 96 | $headers = ServerRequestFactory::marshalHeaders( $server ); |
97 | 97 | $uri = ServerRequestFactory::marshalUriFromServer( $server, $headers ); |
98 | - $method = ServerRequestFactory::get('REQUEST_METHOD', $server, 'GET'); |
|
98 | + $method = ServerRequestFactory::get( 'REQUEST_METHOD', $server, 'GET' ); |
|
99 | 99 | |
100 | 100 | return new ServerRequest( $server, $files, $uri, $method, 'php://input', $headers, $cookies, $query, $post ); |
101 | 101 | } |
@@ -559,14 +559,14 @@ |
||
559 | 559 | |
560 | 560 | $results = $this->searchItemsBase( $conn, $search, $cfgPathSearch, $cfgPathCount, $required, $total, $level, $this->plugins ); |
561 | 561 | while( ( $row = $results->fetch() ) !== false ) { |
562 | - $map[ $row['customer.id'] ] = $row; |
|
562 | + $map[$row['customer.id']] = $row; |
|
563 | 563 | } |
564 | 564 | |
565 | 565 | $dbm->release( $conn, $dbname ); |
566 | 566 | } |
567 | 567 | catch( \Exception $e ) |
568 | 568 | { |
569 | - $dbm->release( $conn, $dbname ); |
|
569 | + $dbm->release( $conn, $dbname ); |
|
570 | 570 | throw $e; |
571 | 571 | } |
572 | 572 |
@@ -403,8 +403,7 @@ |
||
403 | 403 | * @see mshop/customer/manager/typo3/count |
404 | 404 | */ |
405 | 405 | $path = 'mshop/customer/manager/typo3/insert'; |
406 | - } |
|
407 | - else |
|
406 | + } else |
|
408 | 407 | { |
409 | 408 | /** mshop/customer/manager/typo3/update |
410 | 409 | * Updates an existing customer record in the database |
@@ -40,13 +40,13 @@ |
||
40 | 40 | $ds = DIRECTORY_SEPARATOR; |
41 | 41 | $path = __DIR__ . $ds . 'data' . $ds . 'customer-list.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 list domain', $path ) ); |
45 | 45 | } |
46 | 46 | |
47 | 47 | $refKeys = []; |
48 | 48 | foreach( $testdata['customer/lists'] as $dataset ) { |
49 | - $refKeys[ $dataset['domain'] ][] = $dataset['refid']; |
|
49 | + $refKeys[$dataset['domain']][] = $dataset['refid']; |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | $refIds = []; |
@@ -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 | ), |
@@ -6,8 +6,8 @@ discard block |
||
6 | 6 | * @copyright Aimeos (aimeos.org), 2014-2018 |
7 | 7 | */ |
8 | 8 | |
9 | -return array ( |
|
10 | - 'customer/lists/type' => array ( |
|
9 | +return array( |
|
10 | + 'customer/lists/type' => array( |
|
11 | 11 | 'customer/group/default' => array( 'domain' => 'customer/group', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ), |
12 | 12 | 'order/download' => array( 'domain' => 'order', 'code' => 'download', 'label' => 'Download', 'status' => 1 ), |
13 | 13 | 'product/favorite' => array( 'domain' => 'product', 'code' => 'favorite', 'label' => 'Favorite', 'status' => 1 ), |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | 'text/default' => array( 'domain' => 'text', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ), |
16 | 16 | ), |
17 | 17 | |
18 | - 'customer/lists' => array ( |
|
18 | + 'customer/lists' => array( |
|
19 | 19 | array( 'parentid' => 'customer/UTC003', 'type' => 'default', 'domain' => 'text', 'refid' => 'text/customer/information', 'start' => '2010-01-01 00:00:00', 'end' => '2100-01-01 00:00:00', 'config' => [], 'pos' => 1, 'status' => 1 ), |
20 | 20 | array( 'parentid' => 'customer/UTC003', 'type' => 'default', 'domain' => 'text', 'refid' => 'text/customer/notify', 'start' => '2010-01-01 00:00:00', 'end' => '2100-01-01 00:00:00', 'config' => [], 'pos' => 2, 'status' => 1 ), |
21 | 21 | array( 'parentid' => 'customer/UTC003', 'type' => 'default', 'domain' => 'text', 'refid' => 'text/customer/newsletter', 'start' => '2010-01-01 00:00:00', 'end' => '2100-01-01 00:00:00', 'config' => [], 'pos' => 3, 'status' => 1 ), |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * @copyright Aimeos (aimeos.org), 2014-2018 |
7 | 7 | */ |
8 | 8 | |
9 | -return array ( |
|
9 | +return array( |
|
10 | 10 | 'customer/address' => array( |
11 | 11 | array( 'parentid' => 'customer/UTC001', 'company' => 'ABC', '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' => 'unittest.aimeos.org', 'longitude' => '10.0', 'latitude' => '50.0', 'pos' => '0' ), |
12 | 12 | array( 'parentid' => 'customer/UTC002', 'company' => 'ABC GmbH', 'vatid' => 'DE999999999', 'salutation' => 'mr', 'title' => 'Dr.', 'firstname' => 'Good', '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' => 'unittest.aimeos.org', 'longitude' => '10.5', 'latitude' => '51.0', 'pos' => '1' ), |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | 11 | |
12 | - 'fe_users_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | + 'fe_users_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
13 | 13 | |
14 | 14 | $table = $schema->createTable( 'fe_users_address' ); |
15 | 15 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $table->addColumn( 'latitude', 'float', array( 'notnull' => false ) ); |
40 | 40 | $table->addColumn( 'mtime', 'datetime', [] ); |
41 | 41 | $table->addColumn( 'ctime', 'datetime', [] ); |
42 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
42 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
43 | 43 | |
44 | 44 | $table->setPrimaryKey( array( 'id' ), 'pk_t3feuad_id' ); |
45 | 45 | $table->addIndex( array( 'parentid' ), 'idx_t3feuad_pid' ); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | return $schema; |
54 | 54 | }, |
55 | 55 | |
56 | - 'fe_users_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
56 | + 'fe_users_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
57 | 57 | |
58 | 58 | $table = $schema->createTable( 'fe_users_list_type' ); |
59 | 59 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | return $schema; |
78 | 78 | }, |
79 | 79 | |
80 | - 'fe_users_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
80 | + 'fe_users_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
81 | 81 | |
82 | 82 | $table = $schema->createTable( 'fe_users_list' ); |
83 | 83 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | return $schema; |
104 | 104 | }, |
105 | 105 | |
106 | - 'fe_users_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
106 | + 'fe_users_property_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
107 | 107 | |
108 | 108 | $table = $schema->createTable( 'fe_users_property_type' ); |
109 | 109 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | return $schema; |
128 | 128 | }, |
129 | 129 | |
130 | - 'fe_users_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
130 | + 'fe_users_property' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
131 | 131 | |
132 | 132 | $table = $schema->createTable( 'fe_users_property' ); |
133 | 133 |