Passed
Push — master ( 37afd1...dd4a5d )
by Aimeos
18:29 queued 13s
created
Service/Context.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 	 */
94 94
 	protected function addCache( \Aimeos\MShop\ContextIface $context )
95 95
 	{
96
-		$cache = (new \Aimeos\MAdmin\Cache\Manager\Standard( $context ))->getCache();
96
+		$cache = ( new \Aimeos\MAdmin\Cache\Manager\Standard( $context ) )->getCache();
97 97
 
98 98
 		return $context->setCache( $cache );
99 99
 	}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -248,8 +248,7 @@
 block discarded – undo
248 248
 			$username = $token->getUser()->getUserIdentifier();
249 249
 			$userid = $token->getUser()->getId();
250 250
 			$context->setUserId( $userid );
251
-			$context->setGroupIds( function() use ( $context, $userid )
252
-			{
251
+			$context->setGroupIds( function() use ( $context, $userid ) {
253 252
 				$manager = \Aimeos\MShop::create( $context, 'customer' );
254 253
 				return $manager->get( $userid, array( 'customer/group' ) )->getGroups();
255 254
 			} );
Please login to merge, or discard this patch.
Service/View.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,8 +89,7 @@  discard block
 block discarded – undo
89 89
 			&& in_array( 'ROLE_SUPER_ADMIN', (array) $token->getUser()->getRoles() ) )
90 90
 		{
91 91
 			$helper = new \Aimeos\Base\View\Helper\Access\All( $view );
92
-		}
93
-		else
92
+		} else
94 93
 		{
95 94
 			$fcn = function() use ( $container, $context ) {
96 95
 				return $container->get( 'aimeos.support' )->getGroups( $context );
@@ -243,8 +242,7 @@  discard block
 block discarded – undo
243 242
 		{
244 243
 			$i18n = $this->container->get( 'aimeos.i18n' )->get( array( $locale ) );
245 244
 			$translation = $i18n[$locale];
246
-		}
247
-		else
245
+		} else
248 246
 		{
249 247
 			$translation = new \Aimeos\Base\Translation\None( 'en' );
250 248
 		}
Please login to merge, or discard this patch.
Tests/Fixtures/app/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 	/**
11 11
 	 * {@inheritdoc}
12 12
 	 */
13
-	public function registerBundles() : Traversable|array
13
+	public function registerBundles() : Traversable | array
14 14
 	{
15 15
 		return array(
16 16
 			new \Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
Please login to merge, or discard this patch.