Completed
Push — master ( 0229de...f71bfb )
by Aimeos
04:41
created
admin/jqadm/templates/product/item-option-standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,5 +9,5 @@
 block discarded – undo
9 9
 
10 10
 ?>
11 11
 <div id="option" class="row item-option tab-pane fade" role="tabpanel" aria-labelledby="option">
12
-	<?= $this->get( 'optionBody' ); ?>
12
+	<?= $this->get('optionBody'); ?>
13 13
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-special-standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,5 +9,5 @@
 block discarded – undo
9 9
 
10 10
 ?>
11 11
 <div id="special" class="row item-special tab-pane fade" role="tabpanel" aria-labelledby="special">
12
-	<?= $this->get( 'specialBody' ); ?>
12
+	<?= $this->get('specialBody'); ?>
13 13
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-special-price-standard.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@
 block discarded – undo
12 12
 <div id="special-price" class="col-xl-6 content-block item-special-price">
13 13
 
14 14
 	<div class="form-group row optional warning">
15
-		<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Allow custom price' ) ); ?></label>
15
+		<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Allow custom price')); ?></label>
16 16
 		<div class="col-sm-8">
17
-			<input class="form-control item-special-price-custom" type="checkbox" value="1" tabindex="<?= $this->get( 'tabindex' ); ?>"
18
-				name="<?= $enc->attr( $this->formparam( array( 'specialprice', 'custom' ) ) ); ?>"
19
-				<?= $this->get( 'specialpriceData/custom', 0 ) ? 'checked="checked"' : ''; ?>
17
+			<input class="form-control item-special-price-custom" type="checkbox" value="1" tabindex="<?= $this->get('tabindex'); ?>"
18
+				name="<?= $enc->attr($this->formparam(array('specialprice', 'custom'))); ?>"
19
+				<?= $this->get('specialpriceData/custom', 0) ? 'checked="checked"' : ''; ?>
20 20
 			/>
21 21
 		</div>
22 22
 		<div class="col-sm-12 form-text text-muted help-text">
23
-			<?= $enc->html( $this->translate( 'admin', 'Allow customers to choose themselves how much they want to pay' ) ); ?>
23
+			<?= $enc->html($this->translate('admin', 'Allow customers to choose themselves how much they want to pay')); ?>
24 24
 		</div>
25 25
 	</div>
26 26
 
27
-	<?= $this->get( 'specialpriceBody' ); ?>
27
+	<?= $this->get('specialpriceBody'); ?>
28 28
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-characteristic-standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,5 +9,5 @@
 block discarded – undo
9 9
 
10 10
 ?>
11 11
 <div id="characteristic" class="row item-characteristic tab-pane fade" role="tabpanel" aria-labelledby="characteristic">
12
-	<?= $this->get( 'characteristicBody' ); ?>
12
+	<?= $this->get('characteristicBody'); ?>
13 13
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/product/item-related-standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,5 +9,5 @@
 block discarded – undo
9 9
 
10 10
 ?>
11 11
 <div id="related" class="row item-related tab-pane fade" role="tabpanel" aria-labelledby="related">
12
-	<?= $this->get( 'relatedBody' ); ?>
12
+	<?= $this->get('relatedBody'); ?>
13 13
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/info-standard.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,16 +6,16 @@
 block discarded – undo
6 6
  */
7 7
 
8 8
 $enc = $this->encoder();
9
-$list = $this->get( 'info', [] );
9
+$list = $this->get('info', []);
10 10
 
11 11
 ?>
12
-<?php if( !empty( $list ) ) : ?>
12
+<?php if (!empty($list)) : ?>
13 13
 	<ul class="info-list alert alert-info" role="alert">
14
-		<?php	foreach( $list as $key => $entry ) : ?>
15
-			<li class="info-item" data-key="<?= $enc->attr( $key ); ?>">
14
+		<?php	foreach ($list as $key => $entry) : ?>
15
+			<li class="info-item" data-key="<?= $enc->attr($key); ?>">
16 16
 				<span class="fa fa-exclamation-circle" aria-hidden="true"></span>
17
-				<span class="sr-only"><?= $enc->html( $this->translate( 'admin', 'Info' ) ); ?></span>
18
-				<?= $enc->html( $entry ); ?>
17
+				<span class="sr-only"><?= $enc->html($this->translate('admin', 'Info')); ?></span>
18
+				<?= $enc->html($entry); ?>
19 19
 			</li>
20 20
 		<?php	endforeach; ?>
21 21
 	</ul>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/itemactions-standard.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -12,36 +12,36 @@
 block discarded – undo
12 12
  * - params: Associative list of current parameters
13 13
  */
14 14
 
15
-$listTarget = $this->config( 'admin/jqadm/url/search/target' );
16
-$listCntl = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
17
-$listAction = $this->config( 'admin/jqadm/url/search/action', 'search' );
18
-$listConfig = $this->config( 'admin/jqadm/url/search/config', [] );
15
+$listTarget = $this->config('admin/jqadm/url/search/target');
16
+$listCntl = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
17
+$listAction = $this->config('admin/jqadm/url/search/action', 'search');
18
+$listConfig = $this->config('admin/jqadm/url/search/config', []);
19 19
 
