[TASK] Fix PSR-2 violations with php-cs-fixer 66/51566/5
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 7 Feb 2017 20:31:25 +0000 (21:31 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 7 Feb 2017 21:31:12 +0000 (22:31 +0100)
Resolves: #79668
Releases: master
Change-Id: I78b9b85a5af2170ddb725dee969f090be1d444e3
Reviewed-on: https://review.typo3.org/51566
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
48 files changed:
typo3/sysext/backend/Classes/Backend/Avatar/Avatar.php
typo3/sysext/backend/Classes/ContextMenu/ItemProviders/AbstractProvider.php
typo3/sysext/backend/Classes/Controller/ContextMenuController.php
typo3/sysext/backend/Classes/Form/FormDataGroup/OrderedProviderList.php
typo3/sysext/backend/Classes/Tree/View/FolderTreeView.php
typo3/sysext/core/Classes/DataHandling/DatabaseSchemaService.php
typo3/sysext/core/Classes/DataHandling/Localization/DataMapItem.php
typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php
typo3/sysext/core/Classes/DataHandling/Localization/State.php
typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/ElementsBasicCest.php
typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php
typo3/sysext/core/Tests/Unit/ViewHelpers/IconForRecordViewHelperTest.php
typo3/sysext/core/Tests/Unit/ViewHelpers/IconViewHelperTest.php
typo3/sysext/core/ext_localconf.php
typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FileProvider.php
typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FileStorageProvider.php
typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FilemountsProvider.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/BaseViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/CObjectViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/FlashMessagesViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/ButtonViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/CheckboxViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/RadioViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/TextfieldViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/FormViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/BytesViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/CaseViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/CropViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/CurrencyViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/DateViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/HtmlentitiesDecodeViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/HtmlentitiesViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/Nl2brViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/NumberViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/PaddingViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/StripTagsViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/UrlencodeViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/EmailViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/PageViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/TypolinkViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/TranslateViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Uri/EmailViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Uri/ExternalViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Uri/PageViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Uri/TypolinkViewHelperTest.php
typo3/sysext/install/Classes/Updates/RowUpdater/ImageCropUpdater.php
typo3/sysext/install/Classes/Updates/TableFlexFormToTtContentFieldsUpdate.php
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php

index a4ec7ef..c4ee1a5 100644 (file)
@@ -45,7 +45,6 @@ class Avatar
      */
     public function render(array $backendUser = null, int $size = 32, bool $showIcon = false)
     {
-
         if (!is_array($backendUser)) {
             $backendUser = $this->getBackendUser()->user;
         }
@@ -58,7 +57,6 @@ class Avatar
         $avatar = static::getCache()->get($cacheId);
 
         if (!$avatar) {
-
             $this->validateSortAndInitiateAvatarProviders();
             $view = $this->getFluidTemplateObject();
 
index a9fa905..6ee7c66 100644 (file)
@@ -17,8 +17,8 @@ namespace TYPO3\CMS\Backend\Controller;
 
 use Psr\Http\Message\ResponseInterface;
 use Psr\Http\Message\ServerRequestInterface;
-use TYPO3\CMS\Backend\ContextMenu\ContextMenu;
 use TYPO3\CMS\Backend\Clipboard\Clipboard;
+use TYPO3\CMS\Backend\ContextMenu\ContextMenu;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Lang\LanguageService;
 
index 9956b82..1a90d3f 100644 (file)
@@ -16,8 +16,8 @@ namespace TYPO3\CMS\Backend\Form\FormDataGroup;
 
 use TYPO3\CMS\Backend\Form\FormDataGroupInterface;
 use TYPO3\CMS\Backend\Form\FormDataProviderInterface;
-use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Core\Service\DependencyOrderingService;
+use TYPO3\CMS\Core\Utility\GeneralUtility;
 
 /**
  * Calls provider with dependencies specified given by setter
index 8087ea1..8b01790 100644 (file)
@@ -181,7 +181,6 @@ class FolderTreeView extends AbstractTreeView
             if (!$folderObject instanceof InaccessibleFolder) {
                 $tableName = $this->getTableNameForClickMenu($folderObject);
                 $theFolderIcon = BackendUtility::wrapClickMenuOnIcon($icon, $tableName, $folderObject->getCombinedIdentifier(), 'tree');
-
             }
         } elseif ($this->ext_IconMode === 'titlelink') {
             $aOnClick = 'return jumpTo(' . GeneralUtility::quoteJSvalue($this->getJumpToParam($folderObject)) . ',this,' . GeneralUtility::quoteJSvalue($this->domIdPrefix . $this->getId($folderObject)) . ',' . $this->bank . ');';
index f4886d3..2505395 100644 (file)
@@ -54,6 +54,6 @@ class DatabaseSchemaService
             $sqlString[] = implode(LF, $tableSchemas);
         }
 
-        return array('sqlString' => $sqlString);
+        return ['sqlString' => $sqlString];
     }
 }
index 6acc9a6..161aac6 100644 (file)
@@ -411,7 +411,7 @@ class DataMapItem
      */
     public function findDependencies(string $scope)
     {
-        return ($this->dependencies[$scope] ?? []);
+        return $this->dependencies[$scope] ?? [];
     }
 
     /**
@@ -427,4 +427,4 @@ class DataMapItem
         $scopes[] = static::SCOPE_EXCLUDE;
         return $scopes;
     }
-}
\ No newline at end of file
+}
index d86f73b..89a1d8f 100644 (file)
@@ -130,10 +130,8 @@ class DataMapProcessor
             $this->filterNumericIds(array_keys($idValues))
         );
 
-        foreach ($idValues as $id => $values)
-        {
+        foreach ($idValues as $id => $values) {
             $recordValues = $translationValues[$id] ?? [];
-//            $values['l10n_state'] = json_decode($values['l10n_state'], true) ?? [];
             $item = DataMapItem::build(
                 $tableName,
                 $id,
@@ -643,7 +641,6 @@ class DataMapProcessor
         return $dependentIdMap;
     }
 
-
     /**
      * Fetch all elements that depend on given record id's in their parent or source field
      *
@@ -712,7 +709,7 @@ class DataMapProcessor
     {
         return array_filter(
             $this->items,
-            function(DataMapItem $item) use ($type) {
+            function (DataMapItem $item) use ($type) {
                 return $item->getType() === $type;
             }
         );
@@ -729,7 +726,7 @@ class DataMapProcessor
     {
         return array_filter(
             $ids,
-            function($id) use ($numeric) {
+            function ($id) use ($numeric) {
                 return MathUtility::canBeInterpretedAsInteger($id) === $numeric;
             }
         );
@@ -744,7 +741,7 @@ class DataMapProcessor
     protected function mapRelationItemId(array $relationItems)
     {
         return array_map(
-            function(array $relationItem) {
+            function (array $relationItem) {
                 return (string)$relationItem['id'];
             },
             $relationItems
@@ -830,7 +827,7 @@ class DataMapProcessor
 
         $configuration = $GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config'];
 
-        return (
+        return
             $configuration['type'] === 'group'
                 && ($configuration['internal_type'] ?? null) === 'db'
                 && !empty($configuration['allowed'])
@@ -841,7 +838,7 @@ class DataMapProcessor
                     || ($configuration['special'] ?? null) === 'languages'
                 )
             || $this->isInlineRelationField($tableName, $fieldName)
-        );
+        ;
     }
 
     /**
@@ -859,11 +856,11 @@ class DataMapProcessor
 
         $configuration = $GLOBALS['TCA'][$tableName]['columns'][$fieldName]['config'];
 
-        return (
+        return
             $configuration['type'] === 'inline'
             && !empty($configuration['foreign_table'])
             && !empty($GLOBALS['TCA'][$configuration['foreign_table']])
-        );
+        ;
     }
 
     /**
@@ -875,11 +872,11 @@ class DataMapProcessor
      */
     protected function isApplicable(string $tableName): bool
     {
-        return (
+        return
             State::isApplicable($tableName)
             || BackendUtility::isTableLocalizable($tableName)
                 && count($this->getLocalizationModeExcludeFieldNames($tableName)) > 0
-        );
+        ;
     }
 
     /**
@@ -891,4 +888,4 @@ class DataMapProcessor
         $relationHandler->setWorkspaceId($this->backendUser->workspace);
         return $relationHandler;
     }
-}
\ No newline at end of file
+}
index 93ed768..f985c10 100644 (file)
@@ -66,12 +66,12 @@ class State
      */
     public static function isApplicable(string $tableName)
     {
-        return (
+        return
             static::hasColumns($tableName)
             && static::hasLanguageFieldName($tableName)
             && static::hasTranslationParentFieldName($tableName)
             && count(static::getFieldNames($tableName)) > 0
-        );
+        ;
     }
 
     /**
@@ -80,10 +80,10 @@ class State
      */
     protected static function hasColumns(string $tableName)
     {
-        return (
+        return
             !empty($GLOBALS['TCA'][$tableName]['columns'])
             && is_array($GLOBALS['TCA'][$tableName]['columns'])
-        );
+        ;
     }
 
     /**
@@ -113,7 +113,7 @@ class State
         return array_keys(
             array_filter(
                 $GLOBALS['TCA'][$tableName]['columns'],
-                function(array $fieldConfiguration) {
+                function (array $fieldConfiguration) {
                     return !empty(
                         $fieldConfiguration['config']
                             ['behaviour']['allowLanguageSynchronization']
@@ -142,7 +142,7 @@ class State
      * @param string $tableName
      * @param array $states
      */
-    public function __construct(string $tableName, array $states = array())
+    public function __construct(string $tableName, array $states = [])
     {
         $this->tableName = $tableName;
         $this->states = $states;
@@ -237,7 +237,7 @@ class State
      */
     public function getState(string $fieldName)
     {
-        return ($this->states[$fieldName] ?? null);
+        return $this->states[$fieldName] ?? null;
     }
 
     /**
@@ -256,7 +256,7 @@ class State
         }
         return array_filter(
             $fieldNames,
-            function($fieldName) use ($desiredState) {
+            function ($fieldName) use ($desiredState) {
                 return $this->states[$fieldName] === $desiredState;
             }
         );
@@ -293,4 +293,4 @@ class State
         }
         return $states;
     }
-}
\ No newline at end of file
+}
index 292ce32..3af991a 100644 (file)
@@ -301,7 +301,7 @@ class ElementsBasicCest
      */
     public function checkThatBrowserSideValidationWorks_EvalDate(Admin $I, Formhandler $formhandler)
     {
-        $this->skip("Instable Test is skipped due to repeated failure");
+        $this->skip('Instable Test is skipped due to repeated failure');
         //@todo fix this test
 
         $this->waitForFormReady($I);
@@ -418,7 +418,7 @@ class ElementsBasicCest
 
     public function checkThatValidationWorks_EvalDateTime_DbTypeDateTime(Admin $I, Formhandler $formhandler)
     {
-        $this->skip("Instable Test is skipped due to repeated failure");
+        $this->skip('Instable Test is skipped due to repeated failure');
         //@todo fix this test
         $this->waitForFormReady($I);
         $testData = [
@@ -498,9 +498,9 @@ class ElementsBasicCest
 
     public function checkThatValidationWorks_evalTimesec(Admin $I, Formhandler $formhandler)
     {
-        $this->skip("Instable Test is skipped due to repeated failure");
+        $this->skip('Instable Test is skipped due to repeated failure');
         //@todo fix this test
-        
+
         $this->waitForFormReady($I);
         $testData = [
             'input_18 eval=timesec' => [
index e623b4f..744a20b 100644 (file)
@@ -16,9 +16,9 @@ namespace TYPO3\CMS\Core\Tests\Unit\Resource\Driver;
 
 use org\bovigo\vfs\vfsStream;
 use org\bovigo\vfs\vfsStreamWrapper;
-use TYPO3\Components\TestingFramework\Core\FileStreamWrapper;
 use TYPO3\CMS\Core\Resource\Exception\InvalidFileNameException;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\Components\TestingFramework\Core\FileStreamWrapper;
 
 /**
  * Testcase for the local storage driver class of the TYPO3 VFS
index 0e9d6d5..0d12185 100644 (file)
@@ -16,12 +16,12 @@ namespace TYPO3\CMS\Core\Tests\Unit\ViewHelpers;
 
 use Prophecy\Argument;
 use Prophecy\Prophecy\ObjectProphecy;
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Core\Imaging\Icon;
 use TYPO3\CMS\Core\Imaging\IconFactory;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Core\ViewHelpers\IconForRecordViewHelper;
 use TYPO3\CMS\Core\ViewHelpers\IconViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
 
 /**
index d25c2c6..f9044ad 100644 (file)
@@ -15,12 +15,12 @@ namespace TYPO3\CMS\Core\Tests\Unit\ViewHelpers;
  */
 
 use Prophecy\Argument;
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Core\Imaging\Icon;
 use TYPO3\CMS\Core\Imaging\IconFactory;
 use TYPO3\CMS\Core\Type\Icon\IconState;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Core\ViewHelpers\IconViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test case
index 22ce307..355e81b 100644 (file)
@@ -76,7 +76,6 @@ $signalSlotDispatcher->connect(
     'getLocalizationRequiredDatabaseSchema'
 );
 
-
 unset($signalSlotDispatcher);
 
 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['dumpFile'] = \TYPO3\CMS\Core\Controller\FileDumpController::class . '::dumpAction';
index 1fe73bf..e07b557 100644 (file)
@@ -261,7 +261,8 @@ class FileProvider extends \TYPO3\CMS\Backend\ContextMenu\ItemProviders\Abstract
      * @param  File|Folder $fileOrFolderInClipBoard
      * @return bool
      */
-    protected function isFoldersAreInTheSameRoot($fileOrFolderInClipBoard): bool {
+    protected function isFoldersAreInTheSameRoot($fileOrFolderInClipBoard): bool
+    {
         return (!$fileOrFolderInClipBoard instanceof Folder)
             || (
                 $this->record->getStorage()->getRootLevelFolder()->getCombinedIdentifier()
index b82ab65..06f8f88 100644 (file)
@@ -15,12 +15,7 @@ namespace TYPO3\CMS\Filelist\ContextMenu\ItemProviders;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Core\Resource\File;
-use TYPO3\CMS\Core\Resource\Folder;
-use TYPO3\CMS\Core\Resource\ResourceFactory;
-use TYPO3\CMS\Core\Type\Bitmask\JsConfirmation;
-use TYPO3\CMS\Core\Utility\GeneralUtility;
 
 /**
  * Provides click menu items for file_storage
index a0e1751..cae48eb 100644 (file)
@@ -15,12 +15,7 @@ namespace TYPO3\CMS\Filelist\ContextMenu\ItemProviders;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Core\Resource\File;
-use TYPO3\CMS\Core\Resource\Folder;
-use TYPO3\CMS\Core\Resource\ResourceFactory;
-use TYPO3\CMS\Core\Type\Bitmask\JsConfirmation;
-use TYPO3\CMS\Core\Utility\GeneralUtility;
 
 /**
  * Provides click menu items for filemounts
index 7a1a1dd..5ff024d 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\BaseViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  */
index 47181b1..2138c6c 100644 (file)
@@ -15,10 +15,10 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  */
 
 use Prophecy\Argument;
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
 use TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper;
 use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Class CObjectViewHelperTest
index 96cfce3..c0dafb4 100644 (file)
@@ -14,10 +14,10 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Core\Messaging\FlashMessage;
 use TYPO3\CMS\Core\Messaging\FlashMessageQueue;
 use TYPO3\CMS\Fluid\ViewHelpers\FlashMessagesViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Testcase for FlashMessagesViewHelper
index f458302..f33d3df 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Form\ButtonViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test for the "Button" Form view helper
index 3c57e99..97e6152 100644 (file)
@@ -2,9 +2,9 @@
 namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
 
 use Prophecy\Argument;
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager;
 use TYPO3\CMS\Fluid\ViewHelpers\Form\CheckboxViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test for the "Checkbox" Form view helper
index 6bfb197..02a204f 100644 (file)
@@ -14,9 +14,9 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager;
 use TYPO3\CMS\Fluid\ViewHelpers\Form\RadioViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test for the "Radio" Form view helper
index cbadb4e..b2c8102 100644 (file)
@@ -14,10 +14,10 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Extbase\Reflection\ReflectionService;
 use TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\Fixtures\EmptySyntaxTreeNode;
 use TYPO3\CMS\Fluid\ViewHelpers\Form\TextfieldViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test for the "Textfield" Form view helper
index c47d924..06f4ffa 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\FormViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3Fluid\Fluid\Core\ViewHelper\ViewHelperInterface;
 
 /**
index 7bb142f..a42cb94 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Format\BytesViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test case
index de69340..d592096 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Format\CaseViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test case
index 54229b9..38e973b 100644 (file)
@@ -14,10 +14,10 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Fluid\ViewHelpers\Format\CropViewHelper;
 use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test case.
index bcdb738..564c2df 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Format\CurrencyViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test case
index 7ddbb28..30c0711 100644 (file)
@@ -14,9 +14,9 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
 use TYPO3\CMS\Fluid\ViewHelpers\Format\DateViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test case
index 8e71585..7c61c9e 100644 (file)
@@ -15,9 +15,9 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  */
 
 use Prophecy\Prophecy\ObjectProphecy;
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Extbase\Reflection\ReflectionService;
 use TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlentitiesDecodeViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test case
index d3f94a1..93fbd36 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Format\HtmlentitiesViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test case
index 809572b..7de4659 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Format\Nl2brViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test case
index 6c28d74..1f95561 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Format\NumberViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test case
index 8201d4a..00b0a31 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Format\PaddingViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test case
index e91d6d6..78ed95f 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Format\StripTagsViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test case
index 8d30011..f3dbdc8 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Format\UrlencodeViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test case
index fb3abcd..ef00eda 100644 (file)
@@ -14,10 +14,10 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Link;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Link\EmailViewHelper;
 use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
 use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3Fluid\Fluid\Core\ViewHelper\TagBuilder;
 
 /**
index 1b252c4..152ccf0 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Link;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Link\PageViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test-case for Link\PageViewHelper
index 1b78c3e..e7939d4 100644 (file)
@@ -14,11 +14,11 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Link;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContext;
 use TYPO3\CMS\Fluid\ViewHelpers\Link\TypolinkViewHelper;
 use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Class TypolinkViewHelperTest
index 2d496ed..24ea1c9 100644 (file)
@@ -14,9 +14,9 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Fixtures\TranslateViewHelperFixtureForEmptyString;
 use TYPO3\CMS\Fluid\ViewHelpers\TranslateViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test class for TranslateViewHelper
index 598084a..70ac671 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Uri;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Uri\EmailViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Testcase for the email uri view helper
index a63f634..4e20a89 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Uri;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Uri\ExternalViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Testcase for the external uri view helper
index 1c3add8..d3b6598 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Uri;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Uri\PageViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Test-case for Link\PageViewHelper
index b639701..2bb222d 100644 (file)
@@ -14,8 +14,8 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Uri;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 use TYPO3\CMS\Fluid\ViewHelpers\Uri\TypolinkViewHelper;
+use TYPO3\Components\TestingFramework\Fluid\Unit\ViewHelpers\ViewHelperBaseTestcase;
 
 /**
  * Class TypolinkViewHelperTest
index 624733c..31ef750 100644 (file)
@@ -15,8 +15,8 @@ namespace TYPO3\CMS\Install\Updates\RowUpdater;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Imaging\ImageManipulation\Area;
 use TYPO3\CMS\Core\Database\ConnectionPool;
+use TYPO3\CMS\Core\Imaging\ImageManipulation\Area;
 use TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException;
 use TYPO3\CMS\Core\Resource\ResourceFactory;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
index 643b228..f1081bd 100644 (file)
@@ -16,7 +16,6 @@ namespace TYPO3\CMS\Install\Updates;
 
 use TYPO3\CMS\Core\Database\ConnectionPool;
 use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
-use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 
 /**
index 7125324..12d4804 100644 (file)
@@ -993,7 +993,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
                 }
                 $table[] = '<tr class="taskGroup" data-task-group-id="' . $taskIndex . '"><td colspan="8">' . $groupText . '</td><td style="text-align:right;">' . $collapseExpandIcons . '</td></tr>';
             } else {
-                if (sizeof($temporaryResult) > 1) {
+                if (count($temporaryResult) > 1) {
                     $table[] = '<tr class="taskGroup" data-task-group-id="0"><td colspan="8"><strong>' . htmlspecialchars($this->getLanguageService()->getLL('label.noGroup')) . '</strong></td><td style="text-align:right;">' . $collapseExpandIcons . '</td></tr>';
                 }
             }