Completed
Push — master ( c1ac02...038e21 )
by Aimeos
02:23
created
controller/frontend/src/Controller/Frontend/Supplier/Decorator/Base.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
 	/**
119 119
 	 * Returns the frontend controller
120 120
 	 *
121
-	 * @return \Aimeos\Controller\Frontend\Supplier\Iface Frontend controller object
121
+	 * @return \Aimeos\Controller\Frontend\Iface Frontend controller object
122 122
 	 */
123 123
 	protected function getController()
124 124
 	{
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -30,18 +30,18 @@  discard block
 block discarded – undo
30 30
 	 * @param \Aimeos\Controller\Frontend\Iface $controller Controller object
31 31
 	 * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects
32 32
 	 */
33
-	public function __construct( \Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context )
33
+	public function __construct(\Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context)
34 34
 	{
35 35
 		$iface = '\Aimeos\Controller\Frontend\Supplier\Iface';
36
-		if( !( $controller instanceof $iface ) )
36
+		if (!($controller instanceof $iface))
37 37
 		{
38
-			$msg = sprintf( 'Class "%1$s" does not implement interface "%2$s"', get_class( $controller ), $iface );
39
-			throw new \Aimeos\Controller\Frontend\Exception( $msg );
38
+			$msg = sprintf('Class "%1$s" does not implement interface "%2$s"', get_class($controller), $iface);
39
+			throw new \Aimeos\Controller\Frontend\Exception($msg);
40 40
 		}
41 41
 
42 42
 		$this->controller = $controller;
43 43
 
44
-		parent::__construct( $context );
44
+		parent::__construct($context);
45 45
 	}
46 46
 
47 47
 
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
 	 * @return mixed Returns the value of the called method
54 54
 	 * @throws \Aimeos\Controller\Frontend\Exception If method call failed
55 55
 	 */
56
-	public function __call( $name, array $param )
56
+	public function __call($name, array $param)
57 57
 	{
58
-		return @call_user_func_array( array( $this->controller, $name ), $param );
58
+		return @call_user_func_array(array($this->controller, $name), $param);
59 59
 	}
60 60
 
61 61
 
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
 	 * @return \Aimeos\MShop\Supplier\Item\Iface Supplier item including the referenced domains items
81 81
 	 * @since 2018.07
82 82
 	 */
83
-	public function getItem( $id, array $domains = array( 'media', 'text' ) )
83
+	public function getItem($id, array $domains = array('media', 'text'))
84 84
 	{
85
-		return $this->controller->getItem( $id, $domains );
85
+		return $this->controller->getItem($id, $domains);
86 86
 	}
87 87
 
88 88
 
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
 	 * @return \Aimeos\MShop\Supplier\Item\Iface[] Associative list of supplier item including the referenced domains items
95 95
 	 * @since 2018.07
96 96
 	 */
97
-	public function getItems( array $ids, array $domains = array( 'media', 'text' ) )
97
+	public function getItems(array $ids, array $domains = array('media', 'text'))
98 98
 	{
99
-		return $this->controller->getItems( $ids, $domains );
99
+		return $this->controller->getItems($ids, $domains);
100 100
 	}
101 101
 
102 102
 
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
 	 * @return array Ordered list of supplier items implementing \Aimeos\MShop\Supplier\Item\Iface
110 110
 	 * @since 2018.07
111 111
 	 */
112
-	public function searchItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'text' ), &$total = null )
112
+	public function searchItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'text'), &$total = null)
113 113
 	{
114
-		return $this->controller->searchItems( $filter, $domains, $total );
114
+		return $this->controller->searchItems($filter, $domains, $total);
115 115
 	}
116 116
 
117 117
 
Please login to merge, or discard this patch.
controller/frontend/tests/Controller/Frontend/Supplier/FactoryTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -15,31 +15,31 @@
 block discarded – undo
