Failed Conditions
Pull Request — master (#1307)
by Timo
21:30
created
Classes/Domain/Search/ResultSet/SearchResultSetService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
      * @param Query $query The query that has been searched for.
297 297
      * @param \Apache_Solr_Response $response The search's response.
298 298
      */
299
-    protected function processResponse($rawQuery, Query $query, \Apache_Solr_Response &$response)
299
+    protected function processResponse($rawQuery, Query $query, \Apache_Solr_Response & $response)
300 300
     {
301 301
         if ($this->shouldHideResultsFromInitialSearch($rawQuery)) {
302 302
             // explicitly set number of results to 0 as we just wanted
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
      *
325 325
      * @param \Apache_Solr_Response $response
326 326
      */
327
-    protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response &$response)
327
+    protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response & $response)
328 328
     {
329 329
         if (!is_array($response->response->docs)) {
330 330
             return;
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
      * @param \Apache_Solr_Response $response
377 377
      * @throws \Apache_Solr_ParserException
378 378
      */
379
-    protected function wrapResultDocumentInResultObject(\Apache_Solr_Response &$response)
379
+    protected function wrapResultDocumentInResultObject(\Apache_Solr_Response & $response)
380 380
     {
381 381
         $documents = $response->response->docs;
382 382
 
Please login to merge, or discard this patch.
Classes/Domain/Search/Uri/SearchUriBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -304,10 +304,10 @@
 block discarded – undo
304 304
             self::$preCompiledLinks[$hash] = $template;
305 305
         }
306 306
 
307
-        $keys = array_map(function ($value) {
307
+        $keys = array_map(function($value) {
308 308
             return urlencode($value);
309 309
         }, array_keys($values));
310
-        $values = array_map(function ($value) {
310
+        $values = array_map(function($value) {
311 311
             return urlencode($value);
312 312
         }, $values);
313 313
         $uri = str_replace($keys, $values, $template);
Please login to merge, or discard this patch.
Classes/Domain/Search/ResultSet/Facets/AbstractFacetItemCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     public function getSelected()
65 65
     {
66
-        return $this->getFilteredCopy(function (AbstractFacetItem $item) {
66
+        return $this->getFilteredCopy(function(AbstractFacetItem $item) {
67 67
             return $item->getSelected();
68 68
         });
69 69
     }
Please login to merge, or discard this patch.
Classes/Domain/Search/ResultSet/Facets/FacetCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public function getUsed()
26 26
     {
27 27
         return $this->getFilteredCopy(
28
-            function (AbstractFacet $facet) {
28
+            function(AbstractFacet $facet) {
29 29
                 return $facet->getIsUsed();
30 30
             }
31 31
         );
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public function getAvailable()
38 38
     {
39 39
         return $this->getFilteredCopy(
40
-            function (AbstractFacet $facet) {
40
+            function(AbstractFacet $facet) {
41 41
                 return $facet->getIsAvailable();
42 42
             }
43 43
         );
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     public function getByGroupName($requiredGroup = 'all')
51 51
     {
52 52
         return $this->getFilteredCopy(
53
-            function (AbstractFacet $facet) use ($requiredGroup) {
53
+            function(AbstractFacet $facet) use ($requiredGroup) {
54 54
                 return $facet->getGroupName() == $requiredGroup;
55 55
             }
56 56
         );
Please login to merge, or discard this patch.
Classes/Domain/Search/ResultSet/Facets/RangeBased/DateRange/DateRange.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      */
81 81
     protected function getRangeString()
82 82
     {
83
-        return $this->startRequested->format('Ymd') .'0000-'.$this->endRequested->format('Ymd') . '0000';
83
+        return $this->startRequested->format('Ymd') . '0000-' . $this->endRequested->format('Ymd') . '0000';
84 84
     }
85 85
 
86 86
     /**
Please login to merge, or discard this patch.
Domain/Search/ResultSet/Facets/RangeBased/AbstractRangeFacetParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
             $to = $this->parseRequestValue($rawTo);
80 80
 
81 81
             $type = isset($facetConfiguration['type']) ? $facetConfiguration['type'] : 'numericRange';
82
-            $gap = isset($facetConfiguration[$type.'.']['gap']) ? $facetConfiguration[$type.'.']['gap'] : 1;
82
+            $gap = isset($facetConfiguration[$type . '.']['gap']) ? $facetConfiguration[$type . '.']['gap'] : 1;
83 83
 
84 84
             $range = new $facetItemClass($facet, $from, $to, $fromInResponse, $toInResponse, $gap, $allCount, $rangeCounts, true);
85 85
             $facet->setRange($range);
Please login to merge, or discard this patch.
Search/ResultSet/Facets/OptionBased/Hierarchy/HierarchyFacetParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
         $path = str_replace('\/', '@@@', $path);
87 87
         $path = rtrim($path, "/");
88 88
         $segments = explode('/', $path);
89
-        return array_map(function ($item) {
89
+        return array_map(function($item) {
90 90
             return str_replace('@@@', '/', $item);
91 91
         }, $segments);
92 92
     }
Please login to merge, or discard this patch.
Classes/System/UserFunctions/FlexFormUserFunctions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,11 +63,11 @@
 block discarded – undo
63 63
     {
64 64
         $newItems = [];
65 65
 
66
-        array_map(function ($fieldName) use (&$newItems, $configuredFacets) {
66
+        array_map(function($fieldName) use (&$newItems, $configuredFacets) {
67 67
             $value = $fieldName;
68 68
             $label = $fieldName;
69 69
 
70
-            $facetNameFilter = function ($facet) use ($fieldName) {
70
+            $facetNameFilter = function($facet) use ($fieldName) {
71 71
                 return ($facet['field'] === $fieldName);
72 72
             };
73 73
             $configuredFacets = array_filter($configuredFacets, $facetNameFilter);
Please login to merge, or discard this patch.
Classes/System/Data/DateTime.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * @param string $time
25 25
      * @param \DateTimeZone $timezone
26 26
      */
27
-    public function __construct($time='now', \DateTimeZone $timezone=null)
27
+    public function __construct($time = 'now', \DateTimeZone $timezone = null)
28 28
     {
29 29
         parent::__construct($time, $timezone);
30 30
     }
Please login to merge, or discard this patch.