Failed Conditions
Pull Request — master (#1308)
by Timo
21:31
created
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.
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/ViewHelpers/Facet/Area/GroupViewHelper.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     {
61 61
         /** @var  $facets FacetCollection */
62 62
         $facets = $arguments['facets'];
63
-        $requiredGroup = isset($arguments['groupName']) ? $arguments['groupName'] :  'main';
63
+        $requiredGroup = isset($arguments['groupName']) ? $arguments['groupName'] : 'main';
64 64
         $filtered = $facets->getByGroupName($requiredGroup);
65 65
 
66 66
         $templateVariableProvider = $renderingContext->getVariableProvider();
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
     /**
61 61
      * @param array $arguments
62
-     * @param callable $renderChildrenClosure
62
+     * @param \Closure $renderChildrenClosure
63 63
      * @param RenderingContextInterface $renderingContext
64 64
      * @return string
65 65
      */
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.
Classes/ViewHelpers/Uri/Search/CurrentSearchViewHelper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
     /**
61 61
      * @param array $arguments
62
-     * @param callable $renderChildrenClosure
62
+     * @param \Closure $renderChildrenClosure
63 63
      * @param RenderingContextInterface $renderingContext
64 64
      * @return string
65 65
      */
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -14,10 +14,7 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet;
18 17
 use ApacheSolrForTypo3\Solr\ViewHelpers\Uri\AbstractUriViewHelper;
19
-use TYPO3\CMS\Core\Utility\GeneralUtility;
20
-use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder;
21 18
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
22 19
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
23 20
 
Please login to merge, or discard this patch.
Classes/ViewHelpers/Uri/Sorting/RemoveSortingViewHelper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
     /**
61 61
      * @param array $arguments
62
-     * @param callable $renderChildrenClosure
62
+     * @param \Closure $renderChildrenClosure
63 63
      * @param RenderingContextInterface $renderingContext
64 64
      * @return string
65 65
      */
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -14,10 +14,7 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet;
18 17
 use ApacheSolrForTypo3\Solr\ViewHelpers\Uri\AbstractUriViewHelper;
19
-use TYPO3\CMS\Core\Utility\GeneralUtility;
20
-use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder;
21 18
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
22 19
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
23 20
 
Please login to merge, or discard this patch.
Classes/ViewHelpers/Uri/Sorting/SetSortingViewHelper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
     /**
61 61
      * @param array $arguments
62
-     * @param callable $renderChildrenClosure
62
+     * @param \Closure $renderChildrenClosure
63 63
      * @param RenderingContextInterface $renderingContext
64 64
      * @return string
65 65
      */
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -14,10 +14,7 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet;
18 17
 use ApacheSolrForTypo3\Solr\ViewHelpers\Uri\AbstractUriViewHelper;
19
-use TYPO3\CMS\Core\Utility\GeneralUtility;
20
-use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder;
21 18
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
22 19
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
23 20
 
Please login to merge, or discard this patch.