Skip to content

Commit

Permalink
Merge pull request #5 from icewind1991/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
icewind1991 authored Mar 22, 2018
2 parents aa91e9c + 6d421fc commit b3fde1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DAV/SearchHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function handleSearchRequest($xml, ResponseInterface $response) {
* @return Query
*/
private function getQueryForXML(BasicSearch $xml, array $allProps) {
$orderBy = array_map(function (\SearchDAV\XML\Order $order) use ($allProps) {
$orderBy = array_map(function(\SearchDAV\XML\Order $order) use ($allProps) {
if (!isset($allProps[$order->property])) {
throw new BadRequest('requested order by property is not a valid property for this scope');
}
Expand All @@ -110,7 +110,7 @@ private function getQueryForXML(BasicSearch $xml, array $allProps) {
}
return new Order($prop, $order->order);
}, $xml->orderBy);
$select = array_map(function ($propName) use ($allProps) {
$select = array_map(function($propName) use ($allProps) {
if (!isset($allProps[$propName])) {
return;
}
Expand All @@ -128,7 +128,7 @@ private function getQueryForXML(BasicSearch $xml, array $allProps) {
}

private function transformOperator(\SearchDAV\XML\Operator $operator, array $allProps) {
$arguments = array_map(function ($argument) use ($allProps) {
$arguments = array_map(function($argument) use ($allProps) {
if (is_string($argument)) {
if (!isset($allProps[$argument])) {
throw new BadRequest('requested search property is not a valid property for this scope');
Expand Down

0 comments on commit b3fde1c

Please sign in to comment.