Passed
Push — master ( 0289b7...7d2c90 )
by Aimeos
03:44
created
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.
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
 			$default = 'cms/page/body-standard';
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
 				$view->pageErrorList = array_merge( $view->get( 'pageErrorList', [] ), [$e->getMessage()] );
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.