[TASK] Cleanup in LiveSearch class 46/57946/3
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 17 Aug 2018 11:56:47 +0000 (13:56 +0200)
committerBenni Mack <benni@typo3.org>
Sat, 18 Aug 2018 11:25:19 +0000 (13:25 +0200)
commitf1afa86524eb3f9714729643e948e4be3f5a0847
treeb7aeb6fa093819bc94d07dc00326e097bb21f403
parent5dbcb5da27bc43bb2a19c770e4d226f47c7bcf0c
[TASK] Cleanup in LiveSearch class

* Simplify FQN of QueryParser
* Use correct typehint for $pageIdList, is an array and not a string
* Switch if statement order to use the less expensive one first
* Surround hard to read or-statement with parentheses
* Directyly return result in getAvailablePageIds

Resolves: #85889
Releases: master
Change-Id: I93b11a4d1480767902435d392a6f6af518bac53f
Reviewed-on: https://review.typo3.org/57946
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Search/LiveSearch/LiveSearch.php