Completed
Push — master ( c7cb6f...a11e92 )
by Aimeos
10:48
created
lib/mshoplib/setup/default/schema/supplier.php 2 patches
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,7 +9,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Mail/NoneTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
 	protected function tearDown()
23 23
 	{
24
-		unset($this->object);
24
+		unset( $this->object );
25 25
 	}
26 26
 
27 27
 
Please login to merge, or discard this patch.
lib/mshoplib/tests/MAdmin/Cache/Proxy/StandardTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
lib/mshoplib/setup/MShopAddLocaleLangCurData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		$localeManager = \Aimeos\MShop\Locale\Manager\Factory::createManager( $this->additional, 'Standard' );
55 55
 
56 56
 
57
-		$filename = __DIR__ . $ds . 'default'.  $ds . 'data'. $ds . 'language.php';
57
+		$filename = __DIR__.$ds.'default'.$ds.'data'.$ds.'language.php';
58 58
 
59 59
 		if( ( $data = include( $filename ) ) == false ) {
60 60
 			throw new \Aimeos\MW\Setup\Exception( sprintf( 'No data file "%1$s" found', $filename ) );
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 		}
66 66
 
67 67
 
68
-		$filename = __DIR__ . $ds . 'default'.  $ds . 'data'. $ds . 'currency.php';
68
+		$filename = __DIR__.$ds.'default'.$ds.'data'.$ds.'currency.php';
69 69
 
70 70
 		if( ( $data = include( $filename ) ) == false ) {
71 71
 			throw new \Aimeos\MW\Setup\Exception( sprintf( 'No data file "%1$s" found', $filename ) );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Product/Manager/Property/Type/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@
 block discarded – undo
281 281
 		 * @see mshop/product/manager/property/type/decorators/global
282 282
 		 */
283 283
 
284
-		return $this->getSubManagerBase( 'product', 'property/type/' . $manager, $name );
284
+		return $this->getSubManagerBase( 'product', 'property/type/'.$manager, $name );
285 285
 	}
286 286
 
287 287
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Common/Item/Helper/Password/Hash.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,11 +55,11 @@
 block discarded – undo
55 55
 		$iterations = ( isset( $this->options['iterations'] ) ? (int) $this->options['iterations'] : 1 );
56 56
 		
57 57
 		$salted = sprintf( $format, $password, $salt );
58
-		$digest = hash( $this->options['algorithm'], $salted, true);
58
+		$digest = hash( $this->options['algorithm'], $salted, true );
59 59
 		
60 60
 		// "stretch" hash
61
-		for ($i = 1; $i < $iterations; $i++ ) {
62
-			$digest = hash( $this->options['algorithm'], $digest . $salted, true);
61
+		for( $i = 1; $i < $iterations; $i++ ) {
62
+			$digest = hash( $this->options['algorithm'], $digest.$salted, true );
63 63
 		}
64 64
 		
65 65
 		return ( $encode ? base64_encode( $digest ) : bin2hex( $digest ) );
Please login to merge, or discard this patch.
lib/mwlib/tests/bootstrap.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -13,26 +13,26 @@
 block discarded – undo
13 13
 error_reporting( -1 );
14 14
 ini_set( 'display_errors', '1' );
15 15
 
16
-date_default_timezone_set('UTC');
16
+date_default_timezone_set( 'UTC' );
17 17
 
18 18
 /*
19 19
  * Set locale settings to reasonable defaults
20 20
  */
21
-setlocale(LC_ALL, 'en_US.UTF-8');
22
-setlocale(LC_NUMERIC, 'POSIX');
23
-setlocale(LC_CTYPE, 'en_US.UTF-8');
24
-setlocale(LC_TIME, 'POSIX');
21
+setlocale( LC_ALL, 'en_US.UTF-8' );
22
+setlocale( LC_NUMERIC, 'POSIX' );
23
+setlocale( LC_CTYPE, 'en_US.UTF-8' );
24
+setlocale( LC_TIME, 'POSIX' );
25 25
 
26 26
 
27 27
 /*
28 28
  * Set include path for tests
29 29
  */
30 30
 
31
-require_once dirname( dirname( dirname( __DIR__ ) ) ) . '/vendor/autoload.php';
31
+require_once dirname( dirname( dirname( __DIR__ ) ) ).'/vendor/autoload.php';
32 32
 
33
-$testdir =  __DIR__;
34
-$srcdir =  dirname( $testdir ) . DIRECTORY_SEPARATOR . 'src';
35
-$libdir =  dirname( $testdir ) . DIRECTORY_SEPARATOR . 'lib';
33
+$testdir = __DIR__;
34
+$srcdir = dirname( $testdir ).DIRECTORY_SEPARATOR.'src';
35
+$libdir = dirname( $testdir ).DIRECTORY_SEPARATOR.'lib';
36 36
 
37 37
 $path = array( $testdir, $srcdir, $libdir, get_include_path() );
38 38
 set_include_path( implode( PATH_SEPARATOR, $path ) );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Session/NoneTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,25 +35,25 @@
 block discarded – undo
35 35
 	 */
36 36
 	protected function tearDown()
37 37
 	{
38
-		unset($this->object);
38
+		unset( $this->object );
39 39
 	}
40 40
 
41 41
 
42 42
 	public function testGet()
43 43
 	{
44
-		$this->assertEquals(null, $this->object->get('test'));
44
+		$this->assertEquals( null, $this->object->get( 'test' ) );
45 45
 
46
-		$this->object->set('test', '123456789');
47
-		$this->assertEquals('123456789', $this->object->get('test'));
46
+		$this->object->set( 'test', '123456789' );
47
+		$this->assertEquals( '123456789', $this->object->get( 'test' ) );
48 48
 	}
49 49
 
50 50
 
51 51
 	public function testSet()
52 52
 	{
53
-		$this->object->set('test', null);
53
+		$this->object->set( 'test', null );
54 54
 		$this->assertEquals( null, $this->object->get( 'test' ) );
55 55
 
56
-		$this->object->set('test', '234');
56
+		$this->object->set( 'test', '234' );
57 57
 		$this->assertEquals( '234', $this->object->get( 'test' ) );
58 58
 	}
59 59
 }
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Session/PHPTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,25 +23,25 @@
 block discarded – undo
23 23
 
24 24
 	protected function tearDown()
25 25
 	{
26
-		unset($this->object);
26
+		unset( $this->object );
27 27
 	}
28 28
 
29 29
 
30 30
 	public function testGet()
31 31
 	{
32
-		$this->assertEquals(null, $this->object->get('test'));
32
+		$this->assertEquals( null, $this->object->get( 'test' ) );
33 33
 
34
-		$this->object->set('test', '123456789');
35
-		$this->assertEquals('123456789', $this->object->get('test'));
34
+		$this->object->set( 'test', '123456789' );
35
+		$this->assertEquals( '123456789', $this->object->get( 'test' ) );
36 36
 	}
37 37
 
38 38
 
39 39
 	public function testSet()
40 40
 	{
41
-		$this->object->set('test', null);
41
+		$this->object->set( 'test', null );
42 42
 		$this->assertEquals( null, $this->object->get( 'test' ) );
43 43
 
44
-		$this->object->set('test', '234');
44
+		$this->object->set( 'test', '234' );
45 45
 		$this->assertEquals( '234', $this->object->get( 'test' ) );
46 46
 	}
47 47
 }
Please login to merge, or discard this patch.