@@ -166,7 +166,7 @@ |
||
| 166 | 166 | foreach( $this->object->getByTag( $this->prefix . $tag ) as $key => $value ) |
| 167 | 167 | { |
| 168 | 168 | if( strncmp( $key, $this->prefix, $len ) === 0 ) { |
| 169 | - $result[ substr( $key, $len ) ] = $value; |
|
| 169 | + $result[substr( $key, $len )] = $value; |
|
| 170 | 170 | } else { |
| 171 | 171 | $result[$key] = $value; |
| 172 | 172 | } |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | $uri = (string) $nativeRequest->getUri(); |
| 92 | 92 | $method = $nativeRequest->getMethod(); |
| 93 | 93 | |
| 94 | - $body = new Stream('php://temp', 'wb+'); |
|
| 94 | + $body = new Stream( 'php://temp', 'wb+' ); |
|
| 95 | 95 | $body->write( $nativeRequest->getContent() ); |
| 96 | 96 | |
| 97 | 97 | return new ServerRequest( $server, $files, $uri, $method, $body, $headers, $cookies, $query, $post ); |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | $localeItem = $this->getMockBuilder( \Aimeos\MShop\Locale\Item\Standard::class ) |
| 25 | - ->setMethods( ['getSiteId']) |
|
| 25 | + ->setMethods( ['getSiteId'] ) |
|
| 26 | 26 | ->getMock(); |
| 27 | 27 | |
| 28 | 28 | $this->mock = $this->getMockBuilder( 'Neos\Cache\Frontend\StringFrontend' ) |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | public function testTransform() |
| 42 | 42 | { |
| 43 | 43 | $this->buildMock->expects( $this->once() )->method( 'uriFor' ) |
| 44 | - ->will( $this->returnValue( '/shop/catalog/lists') ); |
|
| 44 | + ->will( $this->returnValue( '/shop/catalog/lists' ) ); |
|
| 45 | 45 | |
| 46 | 46 | $this->assertEquals( '/shop/catalog/lists', $this->object->transform( 'shop', 'catalog', 'lists' ) ); |
| 47 | 47 | } |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | public function testTransformSlashes() |
| 51 | 51 | { |
| 52 | 52 | $this->buildMock->expects( $this->once() )->method( 'uriFor' ) |
| 53 | - ->will( $this->returnValue( '/shop/catalog/lists?test=a%2Fb') ); |
|
| 53 | + ->will( $this->returnValue( '/shop/catalog/lists?test=a%2Fb' ) ); |
|
| 54 | 54 | |
| 55 | 55 | $this->assertEquals( '/shop/catalog/lists?test=a%2Fb', $this->object->transform( 'shop', 'catalog', 'lists', array( 'test' => 'a/b' ) ) ); |
| 56 | 56 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | public function testTransformArrays() |
| 60 | 60 | { |
| 61 | 61 | $this->buildMock->expects( $this->once() )->method( 'uriFor' ) |
| 62 | - ->will( $this->returnValue( '/shop/catalog/list?test%5B0%5D=a&test%5B1%5D=b') ); |
|
| 62 | + ->will( $this->returnValue( '/shop/catalog/list?test%5B0%5D=a&test%5B1%5D=b' ) ); |
|
| 63 | 63 | |
| 64 | 64 | $this->assertEquals( '/shop/catalog/list?test%5B0%5D=a&test%5B1%5D=b', $this->object->transform( 'shop', 'catalog', 'lists', array( 'test' => array( 'a', 'b' ) ) ) ); |
| 65 | 65 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | public function testTransformTrailing() |
| 69 | 69 | { |
| 70 | 70 | $this->buildMock->expects( $this->once() )->method( 'uriFor' ) |
| 71 | - ->will( $this->returnValue( '/shop/catalog/lists#a/b') ); |
|
| 71 | + ->will( $this->returnValue( '/shop/catalog/lists#a/b' ) ); |
|
| 72 | 72 | |
| 73 | 73 | $this->assertEquals( '/shop/catalog/lists#a/b', $this->object->transform( 'shop', 'catalog', 'lists', [], array( 'a', 'b' ) ) ); |
| 74 | 74 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | public function testTransformAbsolute() |
| 78 | 78 | { |
| 79 | 79 | $this->buildMock->expects( $this->once() )->method( 'uriFor' ) |
| 80 | - ->will( $this->returnValue( 'http://localhost/shop/catalog/lists') ); |
|
| 80 | + ->will( $this->returnValue( 'http://localhost/shop/catalog/lists' ) ); |
|
| 81 | 81 | |
| 82 | 82 | $options = array( 'absoluteUri' => true ); |
| 83 | 83 | $result = $this->object->transform( 'shop', 'catalog', 'lists', [], [], $options ); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | public function testTransformConfig() |
| 90 | 90 | { |
| 91 | 91 | $this->buildMock->expects( $this->once() )->method( 'uriFor' ) |
| 92 | - ->will( $this->returnValue( '/shop/catalog/lists') ); |
|
| 92 | + ->will( $this->returnValue( '/shop/catalog/lists' ) ); |
|
| 93 | 93 | |
| 94 | 94 | $options = array( 'package' => 'test', 'subpackage' => 'subtest', 'format' => 'fmt' ); |
| 95 | 95 | $result = $this->object->transform( 'shop', 'catalog', 'lists', [], [], $options ); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | * @return \Aimeos\MShop\Context\Item\Iface Context object |
| 54 | 54 | */ |
| 55 | 55 | private static function createContext( $site ) |
| 56 | - { |
|
| 56 | + { |
|
| 57 | 57 | $ctx = new \Aimeos\MShop\Context\Item\Standard(); |
| 58 | 58 | $mshop = self::getAimeos(); |
| 59 | 59 | |