Completed
Push — master ( c7cb6f...a11e92 )
by Aimeos
10:48
created
lib/mshoplib/setup/default/DemoAddSupplierData.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 		if( $value === '1' )
66 66
 		{
67 67
 			$ds = DIRECTORY_SEPARATOR;
68
-			$path = __DIR__ . $ds . 'data' . $ds . 'demo-supplier.php';
68
+			$path = __DIR__.$ds.'data'.$ds.'demo-supplier.php';
69 69
 
70 70
 			if( ( $data = include( $path ) ) == false ) {
71 71
 				throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for supplier domain', $path ) );
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@
 block discarded – undo
75 75
 			$this->saveCustomerItems( $data );
76 76
 
77 77
 			$this->status( 'added' );
78
-		}
79
-		else
78
+		} else
80 79
 		{
81 80
 			$this->status( 'removed' );
82 81
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/unitperf/ServiceAddBasePerfData.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
 
81 81
 		for( $i = 0; $i < 100; $i++ )
82 82
 		{
83
-			$code = 'perf-pay-' . str_pad( $i, 3, '0', STR_PAD_LEFT );
83
+			$code = 'perf-pay-'.str_pad( $i, 3, '0', STR_PAD_LEFT );
84 84
 
85 85
 			$item->setId( null );
86 86
 			$item->setCode( $code );
87
-			$item->setLabel( 'Payment service ' . $code );
87
+			$item->setLabel( 'Payment service '.$code );
88 88
 			$item->setPosition( $i );
89 89
 
90 90
 			$manager->saveItem( $item, false );
@@ -114,11 +114,11 @@  discard block
 block discarded – undo
114 114
 
115 115
 		for( $i = 0; $i < 100; $i++ )
116 116
 		{
117
-			$code = 'perf-ship-' . str_pad( $i, 3, '0', STR_PAD_LEFT );
117
+			$code = 'perf-ship-'.str_pad( $i, 3, '0', STR_PAD_LEFT );
118 118
 
119 119
 			$item->setId( null );
120 120
 			$item->setCode( $code );
121
-			$item->setLabel( 'Delivery service ' . $code );
121
+			$item->setLabel( 'Delivery service '.$code );
122 122
 			$item->setPosition( $i );
123 123
 
124 124
 			$manager->saveItem( $item, false );
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Coupon/Provider/Decorator/CategoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 		$this->couponItem = \Aimeos\MShop\Coupon\Manager\Factory::createManager( $this->context )->createItem();
25 25
 
26 26
 		$provider = new \Aimeos\MShop\Coupon\Provider\Example( $this->context, $this->couponItem, 'abcd' );
27
-		$this->object = new \Aimeos\MShop\Coupon\Provider\Decorator\Category( $provider, $this->context, $this->couponItem, 'abcd');
27
+		$this->object = new \Aimeos\MShop\Coupon\Provider\Decorator\Category( $provider, $this->context, $this->couponItem, 'abcd' );
28 28
 		$this->object->setObject( $this->object );
29 29
 
30 30
 		$priceManager = \Aimeos\MShop\Factory::createManager( $this->context, 'price' );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Customer/Manager/Base.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 		$search->setSlice( 0, 0x7fffffff );
124 124
 
125 125
 		foreach( $manager->searchItems( $search ) as $listid => $listItem ) {
126
-			$listMap[ $listItem->getRefId() ] = $listid;
126
+			$listMap[$listItem->getRefId()] = $listid;
127 127
 		}
128 128
 
129 129
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 			$listItem->setTypeId( $typeId );
139 139
 			$listItem->setStatus( 1 );
140 140
 
141
-			$pos = count( $listMap ) ;
141
+			$pos = count( $listMap );
142 142
 
143 143
 			foreach( $item->getGroups() as $gid )
144 144
 			{
@@ -253,12 +253,12 @@  discard block
 block discarded – undo
253 253
 
254 254
 		if( ctype_alnum( $name ) === false )
255 255
 		{
256
-			$classname = is_string( $name ) ? '\\Aimeos\\MShop\\Common\\Item\\Helper\\Password\\' . $name : '<not a string>';
256
+			$classname = is_string( $name ) ? '\\Aimeos\\MShop\\Common\\Item\\Helper\\Password\\'.$name : '<not a string>';
257 257
 			throw new \Aimeos\MShop\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
258 258
 		}
259 259
 
260 260
 		$iface = '\\Aimeos\\MShop\\Common\\Item\\Helper\\Password\\Iface';
261
-		$classname = '\\Aimeos\\MShop\\Common\\Item\\Helper\\Password\\' . $name;
261
+		$classname = '\\Aimeos\\MShop\\Common\\Item\\Helper\\Password\\'.$name;
262 262
 
263 263
 		if( class_exists( $classname ) === false ) {
264 264
 			throw new \Aimeos\MShop\Exception( sprintf( 'Class "%1$s" not available', $classname ) );
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Container/Content/CSV.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,10 +104,10 @@
 block discarded – undo
104 104
 		foreach( $data as $pos => $entry )
105 105
 		{
106 106
 			$entry = str_replace( $this->lineend, $this->endsubst, $entry );
107
-			$list[$pos] = $enclosure . str_replace( $enclosure, $this->escape . $enclosure, $entry ) . $enclosure;
107
+			$list[$pos] = $enclosure.str_replace( $enclosure, $this->escape.$enclosure, $entry ).$enclosure;
108 108
 		}
109 109
 
110
-		if( fwrite( $this->fh, implode( $this->separator, $list ) . $this->lineend ) === false ) {
110
+		if( fwrite( $this->fh, implode( $this->separator, $list ).$this->lineend ) === false ) {
111 111
 			throw new \Aimeos\MW\Container\Exception( sprintf( 'Unable to add content to file "%1$s"', $this->getName() ) );
112 112
 		}
113 113
 	}
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Container/FileTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 {
13 13
 	public function testNewFile()
14 14
 	{
15
-		$filepath = 'tmp' . DIRECTORY_SEPARATOR . 'testdir' . DIRECTORY_SEPARATOR . 'testfile.csv';
15
+		$filepath = 'tmp'.DIRECTORY_SEPARATOR.'testdir'.DIRECTORY_SEPARATOR.'testfile.csv';
16 16
 
17 17
 		$file = new \Aimeos\MW\Container\File( $filepath, 'CSV' );
18 18
 		$file->add( $file->create( 'test' ) );
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	public function testAdd()
33 33
 	{
34 34
 		$ds = DIRECTORY_SEPARATOR;
35
-		$file = new \Aimeos\MW\Container\File( 'tmp' . $ds . 'testdir' . $ds . 'testfile.csv', 'CSV' );
35
+		$file = new \Aimeos\MW\Container\File( 'tmp'.$ds.'testdir'.$ds.'testfile.csv', 'CSV' );
36 36
 
37 37
 		$content = $file->create( 'test' );
38 38
 		$content->add( array( 'test', 'file', 'data' ) );
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 		$filepath = $file->getName();
44 44
 
45 45
 		$actual = file_get_contents( $filepath );
46
-		$expected = '"test","file","data"' . "\n";
46
+		$expected = '"test","file","data"'."\n";
47 47
 
48 48
 		unlink( $filepath );
49 49
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	public function testGet()
56 56
 	{
57 57
 		$ds = DIRECTORY_SEPARATOR;
58
-		$file = new \Aimeos\MW\Container\File( __DIR__ . $ds . '_testdir' . $ds . 'testfile.csv', 'CSV' );
58
+		$file = new \Aimeos\MW\Container\File( __DIR__.$ds.'_testdir'.$ds.'testfile.csv', 'CSV' );
59 59
 
60 60
 		$this->assertInstanceOf( '\\Aimeos\\MW\\Container\\Content\\Iface', $file->get( 'testfile.csv' ) );
61 61
 	}
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	public function testIterator()
65 65
 	{
66 66
 		$ds = DIRECTORY_SEPARATOR;
67
-		$file = new \Aimeos\MW\Container\File( __DIR__ . $ds . '_testdir' . $ds . 'testfile.csv', 'CSV' );
67
+		$file = new \Aimeos\MW\Container\File( __DIR__.$ds.'_testdir'.$ds.'testfile.csv', 'CSV' );
68 68
 
69 69
 		$expected = array(
70 70
 			'testfile.csv' => 1,
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 				$rows[] = $row;
85 85
 			}
86 86
 
87
-			$actual[ $entry->getName() ] = count( $rows );
87
+			$actual[$entry->getName()] = count( $rows );
88 88
 		}
89 89
 
90 90
 		$this->assertEquals( $expected, $actual );
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Container/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 	 */
36 36
 	public function __construct( $resourcepath, $format, array $options = [] )
37 37
 	{
38
-		$this->classname = '\\Aimeos\\MW\\Container\\Content\\' . $format;
38
+		$this->classname = '\\Aimeos\\MW\\Container\\Content\\'.$format;
39 39
 
40 40
 		if( class_exists( $this->classname ) === false ) {
41 41
 			throw new \Aimeos\MW\Container\Exception( sprintf( 'Unknown format "%1$s"', $format ) );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Item/Standard.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 	 * Sets a new starting point of time, in which the service is available.
217 217
 	 *
218 218
 	 * @param string|null New ISO date in YYYY-MM-DD hh:mm:ss format
219
-	 * @return \Aimeos\MShop\Product\Item\Iface Product item for chaining method calls
219
+	 * @return Standard Product item for chaining method calls
220 220
 	 */
221 221
 	public function setDateStart( $date )
222 222
 	{
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 	 * Sets a new ending point of time, in which the service is available.
249 249
 	 *
250 250
 	 * @param string|null New ISO date in YYYY-MM-DD hh:mm:ss format
251
-	 * @return \Aimeos\MShop\Product\Item\Iface Product item for chaining method calls
251
+	 * @return Standard Product item for chaining method calls
252 252
 	 */
253 253
 	public function setDateEnd( $date )
254 254
 	{
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Plugin/Provider/Order/Autofill.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	 * Returns the configuration attribute definitions of the provider to generate a list of available fields and
139 139
 	 * rules for the value of each field in the administration interface.
140 140
 	 *
141
-	 * @return array List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface
141
+	 * @return \Aimeos\MW\Criteria\Attribute\Iface[] List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface
142 142
 	 */
143 143
 	public function getConfigBE()
144 144
 	{
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 	 * @param \Aimeos\MShop\Order\Item\Base\Iface $order Basket of the customer
213 213
 	 * @param string $type Service type constant from \Aimeos\MShop\Order\Item\Base\Service\Base
214 214
 	 * @param string|null $code Service item code
215
-	 * @return \Aimeos\MShop\Order\Item\Base\Service\Iface|null Order service item if available or null otherwise
215
+	 * @return \Aimeos\MShop\Common\Item\Iface|null Order service item if available or null otherwise
216 216
 	 */
217 217
 	protected function getServiceItem( \Aimeos\MShop\Order\Item\Base\Iface $order, $type, $code = null )
218 218
 	{
Please login to merge, or discard this patch.