Completed
Push — master ( 52c730...9eba1c )
by Aimeos
08:52
created
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/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.
lib/mshoplib/src/MShop/Plugin/Provider/Order/BasketLimits.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 	 * Returns the configuration attribute definitions of the provider to generate a list of available fields and
100 100
 	 * rules for the value of each field in the administration interface.
101 101
 	 *
102
-	 * @return array List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface
102
+	 * @return \Aimeos\MW\Criteria\Attribute\Iface[] List of attribute definitions implementing \Aimeos\MW\Common\Critera\Attribute\Iface
103 103
 	 */
104 104
 	public function getConfigBE()
105 105
 	{
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Plugin/Manager/Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 		}
47 47
 
48 48
 		$interface = '\\Aimeos\\MShop\\Plugin\\Provider\\Factory\\Iface';
49
-		$classname = '\\Aimeos\\MShop\\Plugin\\Provider\\' . $type . '\\' . $provider;
49
+		$classname = '\\Aimeos\\MShop\\Plugin\\Provider\\'.$type.'\\'.$provider;
50 50
 
51 51
 		if( class_exists( $classname ) === false ) {
52 52
 			throw new \Aimeos\MShop\Plugin\Exception( sprintf( 'Class "%1$s" not available', $classname ) );
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		 * @category Developer
85 85
 		 * @see mshop/plugin/provider/order/decorators
86 86
 		 */
87
-		$decorators = $config->get( 'mshop/plugin/provider/' . $item->getType() . '/decorators', [] );
87
+		$decorators = $config->get( 'mshop/plugin/provider/'.$item->getType().'/decorators', [] );
88 88
 
89 89
 		$provider = $this->addPluginDecorators( $item, $provider, $names );
90 90
 		$provider = $this->addPluginDecorators( $item, $provider, $decorators );
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 				throw new \Aimeos\MShop\Plugin\Exception( sprintf( 'Invalid characters in class name "%1$s"', $name ) );
113 113
 			}
114 114
 
115
-			$classname = $classprefix . $name;
115
+			$classname = $classprefix.$name;
116 116
 
117 117
 			if( class_exists( $classname ) === false ) {
118 118
 				throw new \Aimeos\MShop\Plugin\Exception( sprintf( 'Class "%1$s" not available', $classname ) );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Manager/Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 		}
47 47
 
48 48
 		$interface = '\\Aimeos\\MShop\\Service\\Provider\\Factory\\Iface';
49
-		$classname = '\\Aimeos\\MShop\\Service\\Provider\\' . $type . '\\' . $provider;
49
+		$classname = '\\Aimeos\\MShop\\Service\\Provider\\'.$type.'\\'.$provider;
50 50
 
51 51
 		if( class_exists( $classname ) === false ) {
52 52
 			throw new \Aimeos\MShop\Service\Exception( sprintf( 'Class "%1$s" not available', $classname ) );
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 		 * @category Developer
108 108
 		 * @see mshop/service/provider/delivery/decorators
109 109
 		 */
110
-		$decorators = $config->get( 'mshop/service/provider/' . $item->getType() . '/decorators', [] );
110
+		$decorators = $config->get( 'mshop/service/provider/'.$item->getType().'/decorators', [] );
111 111
 
112 112
 		$provider = $this->addServiceDecorators( $item, $provider, $names );
113 113
 		return $this->addServiceDecorators( $item, $provider, $decorators );
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 				throw new \Aimeos\MShop\Service\Exception( sprintf( 'Invalid characters in class name "%1$s"', $name ) );
135 135
 			}
136 136
 
137
-			$classname = $classprefix . $name;
137
+			$classname = $classprefix.$name;
138 138
 
139 139
 			if( class_exists( $classname ) === false ) {
140 140
 				throw new \Aimeos\MShop\Service\Exception( sprintf( 'Class "%1$s" not available', $classname ) );
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/data/productproperty.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), 2014-2017
6 6
  */
7 7
 
