@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | protected function setUp() |
17 | 17 | { |
18 | - $this->object = new \Aimeos\Controller\Frontend\Exception( 'msg', 1, null, array( 'key' => 'value' ) ); |
|
18 | + $this->object = new \Aimeos\Controller\Frontend\Exception('msg', 1, null, array('key' => 'value')); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | |
@@ -26,18 +26,18 @@ discard block |
||
26 | 26 | |
27 | 27 | public function testGetMessage() |
28 | 28 | { |
29 | - $this->assertEquals( 'msg', $this->object->getMessage() ); |
|
29 | + $this->assertEquals('msg', $this->object->getMessage()); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | |
33 | 33 | public function testGetCode() |
34 | 34 | { |
35 | - $this->assertEquals( 1, $this->object->getCode() ); |
|
35 | + $this->assertEquals(1, $this->object->getCode()); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | |
39 | 39 | public function testGetErrorList() |
40 | 40 | { |
41 | - $this->assertEquals( array( 'key' => 'value' ), $this->object->getErrorList() ); |
|
41 | + $this->assertEquals(array('key' => 'value'), $this->object->getErrorList()); |
|
42 | 42 | } |
43 | 43 | } |
@@ -11,22 +11,22 @@ |
||
11 | 11 | * Set error reporting to maximum |
12 | 12 | */ |
13 | 13 | error_reporting( -1 ); |
14 | -ini_set( 'display_errors', '1' ); |
|
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 | * Set include path for tests |
28 | 28 | */ |
29 | -define( 'PATH_TESTS', __DIR__ ); |
|
29 | +define('PATH_TESTS', __DIR__); |
|
30 | 30 | |
31 | 31 | require_once 'TestHelperFrontend.php'; |
32 | 32 | \TestHelperFrontend::bootstrap(); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | class Example |
22 | 22 | implements \Aimeos\Controller\Frontend\Common\Decorator\Iface |
23 | 23 | { |
24 | - public function __construct( \Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context ) |
|
24 | + public function __construct(\Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context) |
|
25 | 25 | { |
26 | 26 | } |
27 | 27 | } |
@@ -26,5 +26,5 @@ |
||
26 | 26 | * @param \Aimeos\Controller\Frontend\Iface $controller Controller object |
27 | 27 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects |
28 | 28 | */ |
29 | - public function __construct( \Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context ); |
|
29 | + public function __construct(\Aimeos\Controller\Frontend\Iface $controller, \Aimeos\MShop\Context\Item\Iface $context); |
|
30 | 30 | } |
@@ -26,6 +26,6 @@ |
||
26 | 26 | * |
27 | 27 | * @param \Aimeos\MShop\Context\Item\Iface $context MShop context object |
28 | 28 | */ |
29 | - public function __construct( \Aimeos\MShop\Context\Item\Iface $context ); |
|
29 | + public function __construct(\Aimeos\MShop\Context\Item\Iface $context); |
|
30 | 30 | |
31 | 31 | } |
@@ -4,7 +4,7 @@ |
||
4 | 4 | 'frontend' => array( |
5 | 5 | 'basket' => array( |
6 | 6 | 'decorators' => array( |
7 | - 'local' => array( 'Category', 'Bundle', 'Select' ), |
|
7 | + 'local' => array('Category', 'Bundle', 'Select'), |
|
8 | 8 | ), |
9 | 9 | ), |
10 | 10 | ), |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * |
29 | 29 | * @param \Aimeos\MShop\Context\Item\Iface $context Common MShop context object |
30 | 30 | */ |
31 | - public function __construct( \Aimeos\MShop\Context\Item\Iface $context ) |
|
31 | + public function __construct(\Aimeos\MShop\Context\Item\Iface $context) |
|
32 | 32 | { |
33 | 33 | $this->context = $context; |
34 | 34 | } |
@@ -41,9 +41,9 @@ discard block |
||
41 | 41 | * @param array $param List of method parameter |
42 | 42 | * @throws \Aimeos\Controller\Frontend\Exception If method call failed |
43 | 43 | */ |
44 | - public function __call( $name, array $param ) |
|
44 | + public function __call($name, array $param) |
|
45 | 45 | { |
46 | - throw new \Aimeos\Controller\Frontend\Exception( sprintf( 'Unable to call method "%1$s"', $name ) ); |
|
46 | + throw new \Aimeos\Controller\Frontend\Exception(sprintf('Unable to call method "%1$s"', $name)); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching |
28 | 28 | * @since 2017.03 |
29 | 29 | */ |
30 | - public function addFilterCodes( \Aimeos\MW\Criteria\Iface $filter, array $codes ); |
|
30 | + public function addFilterCodes(\Aimeos\MW\Criteria\Iface $filter, array $codes); |
|
31 | 31 | |
32 | 32 | |
33 | 33 | /** |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching |
39 | 39 | * @since 2017.03 |
40 | 40 | */ |
41 | - public function addFilterTypes( \Aimeos\MW\Criteria\Iface $filter, array $codes ); |
|
41 | + public function addFilterTypes(\Aimeos\MW\Criteria\Iface $filter, array $codes); |
|
42 | 42 | |
43 | 43 | |
44 | 44 | /** |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * @return \Aimeos\MShop\Stock\Item\Iface Stock item including the referenced domains items |
59 | 59 | * @since 2017.03 |
60 | 60 | */ |
61 | - public function getItem( $id ); |
|
61 | + public function getItem($id); |
|
62 | 62 | |
63 | 63 | |
64 | 64 | /** |
@@ -69,5 +69,5 @@ discard block |
||
69 | 69 | * @return array Ordered list of stock items implementing \Aimeos\MShop\Stock\Item\Iface |
70 | 70 | * @since 2017.03 |
71 | 71 | */ |
72 | - public function searchItems( \Aimeos\MW\Criteria\Iface $filter, &$total = null ); |
|
72 | + public function searchItems(\Aimeos\MW\Criteria\Iface $filter, &$total = null); |
|
73 | 73 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @return \Aimeos\MW\Criteria\Iface Criteria object containing the conditions for searching |
28 | 28 | * @since 2017.03 |
29 | 29 | */ |
30 | - public function addFilterTypes( \Aimeos\MW\Criteria\Iface $filter, array $codes ); |
|
30 | + public function addFilterTypes(\Aimeos\MW\Criteria\Iface $filter, array $codes); |
|
31 | 31 | |
32 | 32 | |
33 | 33 | /** |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * @return \Aimeos\MShop\Attribute\Item\Iface Attribute item including the referenced domains items |
48 | 48 | * @since 2017.03 |
49 | 49 | */ |
50 | - public function getItem( $id, array $domains = array( 'media', 'price', 'text' ) ); |
|
50 | + public function getItem($id, array $domains = array('media', 'price', 'text')); |
|
51 | 51 | |
52 | 52 | |
53 | 53 | /** |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * @return \Aimeos\MShop\Attribute\Item\Iface[] Associative list of attribute item including the referenced domains items |
59 | 59 | * @since 2017.03 |
60 | 60 | */ |
61 | - public function getItems( array $ids, array $domains = array( 'media', 'price', 'text' ) ); |
|
61 | + public function getItems(array $ids, array $domains = array('media', 'price', 'text')); |
|
62 | 62 | |
63 | 63 | |
64 | 64 | /** |
@@ -70,5 +70,5 @@ discard block |
||
70 | 70 | * @return array Ordered list of attribute items implementing \Aimeos\MShop\Attribute\Item\Iface |
71 | 71 | * @since 2017.03 |
72 | 72 | */ |
73 | - public function searchItems( \Aimeos\MW\Criteria\Iface $filter, array $domains = array( 'media', 'price', 'text' ), &$total = null ); |
|
73 | + public function searchItems(\Aimeos\MW\Criteria\Iface $filter, array $domains = array('media', 'price', 'text'), &$total = null); |
|
74 | 74 | } |