Passed
Pull Request — master (#364)
by
unknown
04:00
created
src/Aimeos/Shop/Base/Context.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@
 block discarded – undo
241 241
 	 */
242 242
 	protected function addUser( \Aimeos\MShop\Context\Item\Iface $context ) : \Aimeos\MShop\Context\Item\Iface
243 243
 	{
244
-		$key = collect( config( 'routes' ) )->where( 'prefix', optional(Route::getCurrentRoute())->getPrefix() )->keys()->first();
244
+		$key = collect( config( 'routes' ) )->where( 'prefix', optional( Route::getCurrentRoute() )->getPrefix() )->keys()->first();
245 245
 		$guard = data_get( config( 'guards' ), $key, Auth::getDefaultDriver() );
246 246
 
247 247
 		if( ( $userid = Auth::guard( $guard )->id() ) !== null ) {
Please login to merge, or discard this patch.