Completed
Push — master ( 52c730...9eba1c )
by Aimeos
08:52
created
controller/jobs/src/Controller/Jobs/Base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@
 block discarded – undo
75 75
 
76 76
 		$search = $manager->createSearch();
77 77
 		$expr = array(
78
-			$search->compare( '==', $prefix . '.domain', $domain ),
79
-			$search->compare( '==', $prefix . '.code', $code ),
78
+			$search->compare( '==', $prefix.'.domain', $domain ),
79
+			$search->compare( '==', $prefix.'.code', $code ),
80 80
 		);
81 81
 		$search->setConditions( $search->combine( '&&', $expr ) );
82 82
 		$result = $manager->searchItems( $search );
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Context/Item/StandardTest.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,7 +207,9 @@  discard block
 block discarded – undo
207 207
 		$this->assertEquals( '123', $this->object->getUserId() );
208 208
 		$this->assertInstanceOf( '\Aimeos\MShop\Context\Item\Iface', $return );
209 209
 
210
-		$return = $this->object->setUserId( function() { return 456; } );
210
+		$return = $this->object->setUserId( function()
211
+		{
212
+return 456; } );
211 213
 		$this->assertEquals( '456', $this->object->getUserId() );
212 214
 		$this->assertInstanceOf( '\Aimeos\MShop\Context\Item\Iface', $return );
213 215
 	}
@@ -220,7 +222,9 @@  discard block
 block discarded – undo
220 222
 		$this->assertEquals( array( '123' ), $this->object->getGroupIds() );
221 223
 		$this->assertInstanceOf( '\Aimeos\MShop\Context\Item\Iface', $return );
222 224
 
223
-		$return = $this->object->setGroupIds( function() { return array( 456 ); } );
225
+		$return = $this->object->setGroupIds( function()
226
+		{
227
+return array( 456 ); } );
224 228
 		$this->assertEquals( array( '456' ), $this->object->getGroupIds() );
225 229
 		$this->assertInstanceOf( '\Aimeos\MShop\Context\Item\Iface', $return );
