Failed Conditions
Pull Request — master (#1308)
by Timo
34:34
created
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/Document/RelevanceViewHelper.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
             /** @var $resultSet SearchResultSet */
68 68
         $resultSet = $arguments['resultSet'];
69 69
 
70
-        $maximumScore = $document->__solr_grouping_groupMaximumScore ? : $resultSet->getUsedSearch()->getMaximumResultScore();
70
+        $maximumScore = $document->__solr_grouping_groupMaximumScore ?: $resultSet->getUsedSearch()->getMaximumResultScore();
71 71
         $content = 0;
72 72
 
73 73
         if ($maximumScore <= 0) {
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/PageBrowserRangeViewHelper.php 1 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/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.
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.