@@ -148,7 +148,7 @@ |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * @param $pid |
|
151 | + * @param integer $pid |
|
152 | 152 | * @return \ApacheSolrForTypo3\Solr\System\Configuration\TypoScriptConfiguration|array |
153 | 153 | */ |
154 | 154 | protected function getConfigurationFromPageId($pid) |
@@ -63,13 +63,13 @@ |
||
63 | 63 | */ |
64 | 64 | public function initializeView(ViewInterface $view) |
65 | 65 | { |
66 | - if($view instanceof TemplateView) { |
|
66 | + if ($view instanceof TemplateView) { |
|
67 | 67 | $customTemplate = $this->getCustomTemplateFromConfiguration(); |
68 | - if($customTemplate === '') { |
|
68 | + if ($customTemplate === '') { |
|
69 | 69 | return; |
70 | 70 | } |
71 | 71 | |
72 | - if(strpos($customTemplate, 'EXT:') !== false) { |
|
72 | + if (strpos($customTemplate, 'EXT:') !== false) { |
|
73 | 73 | $view->setTemplatePathAndFilename($customTemplate); |
74 | 74 | } else { |
75 | 75 | $view->setTemplate($customTemplate); |
@@ -93,7 +93,7 @@ |
||
93 | 93 | $this->mountPageUpdater = is_null($mountPageUpdater) ? GeneralUtility::makeInstance(MountPagesUpdater::class) : $mountPageUpdater; |
94 | 94 | $this->tcaService = is_null($TCAService) ? GeneralUtility::makeInstance(TCAService::class) : $TCAService; |
95 | 95 | $this->rootPageResolver = is_null($rootPageResolver) ? GeneralUtility::makeInstance(RootPageResolver::class) : $rootPageResolver; |
96 | - $this->pagesRepository = isset($pagesRepository) ? $pagesRepository: GeneralUtility::makeInstance(PagesRepository::class); |
|
96 | + $this->pagesRepository = isset($pagesRepository) ? $pagesRepository : GeneralUtility::makeInstance(PagesRepository::class); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | 'items', |
390 | 390 | (string)$queryBuilderForDeletingProperties->expr()->andX( |
391 | 391 | $queryBuilderForDeletingProperties->expr()->eq('items.uid', $queryBuilderForDeletingProperties->quoteIdentifier('properties.item_id')), |
392 | - $queryBuilderForDeletingProperties->expr()->eq('items.root' , $site->getRootPageId()), |
|
392 | + $queryBuilderForDeletingProperties->expr()->eq('items.root', $site->getRootPageId()), |
|
393 | 393 | empty($indexingConfigurationName) ? '' : $queryBuilderForDeletingProperties->expr()->eq( |
394 | 394 | 'items.indexing_configuration', $queryBuilderForDeletingProperties->createNamedParameter($indexingConfigurationName) |
395 | 395 | ) |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | */ |
470 | 470 | protected function getItemsByCompositeExpression(CompositeExpression $expression = null, QueryBuilder $queryBuilder = null) : array |
471 | 471 | { |
472 | - if (! $queryBuilder instanceof QueryBuilder) { |
|
472 | + if (!$queryBuilder instanceof QueryBuilder) { |
|
473 | 473 | $queryBuilder = $this->getQueryBuilder(); |
474 | 474 | } |
475 | 475 | |
@@ -738,7 +738,7 @@ discard block |
||
738 | 738 | $queryBuilder->expr()->eq('root', $queryBuilder->createNamedParameter($rootPid, \PDO::PARAM_INT)), |
739 | 739 | $queryBuilder->expr()->eq('item_type', $queryBuilder->createNamedParameter('pages')), |
740 | 740 | $queryBuilder->expr()->in('item_uid', $mountedPids), |
741 | - $queryBuilder->expr()->eq('has_indexing_properties', $queryBuilder->createNamedParameter(1,\PDO::PARAM_INT)), |
|
741 | + $queryBuilder->expr()->eq('has_indexing_properties', $queryBuilder->createNamedParameter(1, \PDO::PARAM_INT)), |
|
742 | 742 | $queryBuilder->expr()->eq('pages_mountidentifier', $queryBuilder->createNamedParameter($identifier)) |
743 | 743 | ) |
744 | 744 | ->execute()->fetchAll(); |
@@ -257,9 +257,9 @@ |
||
257 | 257 | return $queryBuilder |
258 | 258 | ->select( |
259 | 259 | 'uid', |
260 | - 'mount_pid AS mountPageSource', |
|
261 | - 'uid AS mountPageDestination', |
|
262 | - 'mount_pid_ol AS mountPageOverlayed') |
|
260 | + 'mount_pid AS mountPageSource', |
|
261 | + 'uid AS mountPageDestination', |
|
262 | + 'mount_pid_ol AS mountPageOverlayed') |
|
263 | 263 | ->from($this->table) |
264 | 264 | ->add('where', $whereClause) |
265 | 265 | ->execute()->fetchAll(); |