Completed
Push — 2020.01 ( 973bc9...feaf51 )
by Aimeos
09:04 queued 04:34
created
lib/custom/tests/MW/View/Engine/Typo3Test.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
 			->disableOriginalConstructor()
32 32
 			->getMock();
33 33
 		$configuration->expects( $this->once() )->method( 'getConfiguration' );
34
-		$this->mock->expects( $this->at(0) )->method( 'get' )
35
-			->will( $this->returnValue( $configuration) );
34
+		$this->mock->expects( $this->at( 0 ) )->method( 'get' )
35
+			->will( $this->returnValue( $configuration ) );
36 36
 
37 37
 		$this->object = new \Aimeos\MW\View\Engine\Typo3( $this->mock );
38 38
 	}
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
 		$view->expects( $this->once() )->method( 'render' )
62 62
 			->will( $this->returnValue( 'test' ) );
63 63
 
64
-		$this->mock->expects( $this->at(0) )->method( 'get' )
65
-			->will( $this->returnValue( $view) );
64
+		$this->mock->expects( $this->at( 0 ) )->method( 'get' )
65
+			->will( $this->returnValue( $view ) );
66 66
 
67 67
 		$result = $this->object->render( $v, 'filepath', array( 'key' => 'value' ) );
68 68
 		$this->assertEquals( 'test', $result );
Please login to merge, or discard this patch.
lib/custom/src/MW/View/Engine/Typo3.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	public function __construct( \TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager )
33 33
 	{
34 34
 		$this->objectManager = $objectManager;
35
-		$this->configuration = $this->objectManager->get(ConfigurationManager::class)->getConfiguration(ConfigurationManager::CONFIGURATION_TYPE_FRAMEWORK);
35
+		$this->configuration = $this->objectManager->get( ConfigurationManager::class )->getConfiguration( ConfigurationManager::CONFIGURATION_TYPE_FRAMEWORK );
36 36
 	}
37 37
 
38 38
 
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
 	public function render( \Aimeos\MW\View\Iface $view, string $filename, array $values ) : string
49 49
 	{
50 50
 		$fluid = $this->objectManager->get( 'TYPO3\\CMS\\Fluid\\View\\StandaloneView' );
51
-		$fluid->setPartialRootPaths((array) $this->configuration['view']['partialRootPaths']);
52
-		$fluid->setLayoutRootPaths((array) $this->configuration['view']['layoutRootPaths']);
51
+		$fluid->setPartialRootPaths( (array) $this->configuration['view']['partialRootPaths'] );
52
+		$fluid->setLayoutRootPaths( (array) $this->configuration['view']['layoutRootPaths'] );
53 53
 		$fluid->setTemplatePathAndFilename( $filename );
54 54
 		$fluid->assign( '_aimeos_view', $view );
55 55
 		$fluid->assignMultiple( $values );
Please login to merge, or discard this patch.