15 15
 	{
16 16
 		$target = '\\Aimeos\\Controller\\Frontend\\Supplier\\Iface';
17 17
 
18
-		$controller = \Aimeos\Controller\Frontend\Supplier\Factory::createController( \TestHelperFrontend::getContext() );
19
-		$this->assertInstanceOf( $target, $controller );
18
+		$controller = \Aimeos\Controller\Frontend\Supplier\Factory::createController(\TestHelperFrontend::getContext());
19
+		$this->assertInstanceOf($target, $controller);
20 20
 
21
-		$controller = \Aimeos\Controller\Frontend\Supplier\Factory::createController( \TestHelperFrontend::getContext(), 'Standard' );
22
-		$this->assertInstanceOf( $target, $controller );
21
+		$controller = \Aimeos\Controller\Frontend\Supplier\Factory::createController(\TestHelperFrontend::getContext(), 'Standard');
22
+		$this->assertInstanceOf($target, $controller);
23 23
 	}
24 24
 
25 25
 
26 26
 	public function testCreateControllerInvalidImplementation()
27 27
 	{
28
-		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' );
29
-		\Aimeos\Controller\Frontend\Supplier\Factory::createController( \TestHelperFrontend::getContext(), 'Invalid' );
28
+		$this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception');
29
+		\Aimeos\Controller\Frontend\Supplier\Factory::createController(\TestHelperFrontend::getContext(), 'Invalid');
30 30
 	}
31 31
 
32 32
 
33 33
 	public function testCreateControllerInvalidName()
34 34
 	{
35
-		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' );
36
-		\Aimeos\Controller\Frontend\Supplier\Factory::createController( \TestHelperFrontend::getContext(), '%^' );
35
+		$this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception');
36
+		\Aimeos\Controller\Frontend\Supplier\Factory::createController(\TestHelperFrontend::getContext(), '%^');
37 37
 	}
38 38
 
39 39
 
40 40
 	public function testCreateControllerNotExisting()
41 41
 	{
42
-		$this->setExpectedException( '\\Aimeos\\Controller\\Frontend\\Exception' );
43
-		\Aimeos\Controller\Frontend\Supplier\Factory::createController( \TestHelperFrontend::getContext(), 'notexist' );
42
+		$this->setExpectedException('\\Aimeos\\Controller\\Frontend\\Exception');
43
+		\Aimeos\Controller\Frontend\Supplier\Factory::createController(\TestHelperFrontend::getContext(), 'notexist');
44 44
 	}
45 45
 }
Please login to merge, or discard this patch.
controller/frontend/tests/Controller/Frontend/Supplier/StandardTest.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@  discard block
 block discarded – undo
16 16
 
17 17
 	protected function setUp()
18 18
 	{
19
-		$this->object = new \Aimeos\Controller\Frontend\Supplier\Standard( \TestHelperFrontend::getContext() );
19
+		$this->object = new \Aimeos\Controller\Frontend\Supplier\Standard(\TestHelperFrontend::getContext());
20 20
 	}
21 21
 
22 22
 
23 23
 	protected function tearDown()
24 24
 	{
25
-		unset( $this->object );
25
+		unset($this->object);
26 26
 	}
27 27
 
28 28
 
@@ -30,34 +30,34 @@  discard block
 block discarded – undo
30 30
 	{
31 31
 		$filter = $this->object->createFilter();
32 32
 
33
-		$this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Iface', $filter );
34
-		$this->assertEquals( 0, $filter->getSliceStart() );
35
-		$this->assertEquals( 100, $filter->getSliceSize() );
33
+		$this->assertInstanceOf('\\Aimeos\\MW\\Criteria\\Iface', $filter);
34
+		$this->assertEquals(0, $filter->getSliceStart());
35
+		$this->assertEquals(100, $filter->getSliceSize());
36 36
 	}
37 37
 
38 38
 
39 39
 	public function testGetItem()
