Passed
Push — master ( f22c4f...df26ec )
by Aimeos
02:47
created
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/jsonapi/templates/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.
lib/custom/setup/default/schema/cms.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 return [
10 10
 	'table' => [
11
-		'mshop_cms' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'mshop_cms' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
12 12
 
13 13
 			$table = $schema->createTable( 'mshop_cms' );
14 14
 			$table->addOption( 'engine', 'InnoDB' );
Please login to merge, or discard this patch.
lib/custom/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.
client/html/src/Client/Html/Cms/Page/Standard.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -171,8 +171,7 @@  discard block
 block discarded – undo
171 171
 			}
172 172
 
173 173
 			$html = $view->render( $view->config( $tplconf, $default ) );
174
-		}
175
-		else
174
+		} else
176 175
 		{
177 176
 			$html = $this->modifyBody( $html, $uid );
178 177
 		}
@@ -242,8 +241,7 @@  discard block
 block discarded – undo
242 241
 			{
243 242
 				$view->pageErrorList = array_merge( $view->get( 'pageErrorList', [] ), [$e->getMessage()] );
244 243
 			}
245
-		}
246
-		else
244
+		} else
247 245
 		{
248 246
 			$html = $this->modifyHeader( $html, $uid );
249 247
 		}
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -408,7 +408,7 @@
 block discarded – undo
408 408
 		{
409 409
 			$this->addMetaItems( $page, $expire, $tags );
410 410
 
411
-			$view->pageContent = $page->getRefItems('text', 'content')->map( function( $item ) {
411
+			$view->pageContent = $page->getRefItems( 'text', 'content' )->map( function( $item ) {
412 412
 				$json = json_decode( $item->getContent(), true );
413 413
 				return $json['html'] ?? $item->getContent();
414 414
 			} );
Please login to merge, or discard this patch.
client/html/src/Client/Html/Cms/Page/Contact/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,8 +208,7 @@
 block discarded – undo
208 208
 				->send();
209 209
 
210 210
 				$error = [$i18n->dt( 'client', 'Message sent successfully' )];
211
-			}
212
-			else
211
+			} else
213 212
 			{
214 213
 				$error = [$i18n->dt( 'client', 'No recipient configured' )];
215 214
 			}
Please login to merge, or discard this patch.
lib/custom/setup/unittest/data/cms.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
 				'cms.lists.type' => 'default', 'cms.lists.position' => 0,
13 13
 				'text.languageid' => 'en', 'text.type' => 'name', 'text.domain' => 'cms',
14 14
 				'text.label' => 'Contact page', 'text.content' => 'Contact page'
15
-			],[
15
+			], [
16 16
 				'cms.lists.type' => 'default', 'cms.lists.position' => 1,
17 17
 				'text.languageid' => 'en', 'text.type' => 'meta-keywords', 'text.domain' => 'cms',
18 18
 				'text.label' => 'contact', 'text.content' => 'contact, about us'
19
-			],[
19
+			], [
20 20
 				'cms.lists.type' => 'default', 'cms.lists.position' => 1,
21 21
 				'text.languageid' => 'en', 'text.type' => 'content', 'text.domain' => 'cms',
22 22
 				'text.label' => 'Hello', 'text.content' => '<h1>Hello!</h1>'
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
 				'cms.lists.type' => 'default', 'cms.lists.position' => 0,
36 36
 				'text.languageid' => 'de', 'text.type' => 'name', 'text.domain' => 'cms',
37 37
 				'text.label' => 'Kontaktseite', 'text.content' => 'Kontaktseite'
38
-			],[
38
+			], [
39 39
 				'cms.lists.type' => 'default', 'cms.lists.position' => 1,
40 40
 				'text.languageid' => 'de', 'text.type' => 'meta-keywords', 'text.domain' => 'cms',
41 41
 				'text.label' => 'kontakt', 'text.content' => 'kontakt, über uns'
42
-			],[
42
+			], [
43 43
 				'cms.lists.type' => 'default', 'cms.lists.position' => 1,
44 44
 				'text.languageid' => 'de', 'text.type' => 'content', 'text.domain' => 'cms',
45 45
 				'text.label' => 'Hallo', 'text.content' => '<h1>Hallo!</h1>'
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 				'media.previews' => [1 => 'path/to/image-small-2.jpg']
52 52
 			]]
53 53
 		]
54
-	],[
54
+	], [
55 55
 		'cms.url' => '/catlist', 'cms.label' => 'With catalog list', 'cms.status' => 1,
56 56
 		'lists' => [
57 57
 			'text' => [[
Please login to merge, or discard this patch.
client/html/src/Client/Html/Cms/Page/Cataloglist/Standard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 		foreach( $view->pageCmsItem->getRefItems( 'text', 'content' ) as $textItem )
184 184
 		{
185 185
 			$dom = new \DOMDocument();
186
-			$dom->loadHTML( $textItem->getContent(), LIBXML_HTML_NOIMPLIED|LIBXML_HTML_NODEFDTD );
186
+			$dom->loadHTML( $textItem->getContent(), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD );
187 187
 			$nodes = $dom->getElementsByTagName( 'cataloglist' );
188 188
 
189 189
 			while( $nodes->length > 0 )
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 				$view = $context->getView()->set( 'products', $products );
204 204
 
205 205
 				$pdom = new \DOMDocument();
206
-				$pdom->loadHTML( $view->render( $template ), LIBXML_HTML_NOIMPLIED|LIBXML_HTML_NODEFDTD );
206
+				$pdom->loadHTML( $view->render( $template ), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD );
207 207
 
208 208
 				$pnode = $dom->importNode( $pdom->documentElement, true );
209 209
 				$node->parentNode->replaceChild( $pnode, $node );
Please login to merge, or discard this patch.