Passed
Push — master ( fa8ce6...41373a )
by Aimeos
04:52 queued 01:29
created
admin/jqadm/templates/group/item-standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
 				<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?>
59 59
 					<li class="nav-item <?= $enc->attr( $subpart ); ?>">
60
-						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>">
60
+						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>">
61 61
 							<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
62 62
 						</a>
63 63
 					</li>
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 			throw new \Aimeos\Admin\JQAdm\Exception( sprintf( 'Invalid factory "%1$s"', $factory ) );
63 63
 		}
64 64
 
65
-		return $client->setAimeos( $aimeos )->setView( $view );;
65
+		return $client->setAimeos( $aimeos )->setView( $view ); ;
66 66
 	}
67 67
 
68 68
 }
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@
 block discarded – undo
285 285
 			$manager = \Aimeos\MShop::create( $context, 'index' );
286 286
 
287 287
 			$search = $manager->createSearch();
288
-			$search->setSortations( [$search->sort( '+', 'product.id')] );
288
+			$search->setSortations( [$search->sort( '+', 'product.id' )] );
289 289
 			$search = $this->initCriteria( $search, $params );
290 290
 
291 291
 			$view->items = $manager->searchItems( $search, array_diff( $this->getDomains(), ['product'] ), $total );
Please login to merge, or discard this patch.
admin/jqadm/tests/Admin/JQAdm/Product/Media/StandardTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 		$file = $this->getMockBuilder( \Psr\Http\Message\UploadedFileInterface::class )->getMock();
106 106
 		$request = $this->getMockBuilder( \Psr\Http\Message\ServerRequestInterface::class )->getMock();
107 107
 		$request->expects( $this->any() )->method( 'getUploadedFiles' )
108
-			->will( $this->returnValue( ['media' => [0 => ['file' => $file] ] ] ) );
108
+			->will( $this->returnValue( ['media' => [0 => ['file' => $file]]] ) );
109 109
 
110 110
 		$helper = new \Aimeos\MW\View\Helper\Request\Standard( $this->view, $request, '127.0.0.1', 'test' );
111 111
 		$this->view ->addHelper( 'request', $helper );
Please login to merge, or discard this patch.
admin/jqadm/tests/Admin/JQAdm/Supplier/Media/StandardTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 		$file = $this->getMockBuilder( \Psr\Http\Message\UploadedFileInterface::class )->getMock();
106 106
 		$request = $this->getMockBuilder( \Psr\Http\Message\ServerRequestInterface::class )->getMock();
107 107
 		$request->expects( $this->any() )->method( 'getUploadedFiles' )
108
-			->will( $this->returnValue( ['media' => [0 => ['file' => $file] ] ] ) );
108
+			->will( $this->returnValue( ['media' => [0 => ['file' => $file]]] ) );
109 109
 
110 110
 		$helper = new \Aimeos\MW\View\Helper\Request\Standard( $this->view, $request, '127.0.0.1', 'test' );
111 111
 		$this->view ->addHelper( 'request', $helper );
Please login to merge, or discard this patch.
admin/jqadm/tests/Admin/JQAdm/Attribute/Media/StandardTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 		$file = $this->getMockBuilder( \Psr\Http\Message\UploadedFileInterface::class )->getMock();
106 106
 		$request = $this->getMockBuilder( \Psr\Http\Message\ServerRequestInterface::class )->getMock();
107 107
 		$request->expects( $this->any() )->method( 'getUploadedFiles' )
108
-			->will( $this->returnValue( ['media' => [0 => ['file' => $file] ] ] ) );
108
+			->will( $this->returnValue( ['media' => [0 => ['file' => $file]]] ) );
109 109
 
110 110
 		$helper = new \Aimeos\MW\View\Helper\Request\Standard( $this->view, $request, '127.0.0.1', 'test' );
111 111
 		$this->view ->addHelper( 'request', $helper );
Please login to merge, or discard this patch.
admin/jqadm/tests/Admin/JQAdm/Service/Media/StandardTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 		$file = $this->getMockBuilder( \Psr\Http\Message\UploadedFileInterface::class )->getMock();
106 106
 		$request = $this->getMockBuilder( \Psr\Http\Message\ServerRequestInterface::class )->getMock();
107 107
 		$request->expects( $this->any() )->method( 'getUploadedFiles' )
108
-			->will( $this->returnValue( ['media' => [0 => ['file' => $file] ] ] ) );
108
+			->will( $this->returnValue( ['media' => [0 => ['file' => $file]]] ) );
109 109
 
110 110
 		$helper = new \Aimeos\MW\View\Helper\Request\Standard( $this->view, $request, '127.0.0.1', 'test' );
111 111
 		$this->view ->addHelper( 'request', $helper );
Please login to merge, or discard this patch.
admin/jqadm/tests/Admin/JQAdm/Catalog/Media/StandardTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 		$file = $this->getMockBuilder( \Psr\Http\Message\UploadedFileInterface::class )->getMock();
106 106
 		$request = $this->getMockBuilder( \Psr\Http\Message\ServerRequestInterface::class )->getMock();
107 107
 		$request->expects( $this->any() )->method( 'getUploadedFiles' )
108
-			->will( $this->returnValue( ['media' => [0 => ['file' => $file] ] ] ) );
108
+			->will( $this->returnValue( ['media' => [0 => ['file' => $file]]] ) );
109 109
 
110 110
 		$helper = new \Aimeos\MW\View\Helper\Request\Standard( $this->view, $request, '127.0.0.1', 'test' );
111 111
 		$this->view ->addHelper( 'request', $helper );
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Media/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -416,7 +416,7 @@
 block discarded – undo
416 416
 
417 417
 			if( $file && $file->getError() !== UPLOAD_ERR_NO_FILE ) {
418 418
 				$refItem = $cntl->add( $refItem, $file );
419
-			} elseif ( $refItem->getId() === null && $refItem->getUrl() !== '' ) {
419
+			} elseif( $refItem->getId() === null && $refItem->getUrl() !== '' ) {
420 420
 				$refItem = $cntl->copy( $refItem );
421 421
 			}
422 422
 
Please login to merge, or discard this patch.