40 40
 	{
41 41
 		$context = \TestHelperFrontend::getContext();
42
-		$manager = \Aimeos\MShop\Factory::createManager( $context, 'supplier' );
43
-		$id = $manager->findItem( 'unitCode001' )->getId();
42
+		$manager = \Aimeos\MShop\Factory::createManager($context, 'supplier');
43
+		$id = $manager->findItem('unitCode001')->getId();
44 44
 
45
-		$result = $this->object->getItem( $id );
45
+		$result = $this->object->getItem($id);
46 46
 
47
-		$this->assertInstanceOf( '\Aimeos\MShop\Supplier\Item\Iface', $result );
47
+		$this->assertInstanceOf('\Aimeos\MShop\Supplier\Item\Iface', $result);
48 48
 	}
49 49
 
50 50
 
51 51
 	public function testGetItems()
52 52
 	{
53 53
 		$context = \TestHelperFrontend::getContext();
54
-		$manager = \Aimeos\MShop\Factory::createManager( $context, 'supplier' );
55
-		$id = $manager->findItem( 'unitCode001' )->getId();
54
+		$manager = \Aimeos\MShop\Factory::createManager($context, 'supplier');
55
+		$id = $manager->findItem('unitCode001')->getId();
56 56
 
57
-		$result = $this->object->getItems( [$id] );
57
+		$result = $this->object->getItems([$id]);
58 58
 
59
-		$this->assertInternalType( 'array', $result );
60
-		$this->assertEquals( 1, count( $result ) );
59
+		$this->assertInternalType('array', $result);
60
+		$this->assertEquals(1, count($result));
61 61
 	}
62 62
 
63 63
 
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
 		$filter = $this->object->createFilter();
67 67
 
68 68
 		$total = 0;
69
-		$results = $this->object->searchItems( $filter, [], $total );
69
+		$results = $this->object->searchItems($filter, [], $total);
70 70
 
71
-		$this->assertEquals( 2, $total );
72
-		$this->assertEquals( 2, count( $results ) );
71
+		$this->assertEquals(2, $total);
72
+		$this->assertEquals(2, count($results));
73 73
 	}
74 74
 }
Please login to merge, or discard this patch.
frontend/tests/Controller/Frontend/Supplier/Decorator/BaseTest.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -20,106 +20,106 @@
 block discarded – undo
20 20
 	{
21 21
 		$this->context = \TestHelperFrontend::getContext();
22 22
 
23
-		$this->stub = $this->getMockBuilder( '\Aimeos\Controller\Frontend\Supplier\Standard' )
23
+		$this->stub = $this->getMockBuilder('\Aimeos\Controller\Frontend\Supplier\Standard')
24 24
 			->disableOriginalConstructor()
25 25
 			->getMock();
26 26
 
27
-		$this->object = $this->getMockBuilder( '\Aimeos\Controller\Frontend\Supplier\Decorator\Base' )
28
-			->setConstructorArgs( [$this->stub, $this->context] )
27
+		$this->object = $this->getMockBuilder('\Aimeos\Controller\Frontend\Supplier\Decorator\Base')
28
+			->setConstructorArgs([$this->stub, $this->context])
29 29
 			->getMockForAbstractClass();
30 30
 	}
31 31
 
32 32
 
33 33
 	protected function tearDown()
34 34
 	{
35
-		unset( $this->context, $this->object, $this->stub );
35
+		unset($this->context, $this->object, $this->stub);
36 36
 	}
37 37
 
38 38
 
39 39
 	public function testConstructException()
40 40
 	{
41
-		$stub = $this->getMockBuilder( '\Aimeos\Controller\Frontend\Iface' )->getMock();
41
+		$stub = $this->getMockBuilder('\Aimeos\Controller\Frontend\Iface')->getMock();
42 42
 
43
-		$this->setExpectedException( '\Aimeos\Controller\Frontend\Exception' );
43
+		$this->setExpectedException('\Aimeos\Controller\Frontend\Exception');
44 44
 
45
-		$this->getMockBuilder( '\Aimeos\Controller\Frontend\Supplier\Decorator\Base' )
46
-			->setConstructorArgs( [$stub, $this->context] )
45
+		$this->getMockBuilder('\Aimeos\Controller\Frontend\Supplier\Decorator\Base')
46
+			->setConstructorArgs([$stub, $this->context])
47 47
 			->getMockForAbstractClass();
48 48
 	}
