Failed Conditions
Pull Request — master (#1307)
by Timo
21:30
created
Classes/ViewHelpers/Widget/ResultPaginateViewHelper.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
  *  This copyright notice MUST APPEAR in all copies of the script!
25 25
  ***************************************************************/
26 26
 
27
-use ApacheSolrForTypo3\Solr\Search;
28 27
 use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet;
29 28
 use ApacheSolrForTypo3\Solr\Widget\AbstractWidgetViewHelper;
30 29
 
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.
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.
Classes/ViewHelpers/Widget/Controller/FrequentlySearchedController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 
88 88
             foreach ($frequentSearchTerms as $term => $hits) {
89 89
                 $size = round($minimumSize + (($hits - $minimumHits) * $step));
90
-                $frequentSearches[] = ['q' => htmlspecialchars_decode($term), 'hits' => $hits, 'style' => 'font-size: ' . $size . 'px', 'class' => 'tx-solr-frequent-term-' . $size, 'size' => $size,];
90
+                $frequentSearches[] = ['q' => htmlspecialchars_decode($term), 'hits' => $hits, 'style' => 'font-size: ' . $size . 'px', 'class' => 'tx-solr-frequent-term-' . $size, 'size' => $size, ];
91 91
             }
92 92
         }
93 93
 
Please login to merge, or discard this patch.