Passed
Push — 2018.10 ( 27b425...540ebf )
by Aimeos
02:32
created
lib/custom/setup/unittest/TablesAddTypo3TestData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/custom/setup/unittest/CustomerAddTypo3TestData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
lib/custom/setup/unittest/data/customer-property.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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
 	),
Please login to merge, or discard this patch.
lib/custom/setup/CustomerAddVatidTypo3.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 	 */
39 39
 	public function getPostDependencies()
40 40
 	{
41
-		return array('TablesCreateTypo3');
41
+		return array( 'TablesCreateTypo3' );
42 42
 	}
43 43
 
44 44
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/custom/setup/FEUsersAddSiteIdTypo3.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 			}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
lib/custom/setup/CustomerRemoveLostUserDataTypo3.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
lib/custom/tests/MW/Common/Criteria/Plugin/T3SalutationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 	 */
33 33
 	protected function tearDown()
34 34
 	{
35
-		unset($this->object);
35
+		unset( $this->object );
36 36
 	}
37 37
 
38 38
 
Please login to merge, or discard this patch.
lib/custom/tests/MW/Common/Criteria/Plugin/T3DatetimeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 	 */
33 33
 	protected function tearDown()
34 34
 	{
35
-		unset($this->object);
35
+		unset( $this->object );
36 36
 	}
37 37
 
38 38
 
Please login to merge, or discard this patch.
lib/custom/tests/MW/Common/Criteria/Plugin/T3StatusTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 	 */
33 33
 	protected function tearDown()
34 34
 	{
35
-		unset($this->object);
35
+		unset( $this->object );
36 36
 	}
37 37
 
38 38
 
Please login to merge, or discard this patch.