49 49
 
50 50
 
51 51
 	public function testCall()
52 52
 	{
53
-		$stub = $this->getMockBuilder( '\Aimeos\Controller\Frontend\Supplier\Standard' )
53
+		$stub = $this->getMockBuilder('\Aimeos\Controller\Frontend\Supplier\Standard')
54 54
 			->disableOriginalConstructor()
55
-			->setMethods( ['invalid'] )
55
+			->setMethods(['invalid'])
56 56
 			->getMock();
57 57
 
58
-		$object = $this->getMockBuilder( '\Aimeos\Controller\Frontend\Supplier\Decorator\Base' )
59
-			->setConstructorArgs( [$stub, $this->context] )
58
+		$object = $this->getMockBuilder('\Aimeos\Controller\Frontend\Supplier\Decorator\Base')
59
+			->setConstructorArgs([$stub, $this->context])
60 60
 			->getMockForAbstractClass();
61 61
 
62
-		$stub->expects( $this->once() )->method( 'invalid' )->will( $this->returnValue( true ) );
62
+		$stub->expects($this->once())->method('invalid')->will($this->returnValue(true));
63 63
 
64
-		$this->assertTrue( $object->invalid() );
64
+		$this->assertTrue($object->invalid());
65 65
 	}
66 66
 
67 67
 
68 68
 	public function testCreateFilter()
69 69
 	{
70
-		$search = \Aimeos\MShop\Factory::createManager( $this->context, 'supplier' )->createSearch();
70
+		$search = \Aimeos\MShop\Factory::createManager($this->context, 'supplier')->createSearch();
71 71
 
72
-		$this->stub->expects( $this->once() )->method( 'createFilter' )
73
-			->will( $this->returnValue( $search ) );
72
+		$this->stub->expects($this->once())->method('createFilter')
73
+			->will($this->returnValue($search));
74 74
 
75
-		$this->assertInstanceOf( '\Aimeos\MW\Criteria\Iface', $this->object->createFilter() );
75
+		$this->assertInstanceOf('\Aimeos\MW\Criteria\Iface', $this->object->createFilter());
76 76
 	}
77 77
 
78 78
 
79 79
 	public function testGetItem()
80 80
 	{
81
-		$item = \Aimeos\MShop\Factory::createManager( $this->context, 'supplier' )->createItem();
81
+		$item = \Aimeos\MShop\Factory::createManager($this->context, 'supplier')->createItem();
82 82
 
83
-		$this->stub->expects( $this->once() )->method( 'getItem' )
84
-			->will( $this->returnValue( $item ) );
83
+		$this->stub->expects($this->once())->method('getItem')
84
+			->will($this->returnValue($item));
85 85
 
86
-		$this->assertInstanceOf( '\Aimeos\MShop\Supplier\Item\Iface', $this->object->getItem( -1 ) );
86
+		$this->assertInstanceOf('\Aimeos\MShop\Supplier\Item\Iface', $this->object->getItem( -1 ));
87 87
 	}
88 88
 
89 89
 
90 90
 	public function testGetItems()
91 91
 	{
92
-		$this->stub->expects( $this->once() )->method( 'getItems' )
93
-			->will( $this->returnValue( [] ) );
92
+		$this->stub->expects($this->once())->method('getItems')
93
+			->will($this->returnValue([]));
94 94
 
95
-		$this->assertEquals( [], $this->object->getItems( [-1], ['media'] ) );
95
+		$this->assertEquals([], $this->object->getItems([-1], ['media']));
96 96
 	}
97 97
 
98 98
 
99 99
 	public function testSearchItems()
100 100
 	{
101
-		$filter = \Aimeos\MShop\Factory::createManager( $this->context, 'supplier' )->createSearch();
101
+		$filter = \Aimeos\MShop\Factory::createManager($this->context, 'supplier')->createSearch();
102 102
 
103
-		$this->stub->expects( $this->once() )->method( 'searchItems' )
104
-			->will( $this->returnValue( [] ) );
103
+		$this->stub->expects($this->once())->method('searchItems')
104
+			->will($this->returnValue([]));
105 105
 
106
-		$this->assertEquals( [], $this->object->searchItems( $filter, ['media'] ) );
106
+		$this->assertEquals([], $this->object->searchItems($filter, ['media']));
107 107
 	}