226 230
 	}
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/schema/cache.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 return array(
10 10
 	'table' => array(
11
-		'madmin_cache' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'madmin_cache' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
12 12
 
13 13
 			$table = $schema->createTable( 'madmin_cache' );
14 14
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 			return $schema;
24 24
 		},
25 25
 
26
-		'madmin_cache_tag' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
26
+		'madmin_cache_tag' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
27 27
 
28 28
 			$table = $schema->createTable( 'madmin_cache_tag' );
29 29
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,8 @@  discard block
 block discarded – undo
8 8
 
9 9
 return array(
10 10
 	'table' => array(
11
-		'madmin_cache' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'madmin_cache' => function ( \Doctrine\DBAL\Schema\Schema $schema )
12
+		{
12 13
 
13 14
 			$table = $schema->createTable( 'madmin_cache' );
14 15
 
@@ -23,7 +24,8 @@  discard block
 block discarded – undo
23 24
 			return $schema;
24 25
 		},
25 26
 
26
-		'madmin_cache_tag' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
27
+		'madmin_cache_tag' => function ( \Doctrine\DBAL\Schema\Schema $schema )
28
+		{
27 29
 
28 30
 			$table = $schema->createTable( 'madmin_cache_tag' );
29 31
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Locale/Manager/Site/Standard.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
 		 * @see mshop/locale/manager/site/decorators/global
520 520
 		 */
521 521
 
522
-		return $this->getSubManagerBase( 'locale', 'site/' . $manager, $name );
522
+		return $this->getSubManagerBase( 'locale', 'site/'.$manager, $name );
523 523
 	}
524 524
 
525 525
 
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
 			$replace = array(
552 552
 				$search->getConditionString( $types, $translations ),
553 553
 				$search->getSortationString( $types, $translations ),
554
-				( $columns ? ', ' . $columns : '' ),
554
+				( $columns ? ', '.$columns : '' ),
555 555
 				$search->getSliceStart(),
556 556
 				$search->getSliceSize(),
557 557
 			);
@@ -935,7 +935,7 @@  discard block
 block discarded – undo
935 935
 	protected function getSearchResults( \Aimeos\MW\DB\Connection\Iface $conn, $sql )
936 936
 	{
937 937
 		$statement = $conn->create( $sql );
938
-		$this->getContext()->getLogger()->log( __METHOD__ . ': SQL statement: ' . $statement, \Aimeos\MW\Logger\Base::DEBUG );
938
+		$this->getContext()->getLogger()->log( __METHOD__.': SQL statement: '.$statement, \Aimeos\MW\Logger\Base::DEBUG );
939 939
 
940 940
 		$results = $statement->execute();
941 941
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
 	 * Returns the search results for the given SQL statement.
606 606
 	 *
607 607
 	 * @param \Aimeos\MW\DB\Connection\Iface $conn Database connection
608
-	 * @param $sql SQL statement
608
+	 * @param string $sql SQL statement
609 609
 	 * @return \Aimeos\MW\DB\Result\Iface Search result object
610 610
 	 */
611 611
 	protected function getSearchResults( \Aimeos\MW\DB\Connection\Iface $conn, $sql )
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
 	 * Returns the total number of items found for the conditions
636 636
 	 *
637 637
 	 * @param \Aimeos\MW\DB\Connection\Iface $conn Database connection
638
-	 * @param array $find List of markers that should be replaced in the SQL statement
638
+	 * @param string[] $find List of markers that should be replaced in the SQL statement
639 639
 	 * @param array $replace List of replacements for the markers in the SQL statement
640 640
 	 * @throws \Aimeos\MShop\Locale\Exception If no total value was found
641 641
 	 * @return integer Total number of found items
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Locale/Manager/Standard.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -684,7 +684,7 @@  discard block
 block discarded – undo
684 684
 	{
685 685
 		$stmt = $conn->create( $sql );
686 686
 
687
-		$this->getContext()->getLogger()->log( __METHOD__ . ': SQL statement: ' . $stmt, \Aimeos\MW\Logger\Base::DEBUG );
687
+		$this->getContext()->getLogger()->log( __METHOD__.': SQL statement: '.$stmt, \Aimeos\MW\Logger\Base::DEBUG );
688 688
 
689 689
 		return $stmt->execute();
690 690
 	}
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
 			$replace = array(
720 720
 					$search->getConditionString( $types, $translations ),
721 721
 					$search->getSortationString( $types, $translations ),
722
-					( $columns ? ', ' . $columns : '' ),
722
+					( $columns ? ', '.$columns : '' ),
723 723
 					$search->getSliceStart(),
724 724
 					$search->getSliceSize(),
725 725
 			);
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -139,9 +139,12 @@  discard block
 block discarded – undo
139 139
 	 */
140 140
 	public function createItem()
141 141
 	{
142
-		try {
142
+		try
143
+		{
143 144
 			return $this->createItemBase( array( 'locale.siteid' => $this->getContext()->getLocale()->getSiteId() ) );
144
-		} catch( \Exception $e ) {
145
+		}
146
+		catch( \Exception $e )
147
+		{
145 148
 			return $this->createItemBase();
146 149
 		}
147 150
 	}
@@ -313,8 +316,7 @@  discard block
 block discarded – undo
313 316
 				 * @see mshop/locale/manager/standard/count/ansi
314 317
 				 */
315 318
 				$path = 'mshop/locale/manager/standard/insert';
316
-			}
317
-			else
319
+			} else
318 320
 			{
319 321
 				/** mshop/locale/manager/standard/update/mysql
320 322
 				 * Updates an existing locale record in the database
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/schema/catalog.php 2 patches
Spacing   +3 added lines, -3 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_catalog' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
12
+		'mshop_catalog' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
13 13
 
14 14
 			$table = $schema->createTable( 'mshop_catalog' );
15 15
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 			return $schema;
36 36
 		},
37 37
 
38
-		'mshop_catalog_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
38
+		'mshop_catalog_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
39 39
 
40 40
 			$table = $schema->createTable( 'mshop_catalog_list_type' );
41 41
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 			return $schema;
59 59
 		},
60 60
 
61
-		'mshop_catalog_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
61
+		'mshop_catalog_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
62 62
 
63 63
 			$table = $schema->createTable( 'mshop_catalog_list' );
64 64
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 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_catalog' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
12
+		'mshop_catalog' => function ( \Doctrine\DBAL\Schema\Schema $schema )
13
+		{
13 14
 
14 15
 			$table = $schema->createTable( 'mshop_catalog' );
15 16
 
@@ -35,7 +36,8 @@  discard block
 block discarded – undo
35 36
 			return $schema;
36 37
 		},
37 38
 
38
-		'mshop_catalog_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
39
+		'mshop_catalog_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema )
40
+		{
39 41
 
40 42
 			$table = $schema->createTable( 'mshop_catalog_list_type' );
41 43
 
@@ -58,7 +60,8 @@  discard block
 block discarded – undo
58 60
 			return $schema;
59 61
 		},
60 62
 
61
-		'mshop_catalog_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
63
+		'mshop_catalog_list' => function ( \Doctrine\DBAL\Schema\Schema $schema )
64
+		{
62 65
 
63 66
 			$table = $schema->createTable( 'mshop_catalog_list' );
64 67
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/schema/attribute.php 2 patches
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,8 @@  discard block
 block discarded – undo
8 8
 
9 9
 return array(
10 10
 	'table' => array(
11
-		'mshop_attribute_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'mshop_attribute_type' => function ( \Doctrine\DBAL\Schema\Schema $schema )
12
+		{
12 13
 
13 14
 			$table = $schema->createTable( 'mshop_attribute_type' );
14 15
 
@@ -31,7 +32,8 @@  discard block
 block discarded – undo
31 32
 			return $schema;
32 33
 		},
33 34
 
34
-		'mshop_attribute' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
35
+		'mshop_attribute' => function ( \Doctrine\DBAL\Schema\Schema $schema )
36
+		{
35 37
 
36 38
 			$table = $schema->createTable( 'mshop_attribute' );
37 39
 
@@ -59,7 +61,8 @@  discard block
 block discarded – undo
59 61
 			return $schema;
60 62
 		},
61 63
 
62
-		'mshop_attribute_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
64
+		'mshop_attribute_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema )
65
+		{
63 66
 
64 67
 			$table = $schema->createTable( 'mshop_attribute_list_type' );
65 68
 
@@ -82,7 +85,8 @@  discard block
 block discarded – undo
82 85
 			return $schema;
83 86
 		},
84 87
 
85
-		'mshop_attribute_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
88
+		'mshop_attribute_list' => function ( \Doctrine\DBAL\Schema\Schema $schema )
89
+		{
86 90
 
87 91
 			$table = $schema->createTable( 'mshop_attribute_list' );
88 92
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 return array(
10 10
 	'table' => array(
11
-		'mshop_attribute_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'mshop_attribute_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
12 12
 
13 13
 			$table = $schema->createTable( 'mshop_attribute_type' );
14 14
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 			return $schema;
32 32
 		},
33 33
 
34
-		'mshop_attribute' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
34
+		'mshop_attribute' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
35 35
 
36 36
 			$table = $schema->createTable( 'mshop_attribute' );
37 37
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 			$table->addColumn( 'status', 'smallint', [] );
46 46
 			$table->addColumn( 'mtime', 'datetime', [] );
47 47
 			$table->addColumn( 'ctime', 'datetime', [] );
48
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
48
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
49 49
 
50 50
 			$table->setPrimaryKey( array( 'id' ), 'pk_msatt_id' );
51 51
 			$table->addUniqueIndex( array( 'siteid', 'domain', 'code', 'typeid' ), 'unq_msattr_sid_dom_cod_tid' );
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 			return $schema;
60 60
 		},
61 61
 
62
-		'mshop_attribute_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
62
+		'mshop_attribute_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
63 63
 
64 64
 			$table = $schema->createTable( 'mshop_attribute_list_type' );
65 65
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 			return $schema;
83 83
 		},
84 84
 
85
-		'mshop_attribute_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
85
+		'mshop_attribute_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
86 86
 
87 87
 			$table = $schema->createTable( 'mshop_attribute_list' );
88 88
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/schema/log.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 return array(
10 10
 	'table' => array(
11
-		'madmin_log' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'madmin_log' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
12 12
 
13 13
 			$table = $schema->createTable( 'madmin_log' );
14 14
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,8 @@
 block discarded – undo
8 8
 
9 9
 return array(
10 10
 	'table' => array(
11
-		'madmin_log' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'madmin_log' => function ( \Doctrine\DBAL\Schema\Schema $schema )
12
+		{
12 13
 
13 14
 			$table = $schema->createTable( 'madmin_log' );
14 15
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/schema/price.php 2 patches
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,7 +8,8 @@  discard block
 block discarded – undo
8 8
 
9 9
 return array(
10 10
 	'table' => array(
11
-		'mshop_price_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'mshop_price_type' => function ( \Doctrine\DBAL\Schema\Schema $schema )
12
+		{
12 13
 
13 14
 			$table = $schema->createTable( 'mshop_price_type' );
14 15
 
@@ -31,7 +32,8 @@  discard block
 block discarded – undo
31 32
 			return $schema;
32 33
 		},
33 34
 
34
-		'mshop_price' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
35
+		'mshop_price' => function ( \Doctrine\DBAL\Schema\Schema $schema )
36
+		{
35 37
 
36 38
 			$table = $schema->createTable( 'mshop_price' );
37 39
 
@@ -67,7 +69,8 @@  discard block
 block discarded – undo
67 69
 			return $schema;
68 70
 		},
69 71
 
70
-		'mshop_price_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
72
+		'mshop_price_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema )
73
+		{
71 74
 
72 75
 			$table = $schema->createTable( 'mshop_price_list_type' );
73 76
 
@@ -90,7 +93,8 @@  discard block
 block discarded – undo
90 93
 			return $schema;
91 94
 		},
92 95
 
93
-		'mshop_price_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
96
+		'mshop_price_list' => function ( \Doctrine\DBAL\Schema\Schema $schema )
97
+		{
94 98
 
95 99
 			$table = $schema->createTable( 'mshop_price_list' );
96 100
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 return array(
10 10
 	'table' => array(
11
-		'mshop_price_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'mshop_price_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
12 12
 
13 13
 			$table = $schema->createTable( 'mshop_price_type' );
14 14
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 			return $schema;
32 32
 		},
33 33
 
34
-		'mshop_price' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
34
+		'mshop_price' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
35 35
 
36 36
 			$table = $schema->createTable( 'mshop_price' );
37 37
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 			$table->addColumn( 'status', 'smallint', [] );
50 50
 			$table->addColumn( 'mtime', 'datetime', [] );
51 51
 			$table->addColumn( 'ctime', 'datetime', [] );
52
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
52
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
53 53
 
54 54
 			$table->setPrimaryKey( array( 'id' ), 'pk_mspri_id' );
55 55
 			$table->addIndex( array( 'siteid', 'domain', 'currencyid' ), 'idx_mspri_sid_dom_currid' );
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 			return $schema;
67 67
 		},
68 68
 
69
-		'mshop_price_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
69
+		'mshop_price_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
70 70
 
71 71
 			$table = $schema->createTable( 'mshop_price_list_type' );
72 72
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 			return $schema;
90 90
 		},
91 91
 
92
-		'mshop_price_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
92
+		'mshop_price_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
93 93
 
94 94
 			$table = $schema->createTable( 'mshop_price_list' );
95 95
 
Please login to merge, or discard this patch.