8
-return array (
8
+return array(
9 9
 	'product/property/type' => array(
10 10
 		'product/property/type/packheight' => array( 'domain' => 'product', 'code' => 'package-height', 'label' => 'Package height', 'status' => 1 ),
11 11
 		'product/property/type/packlength' => array( 'domain' => 'product', 'code' => 'package-length', 'label' => 'Package lenght', 'status' => 1 ),
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/data/text.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
6 6
  * @copyright Aimeos (aimeos.org), 2015-2017
7 7
  */
8 8
 
9
-return array (
10
-	'text/type' => array (
9
+return array(
10
+	'text/type' => array(
11 11
 		'attribute/name' => array( 'domain' => 'attribute', 'code' => 'name', 'label' => 'Name', 'status' => 1 ),
12 12
 		'attribute/short' => array( 'domain' => 'attribute', 'code' => 'short', 'label' => 'Short description', 'status' => 1 ),
13 13
 		'attribute/long' => array( 'domain' => 'attribute', 'code' => 'long', 'label' => 'Long description', 'status' => 1 ),
@@ -44,13 +44,13 @@  discard block
 block discarded – undo
44 44
 		'supplier/description' => array( 'domain' => 'supplier', 'code' => 'description', 'label' => 'Supplier description', 'status' => 1 )
45 45
 	),
46 46
 
47
-	'text' => array (
47
+	'text' => array(
48 48
 
49
-		'text/customer/information' => array( 'langid' => null, 'typeid' => 'customer/information', 'domain' => 'customer', 'label' => 'customer/information', 'content' => 'Customer information', 'status' => 1),
50
-		'text/customer/notify' => array( 'langid' => null, 'typeid' => 'customer/notify', 'domain' => 'customer', 'label' => 'customer/notify', 'content' => 'Customer notify', 'status' => 1),
51
-		'text/customer/newsletter' => array( 'langid' => null, 'typeid' => 'customer/newsletter', 'domain' => 'customer', 'label' => 'customer/newsletter', 'content' => 'Customer newsletter', 'status' => 1),
49
+		'text/customer/information' => array( 'langid' => null, 'typeid' => 'customer/information', 'domain' => 'customer', 'label' => 'customer/information', 'content' => 'Customer information', 'status' => 1 ),
50
+		'text/customer/notify' => array( 'langid' => null, 'typeid' => 'customer/notify', 'domain' => 'customer', 'label' => 'customer/notify', 'content' => 'Customer notify', 'status' => 1 ),
51
+		'text/customer/newsletter' => array( 'langid' => null, 'typeid' => 'customer/newsletter', 'domain' => 'customer', 'label' => 'customer/newsletter', 'content' => 'Customer newsletter', 'status' => 1 ),
52 52
 //supplier
53
-		'text/supplier/description' => array( 'langid' => null, 'typeid' => 'supplier/description', 'domain' => 'supplier', 'label' => 'supplier/description', 'content' => 'Supplier description', 'status' => 1),
53
+		'text/supplier/description' => array( 'langid' => null, 'typeid' => 'supplier/description', 'domain' => 'supplier', 'label' => 'supplier/description', 'content' => 'Supplier description', 'status' => 1 ),
54 54
 //ATTR
55 55
 //size
56 56
 		'text/size/XS' => array( 'langid' => null, 'typeid' => 'attribute/name', 'domain' => 'attribute', 'label' => 'size/XS', 'content' => 'XS', 'status' => 1 ),
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/data/supplier-list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2015-2017
6 6
  */
7 7
 
8
-return array (
9
-	'supplier/lists/type' => array (
8
+return array(
9
+	'supplier/lists/type' => array(
10 10
 		'product/default' => array( 'domain' => 'product', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ),
11 11
 		'text/default' => array( 'domain' => 'text', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ),
12 12
 	),
13 13
 
14
-	'supplier/lists' => array (
14
+	'supplier/lists' => array(
15 15
 		array( 'parentid' => 'supplier/unitCode001', 'typeid' => 'product/default', 'domain' => 'product', 'refid' => 'product/CNC', 'start' => '2010-01-01 00:00:00', 'end' => '2100-01-01 00:00:00', 'config' => [], 'pos' => 1, 'status' => 1 ),
16 16
 		array( 'parentid' => 'supplier/unitCode001', 'typeid' => 'product/default', 'domain' => 'product', 'refid' => 'product/CNE', 'start' => '2010-01-01 00:00:00', 'end' => null, 'config' => [], 'pos' => 2, 'status' => 1 ),
17 17
 
Please login to merge, or discard this patch.