108 108
 
109 109
 
110 110
 	public function testGetController()
111 111
 	{
112
-		$result = $this->access( 'getController' )->invokeArgs( $this->object, [] );
112
+		$result = $this->access('getController')->invokeArgs($this->object, []);
113 113
 
114
-		$this->assertSame( $this->stub, $result );
114
+		$this->assertSame($this->stub, $result);
115 115
 	}
116 116
 
117 117
 
118
-	protected function access( $name )
118
+	protected function access($name)
119 119
 	{
120
-		$class = new \ReflectionClass( '\Aimeos\Controller\Frontend\Supplier\Decorator\Base' );
121
-		$method = $class->getMethod( $name );
122
-		$method->setAccessible( true );
120
+		$class = new \ReflectionClass('\Aimeos\Controller\Frontend\Supplier\Decorator\Base');
121
+		$method = $class->getMethod($name);
122
+		$method->setAccessible(true);
123 123
 
124 124
 		return $method;
125 125
 	}
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Supplier/Factory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 * @param string|null $name Name of the controller implementaton (default: "Standard")
29 29
 	 * @return \Aimeos\Controller\Frontend\Supplier\Iface Controller object
30 30
 	 */
31
-	public static function createController( \Aimeos\MShop\Context\Item\Iface $context, $name = null )
31
+	public static function createController(\Aimeos\MShop\Context\Item\Iface $context, $name = null)
32 32
 	{
33 33
 		/** controller/frontend/supplier/name
34 34
 		 * Class name of the used supplier frontend controller implementation
@@ -63,20 +63,20 @@  discard block
 block discarded – undo
63 63
 		 * @since 2018.07
64 64
 		 * @category Developer
65 65
 		 */
66
-		if( $name === null ) {
67
-			$name = $context->getConfig()->get( 'controller/frontend/supplier/name', 'Standard' );
66
+		if ($name === null) {
67
+			$name = $context->getConfig()->get('controller/frontend/supplier/name', 'Standard');
68 68
 		}
69 69
 
70
-		if( ctype_alnum( $name ) === false )
70
+		if (ctype_alnum($name) === false)
71 71
 		{
72
-			$classname = is_string( $name ) ? '\\Aimeos\\Controller\\Frontend\\Supplier\\' . $name : '<not a string>';
73
-			throw new \Aimeos\Controller\Frontend\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) );
72
+			$classname = is_string($name) ? '\\Aimeos\\Controller\\Frontend\\Supplier\\' . $name : '<not a string>';
73
+			throw new \Aimeos\Controller\Frontend\Exception(sprintf('Invalid characters in class name "%1$s"', $classname));
74 74
 		}
75 75
 
76 76
 		$iface = '\\Aimeos\\Controller\\Frontend\\Supplier\\Iface';
77 77
 		$classname = '\\Aimeos\\Controller\\Frontend\\Supplier\\' . $name;
78 78
 
79
-		$manager = self::createControllerBase( $context, $classname, $iface );
79
+		$manager = self::createControllerBase($context, $classname, $iface);
80 80
 
81 81
 		/** controller/frontend/supplier/decorators/excludes
82 82
 		 * Excludes decorators added by the "common" option from the supplier frontend controllers
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 		 * @see controller/frontend/supplier/decorators/excludes
153 153
 		 * @see controller/frontend/supplier/decorators/global
154 154
 		 */
155
-		return self::addControllerDecorators( $context, $manager, 'supplier' );
155
+		return self::addControllerDecorators($context, $manager, 'supplier');
156 156
 	}
157 157
 
158 158
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Supplier/Standard.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	 */
31 31
 	public function createFilter()
