Passed
Push — master ( 8248a2...199ce1 )
by Aimeos
03:50
created
admin/jqadm/src/Admin/JQAdm/Product/Special/Price/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -270,8 +270,7 @@
 block discarded – undo
270 270
 				$listItem = $listManager->createItem()->setType( 'custom' )->setRefId( $attrId );
271 271
 				$item->addListItem( 'attribute', $listItem, $listItem->getRefItem() );
272 272
 			}
273
-		}
274
-		else
273
+		} else
275 274
 		{
276 275
 			if( ( $litem = $item->getListItem( 'attribute', 'custom', $attrId, false ) ) !== null ) {
277 276
 				$item->deleteListItem( 'attribute', $litem );
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Catalog/Media/Property/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -291,8 +291,7 @@
 block discarded – undo
291 291
 				{
292 292
 					$propItem = $propItems[$entry['media.property.id']];
293 293
 					unset( $propItems[$entry['media.property.id']] );
294
-				}
295
-				else
294
+				} else
296 295
 				{
297 296
 					$propItem = $propManager->createItem();
298 297
 				}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Service/Media/Property/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -291,8 +291,7 @@
 block discarded – undo
291 291
 				{
292 292
 					$propItem = $propItems[$entry['media.property.id']];
293 293
 					unset( $propItems[$entry['media.property.id']] );
294
-				}
295
-				else
294
+				} else
296 295
 				{
297 296
 					$propItem = $propManager->createItem();
298 297
 				}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Supplier/Media/Property/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -291,8 +291,7 @@
 block discarded – undo
291 291
 				{
292 292
 					$propItem = $propItems[$entry['media.property.id']];
293 293
 					unset( $propItems[$entry['media.property.id']] );
294
-				}
295
-				else
294
+				} else
296 295
 				{
297 296
 					$propItem = $propManager->createItem();
298 297
 				}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Product/Media/Property/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -291,8 +291,7 @@
 block discarded – undo
291 291
 				{
292 292
 					$propItem = $propItems[$entry['media.property.id']];
293 293
 					unset( $propItems[$entry['media.property.id']] );
294
-				}
295
-				else
294
+				} else
296 295
 				{
297 296
 					$propItem = $propManager->createItem();
298 297
 				}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Attribute/Media/Property/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -291,8 +291,7 @@
 block discarded – undo
291 291
 				{
292 292
 					$propItem = $propItems[$entry['media.property.id']];
293 293
 					unset( $propItems[$entry['media.property.id']] );
294
-				}
295
-				else
294
+				} else
296 295
 				{
297 296
 					$propItem = $propManager->createItem();
298 297
 				}
Please login to merge, or discard this patch.
admin/jqadm/templates/type/text/list-standard.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121 121
 						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
122
+						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>"
123 123
 						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
124 124
 					</a>
125 125
 
@@ -199,12 +199,12 @@  discard block
 block discarded – undo
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201 201
 							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
202
+							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry' ) ); ?>"
203 203
 							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204 204
 						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206 206
 								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
207
+								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>"
208 208
 								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/pagination-standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 $first = ( $offset > 0 ? 0 : null );
43 43
 $prev = ( $offset - $limit >= 0 ? $offset - $limit : null );
44 44
 $next = ( $offset + $limit < $total ? $offset + $limit : null );
45
-$last = ( floor(($total - 1) / $limit) * $limit > $offset ? floor(($total - 1) / $limit) * $limit : null );
45
+$last = ( floor( ( $total - 1 ) / $limit ) * $limit > $offset ? floor( ( $total - 1 ) / $limit ) * $limit : null );
46 46
 
47 47
 $pageCurrent = floor( $offset / $limit ) + 1;
48 48
 $pageTotal = ( $total != 0 ? ceil( $total / $limit ) : 1 );
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
  */
22 22
 
23 23
 
24
-$pgroup = function( array $params, $group )
25
-{
24
+$pgroup = function( array $params, $group ) {
26 25
 	if( $group != null ) {
27 26
 		return [$group => ['page' => $params]];
28 27
 	}
@@ -56,16 +55,14 @@  discard block
 block discarded – undo
56 55
 		$controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
57 56
 		$action = $this->config( 'admin/jqadm/url/get/action', 'get' );
58 57
 		$config = $this->config( 'admin/jqadm/url/get/config', [] );
59
-	}
60
-	else
58
+	} else
61 59
 	{
62 60
 		$target = $this->config( 'admin/jqadm/url/create/target' );
63 61
 		$controller = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
64 62
 		$action = $this->config( 'admin/jqadm/url/create/action', 'create' );
65 63
 		$config = $this->config( 'admin/jqadm/url/create/config', [] );
66 64
 	}
67
-}
68
-else
65
+} else
69 66
 {
70 67
 	$target = $this->config( 'admin/jqadm/url/search/target' );
71 68
 	$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-standard.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
 				<?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?>
156 156
 					<li class="nav-item <?= $enc->attr( $subpart ); ?>">
157
-						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>">
157
+						<a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>">
158 158
 							<?= $enc->html( $this->translate( 'admin', $subpart ) ); ?>
159 159
 						</a>
160 160
 					</li>
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 								<th class="actions">
322 322
 									<?php if( !$this->site()->readonly( $this->get( 'itemData/product.siteid' ) ) ) : ?>
323 323
 										<div class="btn act-add fa" tabindex="1"
324
-											title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>">
324
+											title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>">
325 325
 										</div>
326 326
 									<?php endif; ?>
327 327
 								</th>
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
 									<td class="actions">
347 347
 										<?php if( !$this->site()->readonly( $this->get( 'itemData/product.siteid' ) ) ) : ?>
348 348
 											<div class="btn act-delete fa" tabindex="1"
349
-												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
349
+												title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>">
350 350
 											</div>
351 351
 										<?php endif; ?>
352 352
 									</td>
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
 								<td class="actions">
366 366
 									<?php if( !$this->site()->readonly( $this->get( 'itemData/product.siteid' ) ) ) : ?>
367 367
 										<div class="btn act-delete fa" tabindex="1"
368
-											title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
368
+											title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>">
369 369
 										</div>
370 370
 									<?php endif; ?>
371 371
 								</td>
Please login to merge, or discard this patch.