We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | // extract collection(s) from collection parameter |
| 76 | 76 | $collection = null; |
| 77 | 77 | if ($this->searchParams['collection']) { |
| 78 | - foreach(explode(',', $this->searchParams['collection']) as $collectionEntry) { |
|
| 78 | + foreach (explode(',', $this->searchParams['collection']) as $collectionEntry) { |
|
| 79 | 79 | $collection[] = $this->collectionRepository->findByUid($collectionEntry); |
| 80 | 80 | } |
| 81 | 81 | } |
@@ -258,8 +258,7 @@ |
||
| 258 | 258 | // check for virtual collections query string |
| 259 | 259 | if($collectionEntry->getIndexSearch()) { |
| 260 | 260 | $virtualCollectionsQueryString .= empty($virtualCollectionsQueryString) ? '(' . $collectionEntry->getIndexSearch() . ')' : ' OR ('. $collectionEntry->getIndexSearch() . ')' ; |
| 261 | - } |
|
| 262 | - else { |
|
| 261 | + } else { |
|
| 263 | 262 | $collectionsQueryString .= empty($collectionsQueryString) ? '"' . $collectionEntry->getIndexName() . '"' : ' OR "' . $collectionEntry->getIndexName() . '"'; |
| 264 | 263 | } |
| 265 | 264 | } |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | // extract collections from collection parameter |
| 247 | 247 | $collection = null; |
| 248 | 248 | if ($this->searchParams['collection']) { |
| 249 | - foreach(explode(',', $this->searchParams['collection']) as $collectionEntry) { |
|
| 249 | + foreach (explode(',', $this->searchParams['collection']) as $collectionEntry) { |
|
| 250 | 250 | $collection[] = $this->collectionRepository->findByUid($collectionEntry); |
| 251 | 251 | } |
| 252 | 252 | |
@@ -256,8 +256,8 @@ discard block |
||
| 256 | 256 | $virtualCollectionsQueryString = ''; |
| 257 | 257 | foreach ($collection as $collectionEntry) { |
| 258 | 258 | // check for virtual collections query string |
| 259 | - if($collectionEntry->getIndexSearch()) { |
|
| 260 | - $virtualCollectionsQueryString .= empty($virtualCollectionsQueryString) ? '(' . $collectionEntry->getIndexSearch() . ')' : ' OR ('. $collectionEntry->getIndexSearch() . ')' ; |
|
| 259 | + if ($collectionEntry->getIndexSearch()) { |
|
| 260 | + $virtualCollectionsQueryString .= empty($virtualCollectionsQueryString) ? '(' . $collectionEntry->getIndexSearch() . ')' : ' OR (' . $collectionEntry->getIndexSearch() . ')'; |
|
| 261 | 261 | } |
| 262 | 262 | else { |
| 263 | 263 | $collectionsQueryString .= empty($collectionsQueryString) ? '"' . $collectionEntry->getIndexName() . '"' : ' OR "' . $collectionEntry->getIndexName() . '"'; |
@@ -265,8 +265,8 @@ discard block |
||
| 265 | 265 | } |
| 266 | 266 | |
| 267 | 267 | // distinguish between simple collection browsing and actual searching within the collection(s) |
| 268 | - if(!empty($collectionsQueryString)) { |
|
| 269 | - if(empty($searchParams['query'])) { |
|
| 268 | + if (!empty($collectionsQueryString)) { |
|
| 269 | + if (empty($searchParams['query'])) { |
|
| 270 | 270 | $collectionsQueryString = '(collection_faceting:(' . $collectionsQueryString . ') AND toplevel:true AND partof:0)'; |
| 271 | 271 | } else { |
| 272 | 272 | $collectionsQueryString = '(collection_faceting:(' . $collectionsQueryString . '))'; |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | // virtual collections might query documents that are neither toplevel:true nor partof:0 and need to be searched separatly |
| 277 | - if(!empty($virtualCollectionsQueryString)) { |
|
| 277 | + if (!empty($virtualCollectionsQueryString)) { |
|
| 278 | 278 | $virtualCollectionsQueryString = '(' . $virtualCollectionsQueryString . ')'; |
| 279 | 279 | } |
| 280 | 280 | |
@@ -258,8 +258,7 @@ |
||
| 258 | 258 | // check for virtual collections query string |
| 259 | 259 | if($collectionEntry->getIndexSearch()) { |
| 260 | 260 | $virtualCollectionsQueryString .= empty($virtualCollectionsQueryString) ? '(' . $collectionEntry->getIndexSearch() . ')' : ' OR ('. $collectionEntry->getIndexSearch() . ')' ; |
| 261 | - } |
|
| 262 | - else { |
|
| 261 | + } else { |
|
| 263 | 262 | $collectionsQueryString .= empty($collectionsQueryString) ? '"' . $collectionEntry->getIndexName() . '"' : ' OR "' . $collectionEntry->getIndexName() . '"'; |
| 264 | 263 | } |
| 265 | 264 | } |
@@ -236,8 +236,8 @@ discard block |
||
| 236 | 236 | $virtualCollectionsQueryString = ''; |
| 237 | 237 | foreach ($this->collection as $collectionEntry) { |
| 238 | 238 | // check for virtual collections query string |
| 239 | - if($collectionEntry->getIndexSearch()) { |
|
| 240 | - $virtualCollectionsQueryString .= empty($virtualCollectionsQueryString) ? '(' . $collectionEntry->getIndexSearch() . ')' : ' OR ('. $collectionEntry->getIndexSearch() . ')' ; |
|
| 239 | + if ($collectionEntry->getIndexSearch()) { |
|
| 240 | + $virtualCollectionsQueryString .= empty($virtualCollectionsQueryString) ? '(' . $collectionEntry->getIndexSearch() . ')' : ' OR (' . $collectionEntry->getIndexSearch() . ')'; |
|
| 241 | 241 | } |
| 242 | 242 | else { |
| 243 | 243 | $collectionsQueryString .= empty($collectionsQueryString) ? '"' . $collectionEntry->getIndexName() . '"' : ' OR "' . $collectionEntry->getIndexName() . '"'; |
@@ -245,8 +245,8 @@ discard block |
||
| 245 | 245 | } |
| 246 | 246 | |
| 247 | 247 | // distinguish between simple collection browsing and actual searching within the collection(s) |
| 248 | - if(!empty($collectionsQueryString)) { |
|
| 249 | - if(empty($query)) { |
|
| 248 | + if (!empty($collectionsQueryString)) { |
|
| 249 | + if (empty($query)) { |
|
| 250 | 250 | $collectionsQueryString = '(collection_faceting:(' . $collectionsQueryString . ') AND toplevel:true AND partof:0)'; |
| 251 | 251 | } else { |
| 252 | 252 | $collectionsQueryString = '(collection_faceting:(' . $collectionsQueryString . '))'; |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | } |
| 255 | 255 | |
| 256 | 256 | // virtual collections might query documents that are neither toplevel:true nor partof:0 and need to be searched separatly |
| 257 | - if(!empty($virtualCollectionsQueryString)) { |
|
| 257 | + if (!empty($virtualCollectionsQueryString)) { |
|
| 258 | 258 | $virtualCollectionsQueryString = '(' . $virtualCollectionsQueryString . ')'; |
| 259 | 259 | } |
| 260 | 260 | |