32 32
 	{
33
-		return \Aimeos\MShop\Factory::createManager( $this->getContext(), 'supplier' )->createSearch( true );
33
+		return \Aimeos\MShop\Factory::createManager($this->getContext(), 'supplier')->createSearch(true);
34 34
 	}
35 35
 
36 36
 
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
 	 * @return \Aimeos\MShop\Supplier\Item\Iface Supplier item including the referenced domains items
43 43
 	 * @since 2018.07
44 44
 	 */
45
-	public function getItem( $id, array $domains = array( 'media', 'text' ) )
45
+	public function getItem($id, array $domains = array('media', 'text'))
46 46
 	{
47
-		return \Aimeos\MShop\Factory::createManager( $this->getContext(), 'supplier' )->getItem( $id, $domains, true );
47
+		return \Aimeos\MShop\Factory::createManager($this->getContext(), 'supplier')->getItem($id, $domains, true);
48 48
 	}
49 49
 
50 50
 
@@ -56,18 +56,18 @@  discard block
 block discarded – undo
56 56
 	 * @return \Aimeos\MShop\Supplier\Item\Iface[] Associative list of supplier item including the referenced domains items
57 57
 	 * @since 2018.07
58 58
 	 */
59
-	public function getItems( array $ids, array $domains = array( 'media', 'text' ) )
59
+	public function getItems(array $ids, array $domains = array('media', 'text'))
60 60
 	{
61
-		$manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'supplier' );
61
+		$manager = \Aimeos\MShop\Factory::createManager($this->getContext(), 'supplier');
62 62
 
63
-		$filter = $manager->createSearch( true );
63
+		$filter = $manager->createSearch(true);
64 64
 		$expr = [
65
-			$filter->compare( '==', 'supplier.id', $ids ),
65
+			$filter->compare('==', 'supplier.id', $ids),
66 66
 			$filter->getConditions(),
67 67
 		];
68
-		$filter->setConditions( $filter->combine( '&&', $expr ) );
68
+		$filter->setConditions($filter->combine('&&', $expr));
69 69
 
70
-		return $manager->searchItems( $filter, $domains );
70
+		return $manager->searchItems($filter, $domains);
71 71
 	}
72 72
 
73 73
 
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
 	 * @return array Ordered list of supplier items implementing \Aimeos\MShop\Supplier\Item\Iface
81 81
 	 * @since 2018.07
82 82
 	 */
83
-	public function searchItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'text' ), &$total = null )
83
+	public function searchItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'text'), &$total = null)
84 84
 	{
85
-		return \Aimeos\MShop\Factory::createManager( $this->getContext(), 'supplier' )->searchItems( $filter, $domains, $total );
85
+		return \Aimeos\MShop\Factory::createManager($this->getContext(), 'supplier')->searchItems($filter, $domains, $total);
86 86
 	}
87 87
 }
Please login to merge, or discard this patch.
controller/frontend/src/Controller/Frontend/Supplier/Iface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	 * @return \Aimeos\MShop\Supplier\Item\Iface Supplier item including the referenced domains items
37 37
 	 * @since 2018.07
38 38
 	 */
39
-	public function getItem( $id, array $domains = array( 'media', 'text' ) );
39
+	public function getItem($id, array $domains = array('media', 'text'));
40 40
 
41 41
 
42 42
 	/**
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	 * @return \Aimeos\MShop\Supplier\Item\Iface[] Associative list of supplier item including the referenced domains items
48 48
 	 * @since 2018.07
49 49
 	 */
50
-	public function getItems( array $ids, array $domains = array( 'media', 'text' ) );
50
+	public function getItems(array $ids, array $domains = array('media', 'text'));
51 51
 
52 52
 
53 53
 	/**
@@ -59,5 +59,5 @@  discard block
 block discarded – undo
59 59
 	 * @return array Ordered list of supplier items implementing \Aimeos\MShop\Supplier\Item\Iface
60 60
 	 * @since 2018.07
61 61
 	 */
62
-	public function searchItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'text' ), &$total = null );
62
+	public function searchItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'text'), &$total = null);
63 63
 }
Please login to merge, or discard this patch.