@@ -20,43 +20,43 @@ discard block |
||
20 | 20 | protected function setUp() |
21 | 21 | { |
22 | 22 | $ds = DIRECTORY_SEPARATOR; |
23 | - $this->manifestPath = __DIR__ . $ds . 'manifests' . $ds; |
|
24 | - $this->object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath . 'manifest.jsb2' ); |
|
23 | + $this->manifestPath = __DIR__.$ds.'manifests'.$ds; |
|
24 | + $this->object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath.'manifest.jsb2' ); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | |
28 | 28 | public function testConstructNoIncludeFilesExceptions() |
29 | 29 | { |
30 | 30 | $this->setExpectedException( '\\Aimeos\\MW\\Jsb2\\Exception' ); |
31 | - $this->object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath . 'manifest_invalid_fileinclude.jsb2' ); |
|
31 | + $this->object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath.'manifest_invalid_fileinclude.jsb2' ); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | |
35 | 35 | public function testConstructNoPackageExceptions() |
36 | 36 | { |
37 | 37 | $this->setExpectedException( '\\Aimeos\\MW\\Jsb2\\Exception' ); |
38 | - $this->object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath . 'manifest_invalid_package.jsb2' ); |
|
38 | + $this->object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath.'manifest_invalid_package.jsb2' ); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | |
42 | 42 | public function testConstructInvalidPackageContentExceptions() |
43 | 43 | { |
44 | 44 | $this->setExpectedException( '\\Aimeos\\MW\\Jsb2\\Exception' ); |
45 | - $this->object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath . 'manifest_invalid_package_content.jsb2' ); |
|
45 | + $this->object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath.'manifest_invalid_package_content.jsb2' ); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | |
49 | 49 | public function testConstructNotJSONExceptions() |
50 | 50 | { |
51 | 51 | $this->setExpectedException( '\\Aimeos\\MW\\Jsb2\\Exception' ); |
52 | - $this->object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath . 'manifest_no_json.jsb2' ); |
|
52 | + $this->object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath.'manifest_no_json.jsb2' ); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | |
56 | 56 | public function testConstructFileNotExistingExceptions() |
57 | 57 | { |
58 | 58 | $this->setExpectedException( '\\Aimeos\\MW\\Jsb2\\Exception' ); |
59 | - $this->object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath . 'manifest_not_existing.jsb2' ); |
|
59 | + $this->object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath.'manifest_not_existing.jsb2' ); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | |
@@ -72,9 +72,9 @@ discard block |
||
72 | 72 | public function testGetHTML() |
73 | 73 | { |
74 | 74 | $html = '<script type="text/javascript" src="/./../%1$s"></script>'; |
75 | - $mtime = filemtime( __DIR__ . DIRECTORY_SEPARATOR . 'test.js' ); |
|
75 | + $mtime = filemtime( __DIR__.DIRECTORY_SEPARATOR.'test.js' ); |
|
76 | 76 | |
77 | - $this->assertEquals( sprintf( $html, 'test.js?v=' . $mtime ), trim( $this->object->getHTML( 'js' ) ) ); |
|
77 | + $this->assertEquals( sprintf( $html, 'test.js?v='.$mtime ), trim( $this->object->getHTML( 'js' ) ) ); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | public function testGetUrlsFilemtimeException() |
91 | 91 | { |
92 | - $object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath . 'manifest_filemtime_exception.jsb2' ); |
|
92 | + $object = new \Aimeos\MW\Jsb2\Standard( $this->manifestPath.'manifest_filemtime_exception.jsb2' ); |
|
93 | 93 | |
94 | 94 | $this->setExpectedException( '\\Aimeos\\MW\\Jsb2\\Exception' ); |
95 | 95 | $object->getHTML( 'js' ); |
@@ -15,8 +15,8 @@ discard block |
||
15 | 15 | $start = microtime( true ); |
16 | 16 | |
17 | 17 | $paths = array( |
18 | - __DIR__ . DIRECTORY_SEPARATOR . 'one', |
|
19 | - __DIR__ . DIRECTORY_SEPARATOR . 'two', |
|
18 | + __DIR__.DIRECTORY_SEPARATOR.'one', |
|
19 | + __DIR__.DIRECTORY_SEPARATOR.'two', |
|
20 | 20 | ); |
21 | 21 | |
22 | 22 | for( $i = 0; $i < 1000; $i++ ) |
@@ -29,6 +29,6 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | $stop = microtime( true ); |
32 | - echo "\n config array: " . ( ( $stop - $start ) * 1000 ) . " msec\n"; |
|
32 | + echo "\n config array: ".( ( $stop - $start ) * 1000 )." msec\n"; |
|
33 | 33 | } |
34 | 34 | } |
@@ -85,12 +85,12 @@ |
||
85 | 85 | } |
86 | 86 | |
87 | 87 | if( ctype_alnum( $name ) === false ) { |
88 | - $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Media\\' . $name : '<not a string>'; |
|
88 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Media\\'.$name : '<not a string>'; |
|
89 | 89 | throw new \Aimeos\Controller\Common\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
90 | 90 | } |
91 | 91 | |
92 | 92 | $iface = '\\Aimeos\\Controller\\Common\\Media\\Iface'; |
93 | - $classname = '\\Aimeos\\Controller\\Common\\Media\\' . $name; |
|
93 | + $classname = '\\Aimeos\\Controller\\Common\\Media\\'.$name; |
|
94 | 94 | |
95 | 95 | if( isset( self::$objects[$classname] ) ) { |
96 | 96 | return self::$objects[$classname]; |
@@ -86,12 +86,12 @@ |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | if( ctype_alnum( $name ) === false ) { |
89 | - $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Order\\' . $name : '<not a string>'; |
|
89 | + $classname = is_string( $name ) ? '\\Aimeos\\Controller\\Common\\Order\\'.$name : '<not a string>'; |
|
90 | 90 | throw new \Aimeos\Controller\Common\Exception( sprintf( 'Invalid characters in class name "%1$s"', $classname ) ); |
91 | 91 | } |
92 | 92 | |
93 | 93 | $iface = '\\Aimeos\\Controller\\Common\\Order\\Iface'; |
94 | - $classname = '\\Aimeos\\Controller\\Common\\Order\\' . $name; |
|
94 | + $classname = '\\Aimeos\\Controller\\Common\\Order\\'.$name; |
|
95 | 95 | |
96 | 96 | if( isset( self::$objects[$classname] ) ) { |
97 | 97 | return self::$objects[$classname]; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | 'media' => array( |
12 | 12 | 'standard' => array( |
13 | 13 | 'mimeicon' => array( |
14 | - 'directory' => dirname( __DIR__ ) . '/tmp/media/mimeicons', |
|
14 | + 'directory' => dirname( __DIR__ ).'/tmp/media/mimeicons', |
|
15 | 15 | ), |
16 | 16 | ), |
17 | 17 | ), |
@@ -75,8 +75,8 @@ |
||
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 ); |
@@ -308,7 +308,7 @@ |
||
308 | 308 | /** |
309 | 309 | * Returns all children of this node. |
310 | 310 | * |
311 | - * @return array Numerically indexed list of nodes |
|
311 | + * @return Iface[] Numerically indexed list of nodes |
|
312 | 312 | */ |
313 | 313 | public function getChildren() |
314 | 314 | { |
@@ -207,7 +207,9 @@ discard block |
||
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 |
||
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 | } |
@@ -8,7 +8,7 @@ discard block |
||
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 |
||
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 |
@@ -8,7 +8,8 @@ discard block |
||
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 |
||
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 |