@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | 'js_files' => $jsFiles, |
| 104 | 104 | ], |
| 105 | 105 | ]; |
| 106 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 106 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 107 | 107 | |
| 108 | 108 | $this->readConnectionMock |
| 109 | 109 | ->expects($this->once()) |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | 'js_files' => $jsFiles, |
| 144 | 144 | ], |
| 145 | 145 | ]; |
| 146 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 146 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 147 | 147 | |
| 148 | 148 | $this->readConnectionMock |
| 149 | 149 | ->expects($this->once()) |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | 'js_files' => $jsFiles, |
| 187 | 187 | ], |
| 188 | 188 | ]; |
| 189 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 189 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 190 | 190 | |
| 191 | 191 | $this->readConnectionMock |
| 192 | 192 | ->expects($this->once()) |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | 'js_files' => $jsFiles, |
| 227 | 227 | ], |
| 228 | 228 | ]; |
| 229 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 229 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 230 | 230 | |
| 231 | 231 | $this->readConnectionMock |
| 232 | 232 | ->expects($this->once()) |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | 'js_files' => $jsFiles, |
| 267 | 267 | ], |
| 268 | 268 | ]; |
| 269 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 269 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 270 | 270 | |
| 271 | 271 | $this->readConnectionMock |
| 272 | 272 | ->expects($this->once()) |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | 'layout_id' => $entity->getLayoutId(), |
| 225 | 225 | ], |
| 226 | 226 | ]; |
| 227 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 227 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 228 | 228 | |
| 229 | 229 | $this->readConnectionMock |
| 230 | 230 | ->expects($this->once()) |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | 'layout_id' => $layoutId, |
| 259 | 259 | ], |
| 260 | 260 | ]; |
| 261 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 261 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 262 | 262 | |
| 263 | 263 | $this->readConnectionMock |
| 264 | 264 | ->expects($this->once()) |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | 'layout_id' => $layoutId, |
| 296 | 296 | ], |
| 297 | 297 | ]; |
| 298 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 298 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 299 | 299 | |
| 300 | 300 | $this->readConnectionMock |
| 301 | 301 | ->expects($this->once()) |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | 'layout_id' => $layoutId, |
| 334 | 334 | ], |
| 335 | 335 | ]; |
| 336 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 336 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 337 | 337 | |
| 338 | 338 | $this->readConnectionMock |
| 339 | 339 | ->expects($this->once()) |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | 'js_files' => implode("\r\n", $assets->getJsFiles()), |
| 389 | 389 | ], |
| 390 | 390 | ]; |
| 391 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 391 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 392 | 392 | |
| 393 | 393 | $this->readConnectionMock |
| 394 | 394 | ->expects($this->once()) |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | 'js_files' => implode("\r\n", $assets->getJsFiles()), |
| 437 | 437 | ], |
| 438 | 438 | ]; |
| 439 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 439 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 440 | 440 | |
| 441 | 441 | $this->readConnectionMock |
| 442 | 442 | ->expects($this->once()) |
@@ -457,7 +457,7 @@ discard block |
||
| 457 | 457 | $assets = $entity->getAssets(); |
| 458 | 458 | $layoutId = '3f98d8ae-06b3-4fd3-8539-284b377f741b'; |
| 459 | 459 | |
| 460 | - $sql0 = 'SELECT pages.id, pages.identifier, pages.title, CONCAT(layouts.classes, \' \', pages.classes) AS classes, pages.lede, pages.body, pages.is_draft, pages.category_id, pages.layout_id, COALESCE(layouts.body, pages.layout) AS layout, pages.meta_description, pages.meta_robots, pages.meta_author, pages.meta_copyright, pages.meta_keywords, pages.meta_og_title, pages.meta_og_image, pages.meta_og_description, pages.header AS header, pages.footer AS footer, pages.css_files AS css_files, pages.js_files AS js_files, layouts.identifier AS layout_identifier, layouts.header AS layout_header, layouts.footer AS layout_footer, layouts.css_files AS layout_css_files, layouts.js_files AS layout_js_files FROM pages LEFT JOIN page_layouts AS layouts ON layouts.id = pages.layout_id AND layouts.deleted_at IS NULL WHERE (pages.deleted_at IS NULL) AND ((pages.identifier = :identifier OR pages.id = :identifier))'; // phpcs:ignore |
|
| 460 | + $sql0 = 'SELECT pages.id, pages.identifier, pages.title, CONCAT(layouts.classes, \' \', pages.classes) AS classes, pages.lede, pages.body, pages.is_draft, pages.category_id, pages.layout_id, COALESCE(layouts.body, pages.layout) AS layout, pages.meta_description, pages.meta_robots, pages.meta_author, pages.meta_copyright, pages.meta_keywords, pages.meta_og_title, pages.meta_og_image, pages.meta_og_description, pages.header AS header, pages.footer AS footer, pages.css_files AS css_files, pages.js_files AS js_files, layouts.identifier AS layout_identifier, layouts.header AS layout_header, layouts.footer AS layout_footer, layouts.css_files AS layout_css_files, layouts.js_files AS layout_js_files FROM pages LEFT JOIN page_layouts AS layouts ON layouts.id = pages.layout_id AND layouts.deleted_at IS NULL WHERE (pages.deleted_at IS NULL) AND ((pages.identifier = :identifier OR pages.id = :identifier))'; // phpcs:ignore |
|
| 461 | 461 | $values = ['identifier' => [$entity->getIdentifier(), \PDO::PARAM_STR]]; |
| 462 | 462 | $expectedData = [ |
| 463 | 463 | [ |
@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | 'layout_js_files' => implode("\r\n", $assets->getJsFiles()), |
| 491 | 491 | ], |
| 492 | 492 | ]; |
| 493 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 493 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 494 | 494 | |
| 495 | 495 | $this->readConnectionMock |
| 496 | 496 | ->expects($this->once()) |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | 'with_classes' => $withClasses, |
| 128 | 128 | ], |
| 129 | 129 | ]; |
| 130 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 130 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 131 | 131 | |
| 132 | 132 | $this->readConnectionMock |
| 133 | 133 | ->expects($this->once()) |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | 'with_classes' => $withClasses, |
| 170 | 170 | ], |
| 171 | 171 | ]; |
| 172 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 172 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 173 | 173 | |
| 174 | 174 | $this->readConnectionMock |
| 175 | 175 | ->expects($this->once()) |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | 'with_classes' => $withClasses, |
| 215 | 215 | ], |
| 216 | 216 | ]; |
| 217 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 217 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 218 | 218 | |
| 219 | 219 | $this->readConnectionMock |
| 220 | 220 | ->expects($this->once()) |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | 'with_classes' => $withClasses, |
| 257 | 257 | ], |
| 258 | 258 | ]; |
| 259 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 259 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 260 | 260 | |
| 261 | 261 | $this->readConnectionMock |
| 262 | 262 | ->expects($this->once()) |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | 'with_classes' => $withClasses, |
| 299 | 299 | ], |
| 300 | 300 | ]; |
| 301 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 301 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 302 | 302 | |
| 303 | 303 | $this->readConnectionMock |
| 304 | 304 | ->expects($this->once()) |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | [$identifiers[1], \PDO::PARAM_STR], |
| 86 | 86 | [$cacheTime, \PDO::PARAM_STR], |
| 87 | 87 | ]; |
| 88 | - $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo); |
|
| 88 | + $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo); |
|
| 89 | 89 | |
| 90 | 90 | $this->readConnectionMock |
| 91 | 91 | ->expects($this->once()) |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | [$cacheTime, \PDO::PARAM_STR], |
| 89 | 89 | [$cacheTime, \PDO::PARAM_STR], |
| 90 | 90 | ]; |
| 91 | - $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo); |
|
| 91 | + $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo); |
|
| 92 | 92 | |
| 93 | 93 | $this->readConnectionMock |
| 94 | 94 | ->expects($this->once()) |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | ['v0' => 'foo', 'v1' => 'baz'], |
| 30 | 30 | ['v0' => 'qux', 'v1' => 'quux'], |
| 31 | 31 | ]; |
| 32 | - $statement0 = MockStatementFactory::createReadStatement($this, $valuesToBind, $returnValue); |
|
| 32 | + $statement0 = MockStatementFactory::createReadStatement($this, $valuesToBind, $returnValue); |
|
| 33 | 33 | |
| 34 | 34 | $this->readConnectionMock |
| 35 | 35 | ->expects($this->once()) |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | [$identifiers[1], \PDO::PARAM_STR], |
| 86 | 86 | [$cacheTime, \PDO::PARAM_STR], |
| 87 | 87 | ]; |
| 88 | - $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo); |
|
| 88 | + $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo); |
|
| 89 | 89 | |
| 90 | 90 | $this->readConnectionMock |
| 91 | 91 | ->expects($this->once()) |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | new UserGroup('31bc7d78-834d-4cb9-9d94-263ce5e2bfc0', 'ug-112', 'UG 112', []), |
| 58 | 58 | new UserGroup('221fef6e-ebf6-4531-9029-178c024b4bb2', 'ug-432', 'UG 432', []), |
| 59 | 59 | ]; |
| 60 | - $userGroups = [ |
|
| 60 | + $userGroups = [ |
|
| 61 | 61 | new UserGroup('a26bee22-4b9e-4db6-be61-e3b3434218b7', 'ug-73', 'UG 73', []), |
| 62 | 62 | new UserGroup('31bc7d78-834d-4cb9-9d94-263ce5e2bfc0', 'ug-112', 'UG 112', []), |
| 63 | 63 | ]; |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | ->setWithLabelLinks($withLabelLinks) |
| 239 | 239 | ->setWithImages($withImages); |
| 240 | 240 | |
| 241 | - $attributes = [ |
|
| 241 | + $attributes = [ |
|
| 242 | 242 | IContentList::WITH_LABEL_OPTION => '1', |
| 243 | 243 | IContentList::WITH_IMAGES_OPTION => '1', |
| 244 | 244 | ]; |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | ->setWithLabelLinks($withLabelLinks) |
| 320 | 320 | ->setWithImages($withImages); |
| 321 | 321 | |
| 322 | - $attributes = [ |
|
| 322 | + $attributes = [ |
|
| 323 | 323 | IContentList::WITH_LABEL_OPTION => '1', |
| 324 | 324 | IContentList::WITH_IMAGES_OPTION => '1', |
| 325 | 325 | IContentList::LIST_TAG => Html5::TAG_DIV, |