We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -38,11 +38,11 @@ |
||
| 38 | 38 | public function main(ServerRequestInterface $request) |
| 39 | 39 | { |
| 40 | 40 | // header parameter for getUrl(); allowed values 0,1,2; default 0 |
| 41 | - $header = (int)$request->getQueryParams()['header']; |
|
| 41 | + $header = (int) $request->getQueryParams()['header']; |
|
| 42 | 42 | $header = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($header, 0, 2, 0); |
| 43 | 43 | |
| 44 | 44 | // the URI to fetch data or header from |
| 45 | - $url = (string)$request->getQueryParams()['url']; |
|
| 45 | + $url = (string) $request->getQueryParams()['url']; |
|
| 46 | 46 | if (!GeneralUtility::isValidUrl($url)) { |
| 47 | 47 | throw new \InvalidArgumentException('No valid url passed!', 1580482805); |
| 48 | 48 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | /** |
| 35 | 35 | * The main method of the eID script |
| 36 | 36 | * |
| 37 | - * @param ServerRequestInterface $request |
|
| 37 | + * @param ServerRequestInterface $request |
|
| 38 | 38 | * @return ResponseInterface XML response of search suggestions |
| 39 | 39 | */ |
| 40 | 40 | public function main(ServerRequestInterface $request) |
@@ -40,8 +40,8 @@ discard block |
||
| 40 | 40 | public function main(ServerRequestInterface $request) |
| 41 | 41 | { |
| 42 | 42 | $parameters = $request->getParsedBody(); |
| 43 | - $encrypted = (string)$parameters['encrypted']; |
|
| 44 | - $hashed = (string)$parameters['hashed']; |
|
| 43 | + $encrypted = (string) $parameters['encrypted']; |
|
| 44 | + $hashed = (string) $parameters['hashed']; |
|
| 45 | 45 | if (empty($encrypted) || empty($hashed)) { |
| 46 | 46 | throw new \InvalidArgumentException('No valid parameter passed!', 1580585079); |
| 47 | 47 | } |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | $output = ''; |
| 51 | 51 | if (!empty($core)) { |
| 52 | - $query = (string)$parameters['q']; |
|
| 52 | + $query = (string) $parameters['q']; |
|
| 53 | 53 | $url = trim(Solr::getSolrUrl($core), '/') . '/suggest/?wt=xml&q=' . Solr::escapeQuery($query); |
| 54 | 54 | $output = GeneralUtility::getUrl($url); |
| 55 | 55 | } |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | public function main(ServerRequestInterface $request) |
| 40 | 40 | { |
| 41 | 41 | $parameters = $request->getParsedBody(); |
| 42 | - $encrypted = (string)$parameters['encrypted']; |
|
| 43 | - $hashed = (string)$parameters['hashed']; |
|
| 42 | + $encrypted = (string) $parameters['encrypted']; |
|
| 43 | + $hashed = (string) $parameters['hashed']; |
|
| 44 | 44 | if (empty($encrypted) || empty($hashed)) { |
| 45 | 45 | throw new \InvalidArgumentException('No valid parameter passed!', 1580585079); |
| 46 | 46 | } |
@@ -48,9 +48,9 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | $output = ''; |
| 50 | 50 | if (!empty($core)) { |
| 51 | - $query = (string)$parameters['q']; |
|
| 52 | - $uid = (string)$parameters['uid']; |
|
| 53 | - $start = (string)$parameters['start']; |
|
| 51 | + $query = (string) $parameters['q']; |
|
| 52 | + $uid = (string) $parameters['uid']; |
|
| 53 | + $start = (string) $parameters['start']; |
|
| 54 | 54 | $url = trim(Solr::getSolrUrl($core), '/') . '/select?wt=json&q=fulltext:(' . Solr::escapeQuery($query) . ')%20AND%20uid:' . $uid |
| 55 | 55 | . '&hl=on&hl.fl=fulltext&fl=uid,id,page&hl.method=fastVector' |
| 56 | 56 | . '&start=' . $start . '&rows=20'; |