Completed
Pull Request — master (#325)
by
unknown
22:33
created
src/Search/Sapi3SearchService.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@
 block discarded – undo
46 46
     public function search($query, $limit = 30, $start = 0, $sort = null)
47 47
     {
48 48
         $queryParameters = Query::createFromPairs([
49
-           'q' => $query,
50
-           'start' => (string) $start,
51
-           'limit' => (string) $limit,
49
+            'q' => $query,
50
+            'start' => (string) $start,
51
+            'limit' => (string) $limit,
52 52
         ]);
53 53
         $queryString = str_replace('+', '%2B', (string) $queryParameters);
54 54
         $offerQueryUri = $this->searchLocation->withQuery($queryString);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
47 47
     {
48 48
         $queryParameters = Query::createFromPairs([
49 49
            'q' => $query,
50
-           'start' => (string) $start,
51
-           'limit' => (string) $limit,
50
+           'start' => (string)$start,
51
+           'limit' => (string)$limit,
52 52
         ]);
53
-        $queryString = str_replace('+', '%2B', (string) $queryParameters);
53
+        $queryString = str_replace('+', '%2B', (string)$queryParameters);
54 54
         $offerQueryUri = $this->searchLocation->withQuery($queryString);
55 55
 
56 56
         $offerRequest = new Request('GET', $offerQueryUri);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
         $offerIds = array_reduce(
64 64
             $searchResponseData->{'member'},
65
-            function (OfferIdentifierCollection $offerIds, $item) {
65
+            function(OfferIdentifierCollection $offerIds, $item) {
66 66
                 return $offerIds->with(
67 67
                     $this->offerIdentifier->fromIri(Url::fromNative($item->{'@id'}))
68 68
                 );
Please login to merge, or discard this patch.