Passed
Branch master (1757bb)
by Aimeos
09:28
created
admin/jqadm/templates/cms/item-media-standard.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -122,9 +122,12 @@  discard block
 block discarded – undo
122 122
 										<?= $enc->html( $this->translate( 'admin', 'Types for additional images like icons' ) ); ?>
123 123
 									</div>
124 124
 								</div>
125
-							<?php else : ?>
125
+							<?php else {
126
+	: ?>
126 127
 								<input class="item-type" type="hidden"
127
-									v-bind:name="'<?= $enc->attr( $this->formparam( ['media', '_idx_', 'media.type'] ) ); ?>'.replace('_idx_', idx)"
128
+									v-bind:name="'<?= $enc->attr( $this->formparam( ['media', '_idx_', 'media.type'] ) );
129
+}
130
+?>'.replace('_idx_', idx)"
128 131
 									value="<?= $enc->attr( $mediaTypes->getCode()->first() ) ?>" />
129 132
 							<?php endif; ?>
130 133
 
@@ -187,9 +190,12 @@  discard block
 block discarded – undo
187 190
 										<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
188 191
 									</div>
189 192
 								</div>
190
-							<?php else : ?>
193
+							<?php else {
194
+	: ?>
191 195
 								<input class="listitem-type" type="hidden"
192
-									v-bind:name="'<?= $enc->attr( $this->formparam( ['media', '_idx_', 'cms.lists.type'] ) ); ?>'.replace('_idx_', idx)"
196
+									v-bind:name="'<?= $enc->attr( $this->formparam( ['media', '_idx_', 'cms.lists.type'] ) );
197
+}
198
+?>'.replace('_idx_', idx)"
193 199
 									value="<?= $enc->attr( $listTypes->getCode()->first() ) ?>" />
194 200
 							<?php endif; ?>
195 201
 							<div class="form-group row optional">
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Cms/Content/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@
 block discarded – undo
280 280
 			$media[] = [
281 281
 				'name' => $mediaItem->getLabel(),
282 282
 				'src' => $view->content( $mediaItem->getPreview( true ) ),
283
-				'srcset' => join( ', ', $srcset),
283
+				'srcset' => join( ', ', $srcset ),
284 284
 				'type' => 'imageset' // @todo: remove after GrapesJs update
285 285
 			];
286 286
 		}
Please login to merge, or discard this patch.
admin/jqadm/src/Admin/JQAdm/Cms/Media/Property/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -278,8 +278,7 @@
 block discarded – undo
278 278
 				{
279 279
 					$propItem = $propItems[$entry['media.property.id']];
280 280
 					unset( $propItems[$entry['media.property.id']] );
281
-				}
282
-				else
281
+				} else
283 282
 				{
284 283
 					$propItem = $propManager->create();
285 284
 				}
Please login to merge, or discard this patch.
client/html/src/Client/Html/Cms/Page/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -168,8 +168,7 @@  discard block
 block discarded – undo
168 168
 			}
169 169
 
170 170
 			$html = $view->render( $view->config( $tplconf, $default ) );
171
-		}
172
-		else
171
+		} else
173 172
 		{
174 173
 			$html = $this->modifyBody( $html, $uid );
175 174
 		}
@@ -239,8 +238,7 @@  discard block
 block discarded – undo
239 238
 			{
240 239
 				$this->logException( $e );
241 240
 			}
242
-		}
243
-		else
241
+		} else
244 242
 		{
245 243
 			$html = $this->modifyHeader( $html, $uid );
246 244
 		}
Please login to merge, or discard this patch.