Passed
Push — 2022.04 ( 01a474...3f030d )
by Aimeos
20:43 queued 13:04
created
templates/client/jsonapi/cms/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@  discard block
 block discarded – undo
37 37
 }
38 38
 
39 39
 
40
-$entryFcn = function( \Aimeos\MShop\Cms\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
41
-{
40
+$entryFcn = function( \Aimeos\MShop\Cms\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
42 41
 	$id = $item->getId();
43 42
 	$type = $item->getResourceType();
44 43
 	$params = array( 'resource' => $type, 'id' => $id );
@@ -126,8 +125,7 @@  discard block
 block discarded – undo
126 125
 				foreach( $items as $item ) {
127 126
 					$data[] = $entryFcn( $item );
128 127
 				}
129
-			}
130
-			else
128
+			} else
131 129
 			{
132 130
 				$data = $entryFcn( $items );
133 131
 			}
Please login to merge, or discard this patch.
src/Admin/JQAdm/Cms/Media/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -356,8 +356,7 @@
 block discarded – undo
356 356
 				if( $preview && $preview->getError() !== UPLOAD_ERR_NO_FILE ) {
357 357
 					$refItem = $cntl->addPreview( $refItem, $preview );
358 358
 				}
359
-			}
360
-			elseif( $refItem->getId() === null && $refItem->getUrl() !== '' )
359
+			} elseif( $refItem->getId() === null && $refItem->getUrl() !== '' )
361 360
 			{
362 361
 				$refItem = $cntl->copy( $refItem );
363 362
 			}
Please login to merge, or discard this patch.
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.
src/MShop/Cms/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -228,8 +228,7 @@
 block discarded – undo
228 228
 				 */
229 229
 				$path = 'mshop/cms/manager/insert';
230 230
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
231
-			}
232
-			else
231
+			} else
233 232
 			{
234 233
 				/** mshop/cms/manager/update/mysql
235 234
 				 * Updates an existing cms record in the database
Please login to merge, or discard this patch.
src/Client/Html/Cms/Page/Contact/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,7 @@
 block discarded – undo
87 87
 					->send();
88 88
 
89 89
 				$error = [$context->translate( 'client', 'Message sent successfully' )];
90
-			}
91
-			else
90
+			} else
92 91
 			{
93 92
 				$error = [$context->translate( 'client', 'No recipient configured' )];
94 93
 			}
Please login to merge, or discard this patch.