20
-$params = $this->get( 'params', [] );
21
-unset( $params['id'] );
20
+$params = $this->get('params', []);
21
+unset($params['id']);
22 22
 
23 23
 $enc = $this->encoder();
24 24
 
25 25
 
26 26
 ?>
27 27
 <a class="btn btn-secondary act-cancel"
28
-	title="<?= $enc->attr( $this->translate( 'admin', 'Cancel and return to list') ); ?>"
29
-	href="<?= $enc->attr( $this->url( $listTarget, $listCntl, $listAction, $params, [], $listConfig ) ); ?>">
30
-	<?= $enc->html( $this->translate( 'admin', 'Cancel' ) ); ?>
28
+	title="<?= $enc->attr($this->translate('admin', 'Cancel and return to list')); ?>"
29
+	href="<?= $enc->attr($this->url($listTarget, $listCntl, $listAction, $params, [], $listConfig)); ?>">
30
+	<?= $enc->html($this->translate('admin', 'Cancel')); ?>
31 31
 </a>
32 32
 
33 33
 <div class="btn-group">
34 34
 	<button type="submit" class="btn btn-primary act-save"
35
-		title="<?= $enc->attr( $this->translate( 'admin', 'Save entry (Ctrl+S)') ); ?>">
36
-		<?= $enc->html( $this->translate( 'admin', 'Save' ) ); ?>
35
+		title="<?= $enc->attr($this->translate('admin', 'Save entry (Ctrl+S)')); ?>">
36
+		<?= $enc->html($this->translate('admin', 'Save')); ?>
37 37
 	</button>
38 38
 	<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown"
39 39
 		aria-haspopup="true" aria-expanded="false">
40
-		<span class="sr-only"><?= $enc->html( $this->translate( 'admin', 'Toggle dropdown' ) ); ?></span>
40
+		<span class="sr-only"><?= $enc->html($this->translate('admin', 'Toggle dropdown')); ?></span>
41 41
 	</button>
42 42
 	<ul class="dropdown-menu dropdown-menu-right">
43
-		<li class="dropdown-item"><a class="next-action" href="#" data-next="search"><?= $enc->html( $this->translate( 'admin', 'Save & Close' ) ); ?></a></li>
44
-		<li class="dropdown-item"><a class="next-action" href="#" data-next="copy"><?= $enc->html( $this->translate( 'admin', 'Save & Copy' ) ); ?></a></li>
45
-		<li class="dropdown-item"><a class="next-action" href="#" data-next="create"><?= $enc->html( $this->translate( 'admin', 'Save & New' ) ); ?></a></li>
43
+		<li class="dropdown-item"><a class="next-action" href="#" data-next="search"><?= $enc->html($this->translate('admin', 'Save & Close')); ?></a></li>
44
+		<li class="dropdown-item"><a class="next-action" href="#" data-next="copy"><?= $enc->html($this->translate('admin', 'Save & Copy')); ?></a></li>
45
+		<li class="dropdown-item"><a class="next-action" href="#" data-next="create"><?= $enc->html($this->translate('admin', 'Save & New')); ?></a></li>
46 46
 	</ul>
47 47
 </div>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/columns-standard.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -16,31 +16,31 @@
 block discarded – undo
16 16
  */
17 17
 
18 18
 
19
-$checked = function( array $list, $code ) {
20
-	return ( in_array( $code, $list ) ? 'checked="checked"' : '' );
19
+$checked = function(array $list, $code) {
20
+	return (in_array($code, $list) ? 'checked="checked"' : '');
21 21
 };
22 22
 
23 23
 
24 24
 $enc = $this->encoder();
25
-$fields = $this->get( 'fields', [] );
26
-$names = array_merge( (array) $this->get( 'group', [] ), ['fields', ''] );
25
+$fields = $this->get('fields', []);
26
+$names = array_merge((array) $this->get('group', []), ['fields', '']);
27 27
 
28 28
 
29 29
 ?>
30 30
 <div class="dropdown filter-columns">
31
-	<button class="btn act-columns fa" type="button" id="dropdownMenuButton-<?= $this->get( 'group' ) ?>"
32
-		data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" tabindex="<?= $this->get( 'tabindex', 1 ); ?>"
33
-		aria-label="<?= $enc->attr( $this->translate( 'admin', 'Columns' ) ); ?>"
34
-		title="<?= $enc->attr( $this->translate( 'admin', 'Columns') ); ?>">
31
+	<button class="btn act-columns fa" type="button" id="dropdownMenuButton-<?= $this->get('group') ?>"
32
+		data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" tabindex="<?= $this->get('tabindex', 1); ?>"
33
+		aria-label="<?= $enc->attr($this->translate('admin', 'Columns')); ?>"
34
+		title="<?= $enc->attr($this->translate('admin', 'Columns')); ?>">
35 35
 	</button>
36
-	<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton-<?= $this->get( 'group' ) ?>">
37
-		<?php foreach( $this->get( 'data', [] ) as $key => $name ) : ?>
36
+	<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton-<?= $this->get('group') ?>">
37
+		<?php foreach ($this->get('data', []) as $key => $name) : ?>
38 38
 			<li class="dropdown-item">
39 39
 				<a href="#"><label>
40
-					<input type="checkbox" tabindex="<?= $this->get( 'tabindex', 1 ); ?>"
41
-						name="<?= $enc->attr( $this->formparam( $names ) ); ?>"
42
-						value="<?= $enc->attr( $key ); ?>" <?= $checked( $fields, $key ); ?> />
43
-					<?= $enc->html( $name ); ?>
40
+					<input type="checkbox" tabindex="<?= $this->get('tabindex', 1); ?>"
41
+						name="<?= $enc->attr($this->formparam($names)); ?>"
42
+						value="<?= $enc->attr($key); ?>" <?= $checked($fields, $key); ?> />
43
+					<?= $enc->html($name); ?>
44 44
 				</label></a>
45 45
 			</li>
46 46
 		<?php endforeach; ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/partials/listhead-standard.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -19,50 +19,50 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 
22
-$sort = function( $sortcode, $code ) {
23
-	return ( $sortcode === $code ? '-' . $code : $code );
22
+$sort = function($sortcode, $code) {
23
+	return ($sortcode === $code ? '-' . $code : $code);
24 24
 };
25 25
 
26
-$sortclass = function( $sortcode, $code ) {
27
-	if( $sortcode === $code ) {
26
+$sortclass = function($sortcode, $code) {
27
+	if ($sortcode === $code) {
28 28
 		return 'sort-desc';
29 29
 	}
30
-	if( $sortcode === '-' . $code ) {
30
+	if ($sortcode === '-' . $code) {
31 31
 		return 'sort-asc';
32 32
 	}
33 33
 };
34 34
 
35 35
 
36
-if( $this->get( 'action' ) === 'get' )
36
+if ($this->get('action') === 'get')
37 37
 {
38
-	$target = $this->config( 'admin/jqadm/url/get/target' );
39
-	$controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
40
-	$action = $this->config( 'admin/jqadm/url/get/action', 'get' );
41
-	$config = $this->config( 'admin/jqadm/url/get/config', [] );
38
+	$target = $this->config('admin/jqadm/url/get/target');
39
+	$controller = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
40
+	$action = $this->config('admin/jqadm/url/get/action', 'get');
41
+	$config = $this->config('admin/jqadm/url/get/config', []);
42 42
 }
43 43
 else
44 44
 {
45
-	$target = $this->config( 'admin/jqadm/url/search/target' );
46
-	$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
47
-	$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
48
-	$config = $this->config( 'admin/jqadm/url/search/config', [] );
45
+	$target = $this->config('admin/jqadm/url/search/target');
46
+	$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
47
+	$action = $this->config('admin/jqadm/url/search/action', 'search');
48
+	$config = $this->config('admin/jqadm/url/search/config', []);
49 49
 }
50 50
 
51
-$fields = $this->get( 'fields', [] );
52
-$params = $this->get( 'params', [] );
53
-$fragment = (array) $this->get( 'fragment', [] );
54
-$sortcode = $this->get( 'sort' );
51
+$fields = $this->get('fields', []);
52
+$params = $this->get('params', []);
53
+$fragment = (array) $this->get('fragment', []);
54
+$sortcode = $this->get('sort');
55 55
 
56 56
 $enc = $this->encoder();
57 57
 
58 58
 
59 59
 ?>
60
-<?php foreach( $this->get( 'data', [] ) as $key => $name ) : ?>
61
-	<?php if( in_array( $key, $fields ) ) : ?>
62
-		<th class="<?= $enc->attr( str_replace( '.', '-', $key ) ); ?>">
63
-			<a class="<?= $sortclass( $sortcode, $key ); ?>" tabindex="<?= $this->get( 'tabindex', 1 ); ?>"
64
-				href="<?= $enc->attr( $this->url( $target, $controller, $action, ['sort' => $sort( $sortcode, $key )] + $params, $fragment, $config ) ); ?>">
65
-				<?= $enc->html( $name ); ?>
60
+<?php foreach ($this->get('data', []) as $key => $name) : ?>
61
+	<?php if (in_array($key, $fields)) : ?>
62
+		<th class="<?= $enc->attr(str_replace('.', '-', $key)); ?>">
63
+			<a class="<?= $sortclass($sortcode, $key); ?>" tabindex="<?= $this->get('tabindex', 1); ?>"
64
+				href="<?= $enc->attr($this->url($target, $controller, $action, ['sort' => $sort($sortcode, $key)] + $params, $fragment, $config)); ?>">
65
+				<?= $enc->html($name); ?>
66 66
 			</a>
67 67
 		</th>
68 68
 	<?php endif; ?>
Please login to merge, or discard this patch.