[CLEANUP] Use correct casting syntax 57/33757/4
authorWouter Wolters <typo3@wouterwolters.nl>
Mon, 3 Nov 2014 17:53:05 +0000 (18:53 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Mon, 3 Nov 2014 22:16:31 +0000 (23:16 +0100)
Resolves: #62664
Releases: master
Change-Id: Ib8e0695fc234ab67a2f73a65737e07cf9a2d19c6
Reviewed-on: http://review.typo3.org/33757
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
247 files changed:
typo3/sysext/backend/Classes/Clipboard/Clipboard.php
typo3/sysext/backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php
typo3/sysext/backend/Classes/ContextMenu/Extdirect/AbstractExtdirectContextMenu.php
typo3/sysext/backend/Classes/ContextMenu/Pagetree/Extdirect/ContextMenuConfiguration.php
typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php
typo3/sysext/backend/Classes/Controller/ContentElement/MoveElementController.php
typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/backend/Classes/Controller/FileSystemNavigationFrameController.php
typo3/sysext/backend/Classes/Controller/LoginController.php
typo3/sysext/backend/Classes/Controller/SimpleDataHandlerController.php
typo3/sysext/backend/Classes/Controller/Wizard/AddController.php
typo3/sysext/backend/Classes/Controller/Wizard/FormsController.php
typo3/sysext/backend/Classes/Form/DataPreprocessor.php
typo3/sysext/backend/Classes/Form/Element/GroupElement.php
typo3/sysext/backend/Classes/Form/Element/InlineElement.php
typo3/sysext/backend/Classes/Form/Element/SelectElement.php
typo3/sysext/backend/Classes/Form/Element/SuggestDefaultReceiver.php
typo3/sysext/backend/Classes/Form/ElementConditionMatcher.php
typo3/sysext/backend/Classes/Form/FormEngine.php
typo3/sysext/backend/Classes/Module/BaseScriptClass.php
typo3/sysext/backend/Classes/Module/ModuleSettings.php
typo3/sysext/backend/Classes/RecordList/AbstractRecordList.php
typo3/sysext/backend/Classes/Sprite/AbstractSpriteHandler.php
typo3/sysext/backend/Classes/Sprite/SimpleSpriteHandler.php
typo3/sysext/backend/Classes/Sprite/SpriteBuildingHandler.php
typo3/sysext/backend/Classes/Sprite/SpriteManager.php
typo3/sysext/backend/Classes/Template/DocumentTemplate.php
typo3/sysext/backend/Classes/Toolbar/ClearCacheToolbarItem.php
typo3/sysext/backend/Classes/Toolbar/ShortcutToolbarItem.php
typo3/sysext/backend/Classes/Tree/ExtDirectNode.php
typo3/sysext/backend/Classes/Tree/Pagetree/ExtdirectTreeCommands.php
typo3/sysext/backend/Classes/Tree/Pagetree/ExtdirectTreeDataProvider.php
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Classes/Utility/IconUtility.php
typo3/sysext/backend/Classes/View/BackendLayout/DefaultDataProvider.php
typo3/sysext/backend/Classes/View/BackendLayoutView.php
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/belog/Classes/Domain/Model/Constraint.php
typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
typo3/sysext/core/Classes/Cache/Backend/ApcBackend.php
typo3/sysext/core/Classes/Cache/Backend/MemcachedBackend.php
typo3/sysext/core/Classes/Cache/Backend/WincacheBackend.php
typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Classes/DataHandling/TableColumnSubType.php
typo3/sysext/core/Classes/DataHandling/TableColumnType.php
typo3/sysext/core/Classes/Database/DatabaseConnection.php
typo3/sysext/core/Classes/Database/QueryView.php
typo3/sysext/core/Classes/Database/ReferenceIndex.php
typo3/sysext/core/Classes/Database/RelationHandler.php
typo3/sysext/core/Classes/Database/SoftReferenceIndex.php
typo3/sysext/core/Classes/Error/DebugExceptionHandler.php
typo3/sysext/core/Classes/FormProtection/AbstractFormProtection.php
typo3/sysext/core/Classes/FrontendEditing/FrontendEditingController.php
typo3/sysext/core/Classes/Html/RteHtmlParser.php
typo3/sysext/core/Classes/Http/HttpRequest.php
typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php
typo3/sysext/core/Classes/Localization/LanguageStore.php
typo3/sysext/core/Classes/Localization/Parser/LocallangArrayParser.php
typo3/sysext/core/Classes/Localization/Parser/LocallangXmlParser.php
typo3/sysext/core/Classes/Localization/Parser/XliffParser.php
typo3/sysext/core/Classes/Log/Processor/AbstractMemoryProcessor.php
typo3/sysext/core/Classes/Log/Processor/IntrospectionProcessor.php
typo3/sysext/core/Classes/Mail/Mailer.php
typo3/sysext/core/Classes/Mail/MboxTransport.php
typo3/sysext/core/Classes/Messaging/AbstractMessage.php
typo3/sysext/core/Classes/Page/PageRenderer.php
typo3/sysext/core/Classes/Resource/File.php
typo3/sysext/core/Classes/Resource/FileReference.php
typo3/sysext/core/Classes/Resource/Filter/FileNameFilter.php
typo3/sysext/core/Classes/Resource/Folder.php
typo3/sysext/core/Classes/Resource/Service/MagicImageService.php
typo3/sysext/core/Classes/Tree/TableConfiguration/DatabaseTreeDataProvider.php
typo3/sysext/core/Classes/Tree/TableConfiguration/DatabaseTreeNode.php
typo3/sysext/core/Classes/Tree/TableConfiguration/TreeDataProviderFactory.php
typo3/sysext/core/Classes/Type/Enumeration.php
typo3/sysext/core/Classes/TypoScript/TemplateService.php
typo3/sysext/core/Classes/Utility/DebugUtility.php
typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
typo3/sysext/core/Classes/Utility/File/BasicFileUtility.php
typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Classes/Utility/MathUtility.php
typo3/sysext/core/Classes/Utility/PathUtility.php
typo3/sysext/core/Classes/Utility/StringUtility.php
typo3/sysext/core/Classes/Utility/VersionNumberUtility.php
typo3/sysext/core/Configuration/TCA/pages.php
typo3/sysext/core/Tests/Functional/DataHandling/IRRE/AbstractTestCase.php
typo3/sysext/core/Tests/FunctionalTestCase.php
typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php
typo3/sysext/core/Tests/Unit/Core/ApplicationContextTest.php
typo3/sysext/core/Tests/Unit/Log/LogRecordTest.php
typo3/sysext/core/Tests/Unit/Log/Writer/FileWriterTest.php
typo3/sysext/core/ext_tables.php
typo3/sysext/dbal/Classes/Controller/ModuleController.php
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php
typo3/sysext/extbase/Classes/Configuration/ConfigurationManager.php
typo3/sysext/extbase/Classes/DomainObject/AbstractDomainObject.php
typo3/sysext/extbase/Classes/Mvc/Controller/AbstractController.php
typo3/sysext/extbase/Classes/Mvc/Controller/Argument.php
typo3/sysext/extbase/Classes/Mvc/Controller/CommandController.php
typo3/sysext/extbase/Classes/Mvc/Web/Request.php
typo3/sysext/extbase/Classes/Mvc/Web/RequestBuilder.php
typo3/sysext/extbase/Classes/Mvc/Web/Routing/UriBuilder.php
typo3/sysext/extbase/Classes/Property/TypeConverter/BooleanConverter.php
typo3/sysext/extbase/Classes/Property/TypeConverter/StringConverter.php
typo3/sysext/extbase/Classes/Scheduler/FieldProvider.php
typo3/sysext/extbase/Classes/Service/CacheService.php
typo3/sysext/extbase/Classes/Utility/ArrayUtility.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Domain/Repository/PostRepository.php
typo3/sysext/extbase/Tests/Unit/Mvc/ResponseTest.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php
typo3/sysext/extensionmanager/Classes/Utility/EmConfUtility.php
typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php
typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php
typo3/sysext/extensionmanager/Classes/Utility/Parser/AbstractXmlParser.php
typo3/sysext/fluid/Classes/Core/Parser/SyntaxTree/AbstractNode.php
typo3/sysext/fluid/Classes/Core/Parser/SyntaxTree/BooleanNode.php
typo3/sysext/fluid/Classes/Core/Parser/TemplateParser.php
typo3/sysext/fluid/Classes/Service/DocbookGenerator.php
typo3/sysext/fluid/Classes/ViewHelpers/CObjectViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/DebugViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Form/AbstractFormViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/ImageViewHelper.php
typo3/sysext/form/Classes/Domain/Factory/JsonToTypoScript.php
typo3/sysext/form/Classes/Domain/Factory/TypoScriptFactory.php
typo3/sysext/form/Classes/Domain/Model/Additional/AbstractAdditionalElement.php
typo3/sysext/form/Classes/Domain/Model/Additional/AdditionalAdditionalElement.php
typo3/sysext/form/Classes/Domain/Model/Attribute/AcceptAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/AcceptCharsetAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/AccesskeyAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/AltAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/AttributesAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/CheckedAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/ClassAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/DirAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/DisabledAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/EnctypeAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/IdAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/LabelAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/LangAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/MethodAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/NameAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/SizeAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/StyleAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/TitleAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/TypeAttribute.php
typo3/sysext/form/Classes/Domain/Model/Attribute/ValueAttribute.php
typo3/sysext/form/Classes/Domain/Model/Content.php
typo3/sysext/form/Classes/Domain/Model/Element/AbstractElement.php
typo3/sysext/form/Classes/Domain/Model/Element/ButtonElement.php
typo3/sysext/form/Classes/Domain/Model/Element/CheckboxElement.php
typo3/sysext/form/Classes/Domain/Model/Element/OptionElement.php
typo3/sysext/form/Classes/Domain/Model/Element/RadioElement.php
typo3/sysext/form/Classes/Domain/Model/Element/ResetElement.php
typo3/sysext/form/Classes/Domain/Model/Element/SubmitElement.php
typo3/sysext/form/Classes/Domain/Repository/ContentRepository.php
typo3/sysext/form/Classes/Filter/AlphabeticFilter.php
typo3/sysext/form/Classes/Filter/AlphanumericFilter.php
typo3/sysext/form/Classes/Filter/CurrencyFilter.php
typo3/sysext/form/Classes/Filter/DigitFilter.php
typo3/sysext/form/Classes/Filter/RegExpFilter.php
typo3/sysext/form/Classes/Filter/StripNewLinesFilter.php
typo3/sysext/form/Classes/Filter/TrimFilter.php
typo3/sysext/form/Classes/Layout.php
typo3/sysext/form/Classes/Localization.php
typo3/sysext/form/Classes/Request.php
typo3/sysext/form/Classes/Utility/FilterUtility.php
typo3/sysext/form/Classes/Utility/TypoScriptToJsonConverter.php
typo3/sysext/form/Classes/Utility/ValidatorUtility.php
typo3/sysext/form/Classes/Validation/AbstractValidator.php
typo3/sysext/form/Classes/Validation/AlphabeticValidator.php
typo3/sysext/form/Classes/Validation/AlphanumericValidator.php
typo3/sysext/form/Classes/Validation/BetweenValidator.php
typo3/sysext/form/Classes/Validation/DateValidator.php
typo3/sysext/form/Classes/Validation/EqualsValidator.php
typo3/sysext/form/Classes/Validation/InArrayValidator.php
typo3/sysext/form/Classes/Validation/RegExpValidator.php
typo3/sysext/form/Classes/View/Confirmation/Element/AbstractElementView.php
typo3/sysext/form/Classes/View/Form/Element/AbstractElementView.php
typo3/sysext/form/Classes/View/Mail/Html/Element/AbstractElementView.php
typo3/sysext/frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Classes/ContentObject/FlowPlayerContentObject.php
typo3/sysext/frontend/Classes/ContentObject/FormContentObject.php
typo3/sysext/frontend/Classes/ContentObject/MediaContentObject.php
typo3/sysext/frontend/Classes/ContentObject/MultimediaContentObject.php
typo3/sysext/frontend/Classes/ContentObject/QuicktimeObjectContentObject.php
typo3/sysext/frontend/Classes/ContentObject/ShockwaveFlashObjectContentObject.php
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/frontend/Classes/Imaging/GifBuilder.php
typo3/sysext/frontend/Classes/Page/PageGenerator.php
typo3/sysext/frontend/Classes/Page/PageRepository.php
typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php
typo3/sysext/impexp/Classes/Controller/ImportExportController.php
typo3/sysext/impexp/Classes/ImportExport.php
typo3/sysext/indexed_search/Classes/Controller/SearchController.php
typo3/sysext/indexed_search/Classes/Controller/SearchFormController.php
typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php
typo3/sysext/indexed_search/Classes/FileContentParser.php
typo3/sysext/indexed_search/Classes/Hook/CrawlerHook.php
typo3/sysext/indexed_search/Classes/Indexer.php
typo3/sysext/indexed_search_mysql/Classes/Hook/MysqlFulltextIndexHook.php
typo3/sysext/install/Classes/Controller/Action/Tool/AllConfiguration.php
typo3/sysext/install/Classes/Service/SessionService.php
typo3/sysext/lang/Classes/Domain/Model/Extension.php
typo3/sysext/lang/Classes/Domain/Repository/LanguageRepository.php
typo3/sysext/lang/Classes/LanguageService.php
typo3/sysext/lang/Classes/Service/UpdateTranslationService.php
typo3/sysext/linkvalidator/Classes/Report/LinkValidatorReport.php
typo3/sysext/lowlevel/Classes/AdminCommand.php
typo3/sysext/lowlevel/Classes/CleanerCommand.php
typo3/sysext/lowlevel/Classes/MissingFilesCommand.php
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php
typo3/sysext/recordlist/Classes/Controller/ElementBrowserController.php
typo3/sysext/recordlist/Classes/RecordList.php
typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
typo3/sysext/recycler/Classes/Controller/RecyclerModuleController.php
typo3/sysext/reports/Classes/Report/Status/Typo3Status.php
typo3/sysext/reports/Classes/Status.php
typo3/sysext/rtehtmlarea/Classes/Extension/Language.php
typo3/sysext/rtehtmlarea/Classes/SelectImage.php
typo3/sysext/rtehtmlarea/Classes/User.php
typo3/sysext/saltedpasswords/Classes/Task/BulkUpdateFieldProvider.php
typo3/sysext/saltedpasswords/Classes/Task/BulkUpdateTask.php
typo3/sysext/saltedpasswords/Classes/Utility/ExtensionManagerConfigurationUtility.php
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php
typo3/sysext/scheduler/Classes/CronCommand/CronCommand.php
typo3/sysext/scheduler/Classes/CronCommand/NormalizeCommand.php
typo3/sysext/setup/Classes/Controller/SetupModuleController.php
typo3/sysext/sv/Classes/AuthenticationService.php
typo3/sysext/sys_note/Classes/Domain/Repository/SysNoteRepository.php
typo3/sysext/t3editor/Classes/T3editor.php
typo3/sysext/taskcenter/Classes/Controller/TaskModuleController.php
typo3/sysext/taskcenter/Classes/TaskStatus.php
typo3/sysext/version/Classes/DataHandler/CommandMap.php
typo3/sysext/version/Classes/Dependency/DependencyResolver.php
typo3/sysext/version/Classes/Hook/DataHandlerHook.php
typo3/sysext/viewpage/Classes/Controller/ViewModuleController.php
typo3/sysext/workspaces/Classes/ExtDirect/AbstractHandler.php
typo3/sysext/workspaces/Classes/Service/WorkspaceService.php

index 814191d..1d95b77 100644 (file)
@@ -221,7 +221,7 @@ class Clipboard {
                if (is_array($CBarr)) {
                        foreach ($CBarr as $k => $v) {
                                $p = explode('|', $k);
-                               if ((string) $p[0] != (string) $table || $removeDeselected && !$v) {
+                               if ((string)$p[0] != (string)$table || $removeDeselected && !$v) {
                                        unset($CBarr[$k]);
                                }
                        }
@@ -779,11 +779,11 @@ class Clipboard {
                                if ($v) {
                                        list($table, $uid) = explode('|', $k);
                                        if ($table != '_FILE') {
-                                               if ((!$matchTable || (string) $table == (string) $matchTable) && $GLOBALS['TCA'][$table]) {
+                                               if ((!$matchTable || (string)$table == (string)$matchTable) && $GLOBALS['TCA'][$table]) {
                                                        $list[$k] = $pad == 'normal' ? $v : $uid;
                                                }
                                        } else {
-                                               if ((string) $table == (string) $matchTable) {
+                                               if ((string)$table == (string)$matchTable) {
                                                        $list[$k] = $v;
                                                }
                                        }
index 5b77e6f..1d36fb2 100644 (file)
@@ -57,7 +57,7 @@ class ConditionMatcher extends \TYPO3\CMS\Core\Configuration\TypoScript\Conditio
                                        break;
                                case 'adminUser':
                                        if ($this->isUserLoggedIn()) {
-                                               $result = !((bool) $value xor $this->isAdminUser());
+                                               $result = !((bool)$value xor $this->isAdminUser());
                                                return $result;
                                        }
                                        break;
index 4928aec..1735d29 100644 (file)
@@ -44,7 +44,7 @@ abstract class AbstractExtdirectContextMenu extends \TYPO3\CMS\Backend\ContextMe
                        $this->setDataProvider($dataProvider);
                }
                /** @var $node \TYPO3\CMS\Backend\Tree\TreeNode */
-               $node = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\TreeNode', (array) $nodeData);
+               $node = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\TreeNode', (array)$nodeData);
                $actions = $this->dataProvider->getActionsForNode($node);
                return $actions;
        }
index 2807456..eeb4ebb 100644 (file)
@@ -40,7 +40,7 @@ class ContextMenuConfiguration extends \TYPO3\CMS\Backend\ContextMenu\Extdirect\
         */
        public function getActionsForNodeArray($nodeData) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                $node->setRecord(\TYPO3\CMS\Backend\Tree\Pagetree\Commands::getNodeRecord($node->getId()));
                $this->initDataProvider();
                $this->dataProvider->setContextMenuType('table.' . $node->getType());
index 125cc9c..0f26488 100644 (file)
@@ -133,7 +133,7 @@ class ElementInformationController {
 
                // Check permissions and uid value:
                if ($this->uid && $GLOBALS['BE_USER']->check('tables_select', $this->table)) {
-                       if ((string) $this->table == 'pages') {
+                       if ((string)$this->table == 'pages') {
                                $this->pageinfo = BackendUtility::readPageAccess($this->uid, $this->perms_clause);
                                $this->access = is_array($this->pageinfo) ? 1 : 0;
                                $this->row = $this->pageinfo;
index 5ebd4e3..4d52bd7 100644 (file)
@@ -139,7 +139,7 @@ class MoveElementController {
                        // Reset variable to pick up the module content in:
                        $code = '';
                        // IF the table is "pages":
-                       if ((string) $this->table == 'pages') {
+                       if ((string)$this->table == 'pages') {
                                // Get page record (if accessible):
                                $pageinfo = BackendUtility::readPageAccess($this->page_id, $this->perms_clause);
                                if (is_array($pageinfo) && $GLOBALS['BE_USER']->isInWebMount($pageinfo['pid'], $this->perms_clause)) {
@@ -162,7 +162,7 @@ class MoveElementController {
                                }
                        }
                        // IF the table is "tt_content":
-                       if ((string) $this->table == 'tt_content') {
+                       if ((string)$this->table == 'tt_content') {
                                // First, get the record:
                                $tt_content_rec = BackendUtility::getRecord('tt_content', $this->moveUid);
                                // ?
@@ -245,9 +245,9 @@ class MoveElementController {
                        'back' => ''
                );
                if ($this->page_id) {
-                       if ((string) $this->table == 'pages') {
+                       if ((string)$this->table == 'pages') {
                                $buttons['csh'] = BackendUtility::cshItem('xMOD_csh_corebe', 'move_el_pages', $GLOBALS['BACK_PATH'], '', TRUE);
-                       } elseif ((string) $this->table == 'tt_content') {
+                       } elseif ((string)$this->table == 'tt_content') {
                                $buttons['csh'] = BackendUtility::cshItem('xMOD_csh_corebe', 'move_el_cs', $GLOBALS['BACK_PATH'], '', TRUE);
                        }
                        if ($this->R_URI) {
index a6d8b54..2daf18c 100644 (file)
@@ -353,7 +353,7 @@ class NewContentElementController {
                                $showAll = $wizardGroup['show'] === '*';
                                $groupItems = array();
                                if (is_array($appendWizards[$groupKey . '.']['elements.'])) {
-                                       $wizardElements = array_merge((array) $wizardGroup['elements.'], $appendWizards[$groupKey . '.']['elements.']);
+                                       $wizardElements = array_merge((array)$wizardGroup['elements.'], $appendWizards[$groupKey . '.']['elements.']);
                                } else {
                                        $wizardElements = $wizardGroup['elements.'];
                                }
index 3d45d58..f302a95 100644 (file)
@@ -864,7 +864,7 @@ class EditDocumentController {
                                                                        }
                                                                        // Check internals regarding access:
                                                                        $isRootLevelRestrictionIgnored = BackendUtility::isRootLevelRestrictionIgnored($table);
-                                                                       if ($hasAccess || (string) $calcPRec['pid'] === '0' && $isRootLevelRestrictionIgnored) {
+                                                                       if ($hasAccess || (string)$calcPRec['pid'] === '0' && $isRootLevelRestrictionIgnored) {
                                                                                $hasAccess = $GLOBALS['BE_USER']->recordEditAccessInternals($table, $calcPRec);
                                                                                $deniedAccessReason = $GLOBALS['BE_USER']->errorMsg;
                                                                        }
index 2d473bc..a0d58a5 100644 (file)
@@ -85,8 +85,8 @@ class FileSystemNavigationFrameController {
                $this->currentSubScript = GeneralUtility::_GP('currentSubScript');
                $this->cMR = GeneralUtility::_GP('cMR');
 
-               $scopeData = (string) GeneralUtility::_GP('scopeData');
-               $scopeHash = (string) GeneralUtility::_GP('scopeHash');
+               $scopeData = (string)GeneralUtility::_GP('scopeData');
+               $scopeHash = (string)GeneralUtility::_GP('scopeHash');
 
                if (!empty($scopeData) && GeneralUtility::hmac($scopeData) === $scopeHash) {
                        $this->scopeData = unserialize($scopeData);
index 4063e9e..4eab5c7 100644 (file)
@@ -394,7 +394,7 @@ class LoginController {
                                        $this->redirectToURL = 'index.php?commandLI=setCookie';
                                }
                        }
-                       if ($redirectToURL = (string) $GLOBALS['BE_USER']->getTSConfigVal('auth.BE.redirectToURL')) {
+                       if ($redirectToURL = (string)$GLOBALS['BE_USER']->getTSConfigVal('auth.BE.redirectToURL')) {
                                $this->redirectToURL = $redirectToURL;
                                $this->GPinterface = '';
                        }
index 39971e9..0bca4d4 100644 (file)
@@ -29,7 +29,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
 class SimpleDataHandlerController {
 
        /**
-        * Array. Accepts options to be set in TCE object. Currently it supports "reverseOrder" (boolean).
+        * Array. Accepts options to be set in TCE object. Currently it supports "reverseOrder" (bool).
         *
         * @var array
         */
index 1034b3e..ba08a46 100644 (file)
@@ -162,7 +162,7 @@ class AddController {
                                                $flexToolObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Configuration\\FlexForm\\FlexFormTools');
                                                $curValueOfFlexform = $flexToolObj->getArrayValueByPath($this->P['flexFormPath'], $currentFlexFormData);
                                                $insertValue = '';
-                                               switch ((string) $this->P['params']['setValue']) {
+                                               switch ((string)$this->P['params']['setValue']) {
                                                        case 'set':
                                                                $insertValue = $addEl;
                                                                break;
@@ -177,7 +177,7 @@ class AddController {
                                                $data[$this->P['table']][$this->P['uid']][$this->P['field']] = array();
                                                $flexToolObj->setArrayValueByPath($this->P['flexFormPath'], $data[$this->P['table']][$this->P['uid']][$this->P['field']], $insertValue);
                                        } else {
-                                               switch ((string) $this->P['params']['setValue']) {
+                                               switch ((string)$this->P['params']['setValue']) {
                                                        case 'set':
                                                                $data[$this->P['table']][$this->P['uid']][$this->P['field']] = $addEl;
                                                                break;
index 343f377..eb29fae 100644 (file)
@@ -415,7 +415,7 @@ class FormsController {
                                                $temp_cells[$GLOBALS['LANG']->getLL('forms_fieldName')] = '<input type="text"' . $this->doc->formWidth(10) . ' name="FORMCFG[c][' . ($k + 1) * 2 . '][fieldname]" value="' . htmlspecialchars($confData['fieldname']) . '" title="' . $GLOBALS['LANG']->getLL('forms_fieldName', TRUE) . '" />';
                                        }
                                        // Field configuration depending on the fields type:
-                                       switch ((string) $confData['type']) {
+                                       switch ((string)$confData['type']) {
                                                case 'textarea':
                                                        $temp_cells[$GLOBALS['LANG']->getLL('forms_cols')] = '<input type="text"' . $this->doc->formWidth(5) . ' name="FORMCFG[c][' . ($k + 1) * 2 . '][cols]" value="' . htmlspecialchars($confData['cols']) . '" title="' . $GLOBALS['LANG']->getLL('forms_cols', TRUE) . '" />';
                                                        $temp_cells[$GLOBALS['LANG']->getLL('forms_rows')] = '<input type="text"' . $this->doc->formWidth(5) . ' name="FORMCFG[c][' . ($k + 1) * 2 . '][rows]" value="' . htmlspecialchars($confData['rows']) . '" title="' . $GLOBALS['LANG']->getLL('forms_rows', TRUE) . '" />';
@@ -437,7 +437,7 @@ class FormsController {
                                                        break;
                                        }
                                        // Field configuration depending on the fields type:
-                                       switch ((string) $confData['type']) {
+                                       switch ((string)$confData['type']) {
                                                case 'textarea':
 
                                                case 'input':
@@ -651,7 +651,7 @@ class FormsController {
                                        $thisLine[1] = ($vv['required'] ? '*' : '') . str_replace(',', '', (($vv['fieldname'] ? $vv['fieldname'] . '=' : '') . $vv['type']));
                                        // Default:
                                        $tArr = array('', '', '', '', '', '');
-                                       switch ((string) $vv['type']) {
+                                       switch ((string)$vv['type']) {
                                                case 'textarea':
                                                        if ((int)$vv['cols']) {
                                                                $tArr[0] = (int)$vv['cols'];
@@ -775,7 +775,7 @@ class FormsController {
                                        } else {
                                                $confData['fieldname'] = str_replace(' ', '_', trim($typeParts[0]));
                                        }
-                                       switch ((string) $confData['type']) {
+                                       switch ((string)$confData['type']) {
                                                case 'select':
                                                case 'radio':
                                                        $confData['default'] = implode(LF, GeneralUtility::trimExplode(',', $parts[2]));
@@ -784,7 +784,7 @@ class FormsController {
                                                        $confData['default'] = trim($parts[2]);
                                        }
                                        // Field configuration depending on the fields type:
-                                       switch ((string) $confData['type']) {
+                                       switch ((string)$confData['type']) {
                                                case 'textarea':
                                                        $confData['cols'] = $fParts[1];
                                                        $confData['rows'] = $fParts[2];
index 58727d5..ecca435 100644 (file)
@@ -96,7 +96,7 @@ class DataPreprocessor {
                        $idList = $this->prevPageID;
                }
                if ($GLOBALS['TCA'][$table]) {
-                       // For each ID value (integer) we
+                       // For each ID value (int) we
                        $ids = GeneralUtility::trimExplode(',', $idList, TRUE);
                        foreach ($ids as $id) {
                                // If ID is not blank:
@@ -181,7 +181,7 @@ class DataPreprocessor {
         * The resulting, processed row is stored in $this->regTableItems_data[$uniqueItemRef], where $uniqueItemRef is "[tablename]_[id-value]"
         *
         * @param string $table The table name
-        * @param string $id The uid value of the record (integer). Can also be a string (NEW-something) if the record is a NEW record.
+        * @param string $id The uid value of the record (int). Can also be a string (NEW-something) if the record is a NEW record.
         * @param int $pid The pid integer. For existing records this is of course the row's "pid" field. For new records it can be either a page id (positive) or a pointer to another record from the SAME table (negative) after which the record should be inserted (or on same page)
         * @param array $row The row of the current record. If NEW record, then it may be loaded with default values (by eg. fetchRecord()).
         * @return void
@@ -223,7 +223,7 @@ class DataPreprocessor {
         * The resulting, processed row will be returned.
         *
         * @param string $table The table name
-        * @param string $id The uid value of the record (integer). Can also be a string (NEW-something) if the record is a NEW record.
+        * @param string $id The uid value of the record (int). Can also be a string (NEW-something) if the record is a NEW record.
         * @param int $pid The pid integer. For existing records this is of course the row's "pid" field. For new records it can be either a page id (positive) or a pointer to another record from the SAME table (negative) after which the record should be inserted (or on same page)
         * @param array $row The row of the current record. If NEW record, then it may be loaded with default values (by eg. fetchRecord()).
         * @param array $TSconfig Tsconfig array
index f230781..2aa0dbf 100644 (file)
@@ -75,7 +75,7 @@ class GroupElement extends AbstractFormElement {
                                . '\', \'RemoveFirstIfFull\', \'' . $maxitems . '\'); ' . $additionalInformation['fieldChangeFunc']['TBE_EDITOR_fieldChanged'];
                }
                // Acting according to either "file" or "db" type:
-               switch ((string) $config['internal_type']) {
+               switch ((string)$config['internal_type']) {
                        case 'file_reference':
                                $config['uploadfolder'] = '';
                                // Fall through
index c799f2c..b906612 100644 (file)
@@ -1276,7 +1276,7 @@ class InlineElement {
         * Handle AJAX calls to localize all records of a parent, localize a single record or to synchronize with the original language parent.
         *
         * @param string $domObjectId The calling object in hierarchy, that requested a new record.
-        * @param mixed $type Defines the type 'localize' or 'synchronize' (string) or a single uid to be localized (integer)
+        * @param mixed $type Defines the type 'localize' or 'synchronize' (string) or a single uid to be localized (int)
         * @return array An array to be used for JSON
         */
        protected function synchronizeLocalizeRecords($domObjectId, $type) {
@@ -1418,7 +1418,7 @@ class InlineElement {
                $top = $this->getStructureLevel(0);
                // Only do some action if the top record and the current record were saved before
                if (MathUtility::canBeInterpretedAsInteger($top['uid'])) {
-                       $inlineView = (array) unserialize($GLOBALS['BE_USER']->uc['inlineView']);
+                       $inlineView = (array)unserialize($GLOBALS['BE_USER']->uc['inlineView']);
                        $inlineViewCurrent = &$inlineView[$top['table']][$top['uid']];
                        $expandUids = GeneralUtility::trimExplode(',', $expand);
                        $collapseUids = GeneralUtility::trimExplode(',', $collapse);
@@ -2463,7 +2463,7 @@ class InlineElement {
         */
        static public function updateInlineView(&$uc, $tce) {
                if (isset($uc['inlineView']) && is_array($uc['inlineView'])) {
-                       $inlineView = (array) unserialize($GLOBALS['BE_USER']->uc['inlineView']);
+                       $inlineView = (array)unserialize($GLOBALS['BE_USER']->uc['inlineView']);
                        foreach ($uc['inlineView'] as $topTable => $topRecords) {
                                foreach ($topRecords as $topUid => $childElements) {
                                        foreach ($childElements as $childTable => $childRecords) {
index 5e2b312..6321e7c 100644 (file)
@@ -683,7 +683,7 @@ class SelectElement extends AbstractFormElement {
                        }
                        // Non-selectable element:
                        $nonSel = '';
-                       if ((string) $p[1] === '--div--') {
+                       if ((string)$p[1] === '--div--') {
                                $nonSel = ' onclick="this.selected=0;" class="c-divider"';
                        }
                        // Icon style for option tag:
index 2c53c13..6caf991 100644 (file)
@@ -299,7 +299,7 @@ class SuggestDefaultReceiver {
                        if (!BackendUtility::readPageAccess($uid, $GLOBALS['BE_USER']->getPagePermsClause(1))) {
                                $retValue = FALSE;
                        }
-               } elseif (isset($GLOBALS['TCA'][$table]['ctrl']['is_static']) && (bool) $GLOBALS['TCA'][$table]['ctrl']['is_static']) {
+               } elseif (isset($GLOBALS['TCA'][$table]['ctrl']['is_static']) && (bool)$GLOBALS['TCA'][$table]['ctrl']['is_static']) {
                        $retValue = TRUE;
                } else {
                        if (!is_array(BackendUtility::readPageAccess($row['pid'], $GLOBALS['BE_USER']->getPagePermsClause(1)))) {
index 776f06a..4a410c6 100644 (file)
@@ -194,7 +194,7 @@ class ElementConditionMatcher {
                switch ($operator) {
                        case 'REQ':
                                if (strtoupper($operand) === 'TRUE') {
-                                       $result = (bool) $fieldValue;
+                                       $result = (bool)$fieldValue;
                                } else {
                                        $result = !$fieldValue;
                                }
@@ -245,7 +245,7 @@ class ElementConditionMatcher {
         * @return bool
         */
        protected function matchHideForNonAdminsCondition() {
-               return (bool) $this->getBackendUser()->isAdmin();
+               return (bool)$this->getBackendUser()->isAdmin();
        }
 
        /**
index 7638946..c9c5dd1 100644 (file)
@@ -1786,7 +1786,7 @@ class FormEngine {
                        $typeNum = $GLOBALS['TCA'][$table]['types']['0'] ? 0 : 1;
                }
                // Force to string. Necessary for eg '-1' to be recognized as a type value.
-               $typeNum = (string) $typeNum;
+               $typeNum = (string)$typeNum;
                return $typeNum;
        }
 
@@ -2589,7 +2589,7 @@ class FormEngine {
                                        } else {
                                                $icon = $iTitle;
                                        }
-                                       switch ((string) $wConf['type']) {
+                                       switch ((string)$wConf['type']) {
                                                case 'userFunc':
 
                                                case 'script':
@@ -2676,7 +2676,7 @@ class FormEngine {
 
                                                                $url = $this->backPath . $wScript . (strstr($wScript, '?') ? '' : '?');
                                                                // If "script" type, create the links around the icon:
-                                                               if ((string) $wConf['type'] === 'script') {
+                                                               if ((string)$wConf['type'] === 'script') {
                                                                        $aUrl = $url . GeneralUtility::implodeArrayForUrl('', array('P' => $params));
                                                                        $outArr[] = '<a href="' . htmlspecialchars($aUrl) . '" onclick="this.blur(); return !TBE_EDITOR.isFormChanged();">' . $icon . '</a>';
                                                                } else {
@@ -2686,7 +2686,7 @@ class FormEngine {
                                                                        $params['hmac'] = GeneralUtility::hmac($params['formName'] . $params['itemName'], 'wizard_js');
                                                                        $params['fieldChangeFunc'] = $fieldChangeFunc;
                                                                        $params['fieldChangeFuncHash'] = GeneralUtility::hmac(serialize($fieldChangeFunc));
-                                                                       switch ((string) $wConf['type']) {
+                                                                       switch ((string)$wConf['type']) {
                                                                                case 'popup':
                                                                                case 'colorbox':
                                                                                        // Current form value is passed as P[currentValue]!
@@ -2704,7 +2704,7 @@ class FormEngine {
                                                                                                . 'vHWin.focus();return false;';
                                                                                        // Setting "colorBoxLinks" - user LATER to wrap around the color box as well:
                                                                                        $colorBoxLinks = array('<a href="#" onclick="' . htmlspecialchars($aOnClick) . '">', '</a>');
-                                                                                       if ((string) $wConf['type'] == 'popup') {
+                                                                                       if ((string)$wConf['type'] == 'popup') {
                                                                                                $outArr[] = $colorBoxLinks[0] . $icon . $colorBoxLinks[1];
                                                                                        }
                                                                                        break;
@@ -2774,7 +2774,7 @@ class FormEngine {
                                                        break;
                                        }
                                        // Color wizard colorbox:
-                                       if ((string) $wConf['type'] === 'colorbox') {
+                                       if ((string)$wConf['type'] === 'colorbox') {
                                                $dim = GeneralUtility::intExplode('x', $wConf['dim']);
                                                $dX = MathUtility::forceIntegerInRange($dim[0], 1, 200, 20);
                                                $dY = MathUtility::forceIntegerInRange($dim[1], 1, 200, 20);
index 012b9f2..422cd01 100644 (file)
@@ -246,7 +246,7 @@ class BaseScriptClass {
                $mergeArray = $GLOBALS['TBE_MODULES_EXT'][$modName]['MOD_MENU'][$menuKey];
                if (is_array($mergeArray)) {
                        foreach ($mergeArray as $k => $v) {
-                               if (((string) $v['ws'] === '' || $GLOBALS['BE_USER']->workspace === 0 && GeneralUtility::inList($v['ws'], 'online')) || $GLOBALS['BE_USER']->workspace === -1 && GeneralUtility::inList($v['ws'], 'offline') || $GLOBALS['BE_USER']->workspace > 0 && GeneralUtility::inList($v['ws'], 'custom')) {
+                               if (((string)$v['ws'] === '' || $GLOBALS['BE_USER']->workspace === 0 && GeneralUtility::inList($v['ws'], 'online')) || $GLOBALS['BE_USER']->workspace === -1 && GeneralUtility::inList($v['ws'], 'offline') || $GLOBALS['BE_USER']->workspace > 0 && GeneralUtility::inList($v['ws'], 'custom')) {
                                        $menuArr[$k] = $GLOBALS['LANG']->sL($v['title']);
                                }
                        }
index 8963a17..a95e394 100644 (file)
@@ -249,7 +249,7 @@ class ModuleSettings {
                }
                $storageArr = array(
                        'title' => $data['title'],
-                       'desc' => (string) $data['desc'],
+                       'desc' => (string)$data['desc'],
                        'data' => $storageData,
                        'user' => NULL,
                        'tstamp' => $GLOBALS['EXEC_TIME']
index 1a4d8e4..4f34d11 100644 (file)
@@ -185,7 +185,7 @@ abstract class AbstractRecordList {
         * @param string $icon Is the <img>+<a> of the record. If not supplied the first 'join'-icon will be a 'line' instead
         * @param array $data Is the dataarray, record with the fields. Notice: These fields are (currently) NOT htmlspecialchar'ed before being wrapped in <td>-tags
         * @param string $tdParams Is insert in the <td>-tags. Must carry a ' ' as first character
-        * @param int OBSOLETE - NOT USED ANYMORE. $lMargin is the leftMargin (integer)
+        * @param int OBSOLETE - NOT USED ANYMORE. $lMargin is the leftMargin (int)
         * @param string $altLine Is the HTML <img>-tag for an alternative 'gfx/ol/line.gif'-icon (used in the top)
         * @return string HTML content for the table row
         */
index 051a0df..515c701 100644 (file)
@@ -71,7 +71,7 @@ abstract class AbstractSpriteHandler implements \TYPO3\CMS\Backend\Sprite\Sprite
                // Saves which CSS Files are currently "allowed to be in place"
                $allowedCssFilesinTempDir = array(basename($this->cssTcaFile));
                // Process every registeres file
-               foreach ((array) $GLOBALS['TBE_STYLES']['spritemanager']['cssFiles'] as $file) {
+               foreach ((array)$GLOBALS['TBE_STYLES']['spritemanager']['cssFiles'] as $file) {
                        $fileName = basename($file);
                        // File should be present
                        $allowedCssFilesinTempDir[] = $fileName;
index d774c0b..6474f24 100644 (file)
@@ -64,7 +64,7 @@ class SimpleSpriteHandler extends \TYPO3\CMS\Backend\Sprite\AbstractSpriteHandle
                // Backpath from the stylesheet file ($cssTcaFile) to PATH_site dir
                // in order to set the background-image URL paths correct
                $iconPath = '../../' . TYPO3_mainDir;
-               $iconsToProcess = array_merge((array) $GLOBALS['TBE_STYLES']['spritemanager']['singleIcons'], $this->collectTcaSpriteIcons());
+               $iconsToProcess = array_merge((array)$GLOBALS['TBE_STYLES']['spritemanager']['singleIcons'], $this->collectTcaSpriteIcons());
                foreach ($iconsToProcess as $iconName => $iconFile) {
                        $css = str_replace('###NAME###', str_replace(array('extensions-', 'tcarecords-'), array('', ''), $iconName), $this->styleSheetTemplateExtIcons);
                        $css = str_replace('###IMAGE###', \TYPO3\CMS\Core\Utility\GeneralUtility::resolveBackPath($iconPath . $iconFile), $css);
index 37bd6ac..0077c30 100644 (file)
@@ -41,7 +41,7 @@ class SpriteBuildingHandler extends AbstractSpriteHandler {
                        ->setIncludeTimestampInCSS(TRUE)
                        ->setSpriteFolder(SpriteManager::$tempPath)
                        ->setCSSFolder(SpriteManager::$tempPath);
-               $iconsToProcess = array_merge((array) $GLOBALS['TBE_STYLES']['spritemanager']['singleIcons'], $this->collectTcaSpriteIcons());
+               $iconsToProcess = array_merge((array)$GLOBALS['TBE_STYLES']['spritemanager']['singleIcons'], $this->collectTcaSpriteIcons());
                foreach ($iconsToProcess as $iconName => $iconFile) {
                        $iconsToProcess[$iconName] = GeneralUtility::resolveBackPath('typo3/' . $iconFile);
                }
index 6e249d4..455eb2b 100644 (file)
@@ -92,7 +92,7 @@ class SpriteManager {
                // Generate CSS and TCA files, build icon set register
                $handler->generate();
                // Get all icons registered from skins, merge with core icon list
-               $availableSkinIcons = (array) $GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'];
+               $availableSkinIcons = (array)$GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'];
                if (isset($GLOBALS['TBE_STYLES']['skins']) && is_array($GLOBALS['TBE_STYLES']['skins'])) {
                        foreach ($GLOBALS['TBE_STYLES']['skins'] as $skinData) {
                                $availableSkinIcons = array_merge($availableSkinIcons, (array)$skinData['availableSpriteIcons']);
@@ -100,7 +100,7 @@ class SpriteManager {
                }
                // Merge icon names provided by the skin, with
                // registered "complete sprites" and the handler class
-               $iconNames = array_merge($availableSkinIcons, (array) $GLOBALS['TBE_STYLES']['spritemanager']['spriteIconsAvailable'], $handler->getAvailableIconNames());
+               $iconNames = array_merge($availableSkinIcons, (array)$GLOBALS['TBE_STYLES']['spritemanager']['spriteIconsAvailable'], $handler->getAvailableIconNames());
                $GLOBALS['TBE_STYLES']['spriteIconApi']['iconsAvailable'] = $iconNames;
 
                $cacheFileContent = '$GLOBALS[\'TBE_STYLES\'][\'spriteIconApi\'][\'iconsAvailable\'] = ';
@@ -134,7 +134,7 @@ class SpriteManager {
         * @return void
         */
        static public function addIconSprite(array $icons, $styleSheetFile = '') {
-               $GLOBALS['TBE_STYLES']['spritemanager']['spriteIconsAvailable'] = array_merge((array) $GLOBALS['TBE_STYLES']['spritemanager']['spriteIconsAvailable'], $icons);
+               $GLOBALS['TBE_STYLES']['spritemanager']['spriteIconsAvailable'] = array_merge((array)$GLOBALS['TBE_STYLES']['spritemanager']['spriteIconsAvailable'], $icons);
                if ($styleSheetFile !== '') {
                        $GLOBALS['TBE_STYLES']['spritemanager']['cssFiles'][] = $styleSheetFile;
                }
index 2dcc4dd..0fb0cee 100644 (file)
@@ -347,7 +347,7 @@ function jumpToUrl(URL) {
                // Initializes the page rendering object:
                $this->getPageRenderer();
                // Setting default scriptID:
-               if (($temp_M = (string) GeneralUtility::_GET('M')) && $GLOBALS['TBE_MODULES']['_PATHS'][$temp_M]) {
+               if (($temp_M = (string)GeneralUtility::_GET('M')) && $GLOBALS['TBE_MODULES']['_PATHS'][$temp_M]) {
                        $this->scriptID = preg_replace('/^.*\\/(sysext|ext)\\//', 'ext/', $GLOBALS['TBE_MODULES']['_PATHS'][$temp_M] . 'index.php');
                } else {
                        $this->scriptID = preg_replace('/^.*\\/(sysext|ext)\\//', 'ext/', \TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix(PATH_thisScript));
@@ -622,7 +622,7 @@ function jumpToUrl(URL) {
         */
        public function makeShortcutUrl($gvList, $setList) {
                $GET = GeneralUtility::_GET();
-               $storeArray = array_merge(GeneralUtility::compileSelectedGetVarsFromArray($gvList, $GET), array('SET' => GeneralUtility::compileSelectedGetVarsFromArray($setList, (array) $GLOBALS['SOBE']->MOD_SETTINGS)));
+               $storeArray = array_merge(GeneralUtility::compileSelectedGetVarsFromArray($gvList, $GET), array('SET' => GeneralUtility::compileSelectedGetVarsFromArray($setList, (array)$GLOBALS['SOBE']->MOD_SETTINGS)));
                $storeUrl = GeneralUtility::implodeArrayForUrl('', $storeArray);
                return $storeUrl;
        }
@@ -725,7 +725,7 @@ function jumpToUrl(URL) {
         * @return void
         */
        public function useCompatibilityTag($useCompatibilityTag = TRUE) {
-               $this->useCompatibilityTag = (bool) $useCompatibilityTag;
+               $this->useCompatibilityTag = (bool)$useCompatibilityTag;
        }
 
        /*****************************************
index 2da35a4..1613c0c 100644 (file)
@@ -89,7 +89,7 @@ class ClearCacheToolbarItem implements ToolbarItemHookInterface {
                // or if the system runs in development mode
                // or if $GLOBALS['TYPO3_CONF_VARS']['SYS']['clearCacheSystem'] is set (only for admins)
                if ($backendUser->getTSConfigVal('options.clearCache.system') || GeneralUtility::getApplicationContext()->isDevelopment()
-                       || ((bool) $GLOBALS['TYPO3_CONF_VARS']['SYS']['clearCacheSystem'] === TRUE && $backendUser->isAdmin())) {
+                       || ((bool)$GLOBALS['TYPO3_CONF_VARS']['SYS']['clearCacheSystem'] === TRUE && $backendUser->isAdmin())) {
                        $this->cacheActions[] = array(
                                'id' => 'system',
                                'title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:flushSystemCachesTitle', TRUE),
index 45bc753..5abe600 100644 (file)
@@ -102,7 +102,7 @@ class ShortcutToolbarItem implements \TYPO3\CMS\Backend\Toolbar\ToolbarItemHookI
         * @return bool TRUE if user has access, FALSE if not
         */
        public function checkAccess() {
-               return (bool) $GLOBALS['BE_USER']->getTSConfigVal('options.enableBookmarks');
+               return (bool)$GLOBALS['BE_USER']->getTSConfigVal('options.enableBookmarks');
        }
 
        /**
index 17198d2..07cae02 100644 (file)
@@ -469,7 +469,7 @@ class ExtDirectNode extends \TYPO3\CMS\Backend\Tree\TreeNode {
         * @return void
         */
        public function setRecord($record) {
-               $this->record = (array) $record;
+               $this->record = (array)$record;
        }
 
        /**
@@ -488,7 +488,7 @@ class ExtDirectNode extends \TYPO3\CMS\Backend\Tree\TreeNode {
         * @return void
         */
        public function setContextInfo($contextInfo) {
-               $this->contextInfo = (array) $contextInfo;
+               $this->contextInfo = (array)$contextInfo;
        }
 
        /**
@@ -497,7 +497,7 @@ class ExtDirectNode extends \TYPO3\CMS\Backend\Tree\TreeNode {
         * @return array
         */
        public function getContextInfo() {
-               return (array) $this->contextInfo;
+               return (array)$this->contextInfo;
        }
 
        /**
index 1406d6b..401e7ba 100644 (file)
@@ -32,7 +32,7 @@ class ExtdirectTreeCommands {
         */
        public function visiblyNode($nodeData) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                try {
                        Commands::visiblyNode($node);
                        $newNode = Commands::getNode($node->getId());
@@ -55,7 +55,7 @@ class ExtdirectTreeCommands {
         */
        public function disableNode($nodeData) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                try {
                        Commands::disableNode($node);
                        $newNode = Commands::getNode($node->getId());
@@ -78,7 +78,7 @@ class ExtdirectTreeCommands {
         */
        public function deleteNode($nodeData) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                try {
                        Commands::deleteNode($node);
                        $returnValue = array();
@@ -107,7 +107,7 @@ class ExtdirectTreeCommands {
         */
        public function restoreNode($nodeData, $destination) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                try {
                        Commands::restoreNode($node, $destination);
                        $newNode = Commands::getNode($node->getId());
@@ -134,7 +134,7 @@ class ExtdirectTreeCommands {
                        return array();
                }
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                try {
                        Commands::updateNodeLabel($node, $updatedLabel);
                        $shortendedText = GeneralUtility::fixed_lgd_cs($updatedLabel, (int)$GLOBALS['BE_USER']->uc['titleLen']);
@@ -159,7 +159,7 @@ class ExtdirectTreeCommands {
         */
        static public function setTemporaryMountPoint($nodeData) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                $GLOBALS['BE_USER']->uc['pageTree_temporaryMountPoint'] = $node->getId();
                $GLOBALS['BE_USER']->writeUC($GLOBALS['BE_USER']->uc);
                return Commands::getMountPointPath();
@@ -174,7 +174,7 @@ class ExtdirectTreeCommands {
         */
        public function moveNodeToFirstChildOfDestination($nodeData, $destination) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                try {
                        Commands::moveNode($node, $destination);
                        $newNode = Commands::getNode($node->getId(), FALSE);
@@ -198,7 +198,7 @@ class ExtdirectTreeCommands {
         */
        public function moveNodeAfterDestination($nodeData, $destination) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                try {
                        Commands::moveNode($node, -$destination);
                        $newNode = Commands::getNode($node->getId(), FALSE);
@@ -223,7 +223,7 @@ class ExtdirectTreeCommands {
         */
        public function copyNodeToFirstChildOfDestination($nodeData, $destination) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                /** @var $dataProvider \TYPO3\CMS\Backend\Tree\Pagetree\DataProvider */
                $dataProvider = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\DataProvider');
                try {
@@ -250,7 +250,7 @@ class ExtdirectTreeCommands {
         */
        public function copyNodeAfterDestination($nodeData, $destination) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                /** @var $dataProvider \TYPO3\CMS\Backend\Tree\Pagetree\DataProvider */
                $dataProvider = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\DataProvider');
                try {
@@ -276,7 +276,7 @@ class ExtdirectTreeCommands {
         */
        public function insertNodeToFirstChildOfDestination($parentNodeData, $pageType) {
                /** @var $parentNode \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $parentNode = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $parentNodeData);
+               $parentNode = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$parentNodeData);
                try {
                        $newPageId = Commands::createNode($parentNode, $parentNode->getId(), $pageType);
                        $returnValue = Commands::getNode($newPageId)->toArray();
@@ -299,7 +299,7 @@ class ExtdirectTreeCommands {
         */
        public function insertNodeAfterDestination($parentNodeData, $destination, $pageType) {
                /** @var $parentNode \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $parentNode = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $parentNodeData);
+               $parentNode = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$parentNodeData);
                try {
                        $newPageId = Commands::createNode($parentNode, -$destination, $pageType);
                        $returnValue = Commands::getNode($newPageId)->toArray();
@@ -320,7 +320,7 @@ class ExtdirectTreeCommands {
         */
        static public function getViewLink($nodeData) {
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                $javascriptLink = BackendUtility::viewOnClick($node->getId());
                preg_match('/window\\.open\\(\'([^\']+)\'/i', $javascriptLink, $match);
                return $match[1];
@@ -368,7 +368,7 @@ class ExtdirectTreeCommands {
                        }
                }
                $userSettings->set('BackendComponents.States.' . $stateId, $state);
-               return (array) $state->stateHash;
+               return (array)$state->stateHash;
        }
 
 }
index 0c013d8..fc60c58 100644 (file)
@@ -63,7 +63,7 @@ class ExtdirectTreeDataProvider extends \TYPO3\CMS\Backend\Tree\AbstractExtJsTre
        public function getNextTreeLevel($nodeId, $nodeData) {
                $this->initDataProvider();
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                if ($nodeId === 'root') {
                        $nodeCollection = $this->dataProvider->getTreeMounts();
                } else {
@@ -85,7 +85,7 @@ class ExtdirectTreeDataProvider extends \TYPO3\CMS\Backend\Tree\AbstractExtJsTre
                        return array();
                }
                /** @var $node \TYPO3\CMS\Backend\Tree\Pagetree\PagetreeNode */
-               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array) $nodeData);
+               $node = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\Pagetree\\PagetreeNode', (array)$nodeData);
                $this->initDataProvider();
                if ($nodeId === 'root') {
                        $nodeCollection = $this->dataProvider->getTreeMounts($searchFilter);
index be2da57..3f10d5b 100644 (file)
@@ -217,12 +217,12 @@ class BackendUtility {
         */
        static public function getSQLselectableList($in_list, $tablename, $default_tablename) {
                $list = array();
-               if ((string) trim($in_list) != '') {
+               if ((string)trim($in_list) != '') {
                        $tempItemArray = explode(',', trim($in_list));
                        foreach ($tempItemArray as $key => $val) {
                                $val = strrev($val);
                                $parts = explode('_', $val, 2);
-                               if ((string) trim($parts[0]) != '') {
+                               if ((string)trim($parts[0]) != '') {
                                        $theID = (int)strrev($parts[0]);
                                        $theTable = trim($parts[1]) ? strrev(trim($parts[1])) : $default_tablename;
                                        if ($theTable == $tablename) {
@@ -572,7 +572,7 @@ class BackendUtility {
                                                                if ((string)$iVal[1] !== '') {
                                                                        // Find iMode
                                                                        $iMode = '';
-                                                                       switch ((string) $fCfg['authMode']) {
+                                                                       switch ((string)$fCfg['authMode']) {
                                                                                case 'explicitAllow':
                                                                                        $iMode = 'ALLOW';
                                                                                        break;
@@ -821,7 +821,7 @@ class BackendUtility {
                        $typeNum = $GLOBALS['TCA'][$table]['types']['0'] ? 0 : 1;
                }
                // Force to string. Necessary for eg '-1' to be recognized as a type value.
-               $typeNum = (string) $typeNum;
+               $typeNum = (string)$typeNum;
                return $typeNum;
        }
 
@@ -2096,7 +2096,7 @@ class BackendUtility {
                $l = '';
                $db = static::getDatabaseConnection();
                $lang = static::getLanguageService();
-               switch ((string) $theColConf['type']) {
+               switch ((string)$theColConf['type']) {
                        case 'radio':
                                $l = self::getLabelFromItemlist($table, $col, $value);
                                $l = $lang->sL($l);
@@ -2747,7 +2747,7 @@ class BackendUtility {
                        $urlParts = parse_url($domain);
                        /** @var PageRepository $sysPage */
                        $sysPage = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
-                       $page = (array) $sysPage->getPage($pageId);
+                       $page = (array)$sysPage->getPage($pageId);
                        $protocol = 'http';
                        if ($page['url_scheme'] == HttpUtility::SCHEME_HTTPS || $page['url_scheme'] == 0 && GeneralUtility::getIndpEnv('TYPO3_SSL')) {
                                $protocol = 'https';
@@ -3052,14 +3052,14 @@ class BackendUtility {
                                        if (is_array($var) && (!$dontValidateList || !GeneralUtility::inList($dontValidateList, $key))) {
                                                // If the setting is an array or not present in the menu-array, MOD_MENU, then the default value is inserted.
                                                if (is_array($settings[$key]) || !isset($MOD_MENU[$key][$settings[$key]])) {
-                                                       $settings[$key] = (string) key($var);
+                                                       $settings[$key] = (string)key($var);
                                                        $changed = 1;
                                                }
                                        }
                                        // Sets default values (only strings/checkboxes, not menus)
                                        if ($setDefaultList && !is_array($var)) {
                                                if (GeneralUtility::inList($setDefaultList, $key) && !isset($settings[$key])) {
-                                                       $settings[$key] = (string) $var;
+                                                       $settings[$key] = (string)$var;
                                                }
                                        }
                                }
index 0eeb574..e0100bf 100644 (file)
@@ -608,7 +608,7 @@ class IconUtility {
                }
 
                $availableIcons = isset($GLOBALS['TBE_STYLES']['spriteIconApi']['iconsAvailable'])
-                       ? (array) $GLOBALS['TBE_STYLES']['spriteIconApi']['iconsAvailable']
+                       ? (array)$GLOBALS['TBE_STYLES']['spriteIconApi']['iconsAvailable']
                        : array();
                if ($iconName !== 'empty-empty' && !in_array($iconName, $availableIcons, TRUE)) {
                        $iconName = 'status-status-icon-missing';
index c0f8f98..d60d18c 100644 (file)
@@ -56,7 +56,7 @@ class DefaultDataProvider implements DataProviderInterface {
        public function getBackendLayout($identifier, $pageId) {
                $backendLayout = NULL;
 
-               if ((string) $identifier === 'default') {
+               if ((string)$identifier === 'default') {
                        return $this->createDefaultBackendLayout();
                }
 
index 7d7f076..17db832 100644 (file)
@@ -64,7 +64,7 @@ class BackendLayoutView implements \TYPO3\CMS\Core\SingletonInterface {
                );
 
                if (!empty($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['BackendLayoutDataProvider'])) {
-                       $dataProviders = (array) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['BackendLayoutDataProvider'];
+                       $dataProviders = (array)$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['BackendLayoutDataProvider'];
                        foreach ($dataProviders as $identifier => $className) {
                                $dataProviderCollection->add($identifier, $className);
                        }
@@ -96,7 +96,7 @@ class BackendLayoutView implements \TYPO3\CMS\Core\SingletonInterface {
         */
        public function addBackendLayoutItems(array $parameters) {
                $pageId = $this->determinePageId($parameters['table'], $parameters['row']);
-               $pageTsConfig = (array) BackendUtility::getPagesTSconfig($pageId);
+               $pageTsConfig = (array)BackendUtility::getPagesTSconfig($pageId);
                $identifiersToBeExcluded = $this->getIdentifiersToBeExcluded($pageTsConfig);
 
                $dataProviderContext = $this->createDataProviderContext()
@@ -170,7 +170,7 @@ class BackendLayoutView implements \TYPO3\CMS\Core\SingletonInterface {
        public function getSelectedCombinedIdentifier($pageId) {
                if (!isset($this->selectedCombinedIdentifier[$pageId])) {
                        $page = $this->getPage($pageId);
-                       $this->selectedCombinedIdentifier[$pageId] = (string) $page['backend_layout'];
+                       $this->selectedCombinedIdentifier[$pageId] = (string)$page['backend_layout'];
 
                        if ($this->selectedCombinedIdentifier[$pageId] === '-1') {
                                // If it is set to "none" - don't use any
@@ -183,7 +183,7 @@ class BackendLayoutView implements \TYPO3\CMS\Core\SingletonInterface {
                                array_shift($rootLine);
                                array_pop($rootLine);
                                foreach ($rootLine as $rootLinePage) {
-                                       $this->selectedCombinedIdentifier[$pageId] = (string) $rootLinePage['backend_layout_next_level'];
+                                       $this->selectedCombinedIdentifier[$pageId] = (string)$rootLinePage['backend_layout_next_level'];
                                        if ($this->selectedCombinedIdentifier[$pageId] === '-1') {
                                                // If layout for "next level" is set to "none" - don't use any and stop searching
                                                $this->selectedCombinedIdentifier[$pageId] = FALSE;
index b9b137c..01f18f2 100644 (file)
@@ -476,7 +476,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                                        $editUidList = '';
                                        $rowArr = $contentRecordsPerColumn[$key];
                                        $this->generateTtContentDataArray($rowArr);
-                                       foreach ((array) $rowArr as $rKey => $row) {
+                                       foreach ((array)$rowArr as $rKey => $row) {
                                                if ($this->tt_contentConfig['languageMode']) {
                                                        $languageColumn[$key][$lP] = $head[$key] . $content[$key];
                                                        if (!$this->defLangBinding) {
index 92dab95..164853c 100644 (file)
@@ -230,7 +230,7 @@ class Constraint extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
         * @return bool
         */
        public function getGroupByPage() {
-               return (bool) $this->groupByPage;
+               return (bool)$this->groupByPage;
        }
 
        /**
@@ -325,7 +325,7 @@ class Constraint extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
         * @return bool
         */
        public function getIsInPageContext() {
-               return (bool) $this->isInPageContext;
+               return (bool)$this->isInPageContext;
        }
 
        /**
index a20a838..409c4ea 100644 (file)
@@ -483,9 +483,9 @@ abstract class AbstractUserAuthentication {
                        // If the cookie lifetime is set, use it:
                        $cookieExpire = $isRefreshTimeBasedCookie ? $GLOBALS['EXEC_TIME'] + $this->lifetime : 0;
                        // Use the secure option when the current request is served by a secure connection:
-                       $cookieSecure = (bool) $settings['cookieSecure'] && GeneralUtility::getIndpEnv('TYPO3_SSL');
+                       $cookieSecure = (bool)$settings['cookieSecure'] && GeneralUtility::getIndpEnv('TYPO3_SSL');
                        // Deliver cookies only via HTTP and prevent possible XSS by JavaScript:
-                       $cookieHttpOnly = (bool) $settings['cookieHttpOnly'];
+                       $cookieHttpOnly = (bool)$settings['cookieHttpOnly'];
                        // Do not set cookie if cookieSecure is set to "1" (force HTTPS) and no secure channel is used:
                        if ((int)$settings['cookieSecure'] !== 1 || GeneralUtility::getIndpEnv('TYPO3_SSL')) {
                                setcookie($this->name, $this->id, $cookieExpire, $cookiePath, $cookieDomain, $cookieSecure, $cookieHttpOnly);
@@ -855,7 +855,7 @@ abstract class AbstractUserAuthentication {
                );
                // Re-create session entry
                $insertFields = $this->getNewSessionRecord($tempuser);
-               $inserted = (boolean) $this->db->exec_INSERTquery($this->session_table, $insertFields);
+               $inserted = (bool)$this->db->exec_INSERTquery($this->session_table, $insertFields);
                if (!$inserted) {
                        $message = 'Session data could not be written to DB. Error: ' . $this->db->sql_error();
                        GeneralUtility::sysLog($message, 'Core', GeneralUtility::SYSLOG_SEVERITY_WARNING);
index c61dce7..608988c 100644 (file)
@@ -629,7 +629,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
                $testValue = $table . ':' . $field . ':' . $value;
                $out = TRUE;
                // Checking value:
-               switch ((string) $authMode) {
+               switch ((string)$authMode) {
                        case 'explicitAllow':
                                if (!GeneralUtility::inList($this->groupData['explicit_allowdeny'], ($testValue . ':ALLOW'))) {
                                        $out = FALSE;
@@ -725,7 +725,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
         * It only deal with record internals; If any values in the record fields disallows it.
         * For instance languages settings, authMode selector boxes are evaluated (and maybe more in the future).
         * It will check for workspace dependent access.
-        * The function takes an ID (integer) or row (array) as second argument.
+        * The function takes an ID (int) or row (array) as second argument.
         *
         * @param string $table Table name
         * @param mixed $idOrRow If integer, then this is the ID of the record. If Array this just represents fields in the record.
@@ -1210,7 +1210,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
         * @return array
         */
        public function returnWebmounts() {
-               return (string) $this->groupData['webmounts'] != '' ? explode(',', $this->groupData['webmounts']) : array();
+               return (string)$this->groupData['webmounts'] != '' ? explode(',', $this->groupData['webmounts']) : array();
        }
 
        /**
@@ -1465,7 +1465,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
         * @access private
         */
        public function setCachedList($cList) {
-               if ((string) $cList != (string) $this->user['usergroup_cached_list']) {
+               if ((string)$cList != (string)$this->user['usergroup_cached_list']) {
                        $this->db->exec_UPDATEquery('be_users', 'uid=' . (int)$this->user['uid'], array('usergroup_cached_list' => $cList));
                }
        }
@@ -1762,7 +1762,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
                                        array_walk(
                                                $permissionsTsConfig,
                                                function($value, $permission) use (&$filePermissions) {
-                                                       $filePermissions[$permission] = (bool) $value;
+                                                       $filePermissions[$permission] = (bool)$value;
                                                }
                                        );
                                }
@@ -1790,7 +1790,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
                                array_walk(
                                        $storageFilePermissions,
                                        function($value, $permission) use (&$finalUserPermissions) {
-                                               $finalUserPermissions[$permission] = (bool) $value;
+                                               $finalUserPermissions[$permission] = (bool)$value;
                                        }
                                );
                        }
@@ -1935,7 +1935,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
                $retVal = FALSE;
                // If not array, look up workspace record:
                if (!is_array($wsRec)) {
-                       switch ((string) $wsRec) {
+                       switch ((string)$wsRec) {
                                case '0':
                                        $wsRec = array('uid' => $wsRec);
                                        break;
@@ -1955,7 +1955,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
                        if ($this->isAdmin()) {
                                return array_merge($wsRec, array('_ACCESS' => 'admin'));
                        } else {
-                               switch ((string) $wsRec['uid']) {
+                               switch ((string)$wsRec['uid']) {
                                        case '0':
                                                $retVal = $this->groupData['workspace_perms'] & 1
                                                        ? array_merge($wsRec, array('_ACCESS' => 'online'))
@@ -2134,7 +2134,7 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
                        'log_data' => serialize($data),
                        'tablename' => $tablename,
                        'recuid' => (int)$recuid,
-                       'IP' => (string) GeneralUtility::getIndpEnv('REMOTE_ADDR'),
+                       'IP' => (string)GeneralUtility::getIndpEnv('REMOTE_ADDR'),
                        'tstamp' => $GLOBALS['EXEC_TIME'],
                        'event_pid' => (int)$event_pid,
                        'NEWid' => $NEWid,
@@ -2365,7 +2365,7 @@ This is a dump of the failures:
         * @internal
         */
        public function overrideUC() {
-               $this->uc = array_merge((array) $this->uc, (array) $this->getTSConfigProp('setup.override'));
+               $this->uc = array_merge((array)$this->uc, (array)$this->getTSConfigProp('setup.override'));
        }
 
        /**
index da38ec1..4251ff2 100644 (file)
@@ -201,7 +201,7 @@ class ApcBackend extends \TYPO3\CMS\Core\Cache\Backend\AbstractBackend implement
                if ($success === FALSE) {
                        return array();
                } else {
-                       return (array) $identifiers;
+                       return (array)$identifiers;
                }
        }
 
@@ -215,7 +215,7 @@ class ApcBackend extends \TYPO3\CMS\Core\Cache\Backend\AbstractBackend implement
        protected function findTagsByIdentifier($identifier) {
                $success = FALSE;
                $tags = apc_fetch($this->getIdentifierPrefix() . 'ident_' . $identifier, $success);
-               return $success ? (array) $tags : array();
+               return $success ? (array)$tags : array();
        }
 
        /**
index 0705e3d..39eb7f5 100644 (file)
@@ -273,7 +273,7 @@ class MemcachedBackend extends \TYPO3\CMS\Core\Cache\Backend\AbstractBackend imp
        public function findIdentifiersByTag($tag) {
                $identifiers = $this->memcache->get($this->identifierPrefix . 'tag_' . $tag);
                if ($identifiers !== FALSE) {
-                       return (array) $identifiers;
+                       return (array)$identifiers;
                } else {
                        return array();
                }
@@ -380,7 +380,7 @@ class MemcachedBackend extends \TYPO3\CMS\Core\Cache\Backend\AbstractBackend imp
         */
        protected function findTagsByIdentifier($identifier) {
                $tags = $this->memcache->get($this->identifierPrefix . 'ident_' . $identifier);
-               return $tags === FALSE ? array() : (array) $tags;
+               return $tags === FALSE ? array() : (array)$tags;
        }
 
        /**
index ef15232..9891529 100644 (file)
@@ -136,7 +136,7 @@ class WincacheBackend extends \TYPO3\CMS\Core\Cache\Backend\AbstractBackend impl
                if ($success === FALSE) {
                        return array();
                } else {
-                       return (array) $identifiers;
+                       return (array)$identifiers;
                }
        }
 
@@ -150,7 +150,7 @@ class WincacheBackend extends \TYPO3\CMS\Core\Cache\Backend\AbstractBackend impl
        protected function findTagsByIdentifier($identifier) {
                $success = FALSE;
                $tags = wincache_ucache_get($this->identifierPrefix . 'ident_' . $identifier, $success);
-               return $success ? (array) $tags : array();
+               return $success ? (array)$tags : array();
        }
 
        /**
index 2508b78..eed10ae 100644 (file)
@@ -310,10 +310,10 @@ abstract class AbstractConditionMatcher {
                                        $value = trim($GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask']);
                                }
 
-                               return (bool) GeneralUtility::cmpIP(GeneralUtility::getIndpEnv('REMOTE_ADDR'), $value);
+                               return (bool)GeneralUtility::cmpIP(GeneralUtility::getIndpEnv('REMOTE_ADDR'), $value);
                                break;
                        case 'hostname':
-                               return (bool) GeneralUtility::cmpFQDN(GeneralUtility::getIndpEnv('REMOTE_ADDR'), $value);
+                               return (bool)GeneralUtility::cmpFQDN(GeneralUtility::getIndpEnv('REMOTE_ADDR'), $value);
                                break;
                        case 'hour':
 
@@ -482,7 +482,7 @@ abstract class AbstractConditionMatcher {
                        $splitAgain = explode('|', $vars[1], 2);
                        $k = trim($splitAgain[0]);
                        if ($k) {
-                               switch ((string) trim($vars[0])) {
+                               switch ((string)trim($vars[0])) {
                                        case 'GP':
                                                $value = GeneralUtility::_GP($k);
                                                break;
index 23fc697..62a0567 100644 (file)
@@ -257,7 +257,7 @@ class Bootstrap {
        public function initializeClassLoader() {
                $classLoader = new ClassLoader($this->applicationContext);
                $this->setEarlyInstance('TYPO3\\CMS\\Core\\Core\\ClassLoader', $classLoader);
-               $classLoader->setRuntimeClassLoadingInformationFromAutoloadRegistry((array) include __DIR__ . '/../../ext_autoload.php');
+               $classLoader->setRuntimeClassLoadingInformationFromAutoloadRegistry((array)include __DIR__ . '/../../ext_autoload.php');
                $classAliasMap = new ClassAliasMap();
                $classAliasMap->injectClassLoader($classLoader);
                $this->setEarlyInstance('TYPO3\\CMS\\Core\\Core\\ClassAliasMap', $classAliasMap);
index 82db741..80ac506 100644 (file)
@@ -1409,7 +1409,7 @@ class DataHandler {
                                if (!$this->dontProcessTransformations) {
                                        if (isset($fieldArray[$vconf['field']])) {
                                                // Look for transformation flag:
-                                               switch ((string) $incomingFieldArray[('_TRANSFORM_' . $vconf['field'])]) {
+                                               switch ((string)$incomingFieldArray[('_TRANSFORM_' . $vconf['field'])]) {
                                                        case 'RTE':
                                                                $RTEsetup = $this->BE_USER->getTSConfig('RTE', BackendUtility::getPagesTSconfig($tscPID));
                                                                $thisConfig = BackendUtility::RTEsetup($RTEsetup['properties'], $table, $vconf['field'], $theTypeString);
@@ -3953,7 +3953,7 @@ class DataHandler {
         * @param string $table Table name
         * @param int $uid Record uid (to be localized)
         * @param int $language Language ID (from sys_language table)
-        * @return mixed The uid (integer) of the new translated record or FALSE (boolean) if something went wrong
+        * @return mixed The uid (int) of the new translated record or FALSE (bool) if something went wrong
         */
        public function localize($table, $uid, $language) {
                $newId = FALSE;
@@ -4060,7 +4060,7 @@ class DataHandler {
         *
         * @param string $table The table of the localized parent record
         * @param int $id The uid of the localized parent record
-        * @param string $command Defines the type 'localize' or 'synchronize' (string) or a single uid to be localized (integer)
+        * @param string $command Defines the type 'localize' or 'synchronize' (string) or a single uid to be localized (int)
         * @return void
         */
        protected function inlineLocalizeSynchronize($table, $id, $command) {
@@ -7002,7 +7002,7 @@ class DataHandler {
                        case 'temp_cached':
                        case 'system':
                                if ($this->admin || $this->BE_USER->getTSConfigVal('options.clearCache.system')
-                                       || ((bool) $GLOBALS['TYPO3_CONF_VARS']['SYS']['clearCacheSystem'] === TRUE && $this->admin)) {
+                                       || ((bool)$GLOBALS['TYPO3_CONF_VARS']['SYS']['clearCacheSystem'] === TRUE && $this->admin)) {
                                        $this->getCacheManager()->flushCachesInGroup('system');
                                }
                                break;
@@ -7264,7 +7264,7 @@ class DataHandler {
         * @return bool
         */
        protected function isNestedElementCallRegistered($table, $id, $identifier) {
-               $nestedElementCalls = (array) $this->getMemoryCache()->get('nestedElementCalls');
+               $nestedElementCalls = (array)$this->getMemoryCache()->get('nestedElementCalls');
                return isset($nestedElementCalls[$identifier][$table][$id]);
        }
 
@@ -7278,7 +7278,7 @@ class DataHandler {
         * @return void
         */
        protected function registerNestedElementCall($table, $id, $identifier) {
-               $nestedElementCalls = (array) $this->getMemoryCache()->get('nestedElementCalls');
+               $nestedElementCalls = (array)$this->getMemoryCache()->get('nestedElementCalls');
                $nestedElementCalls[$identifier][$table][$id] = TRUE;
                $this->getMemoryCache()->set('nestedElementCalls', $nestedElementCalls);
        }
@@ -7304,7 +7304,7 @@ class DataHandler {
         * @see versionizeRecord
         */
        protected function isElementToBeDeleted($table, $id) {
-               $elementsToBeDeleted = (array) $this->getMemoryCache()->get('core-t3lib_TCEmain-elementsToBeDeleted');
+               $elementsToBeDeleted = (array)$this->getMemoryCache()->get('core-t3lib_TCEmain-elementsToBeDeleted');
                return isset($elementsToBeDeleted[$table][$id]);
        }
 
@@ -7315,7 +7315,7 @@ class DataHandler {
         * @see process_datamap
         */
        protected function registerElementsToBeDeleted() {
-               $elementsToBeDeleted = (array) $this->getMemoryCache()->get('core-t3lib_TCEmain-elementsToBeDeleted');
+               $elementsToBeDeleted = (array)$this->getMemoryCache()->get('core-t3lib_TCEmain-elementsToBeDeleted');
                $this->getMemoryCache()->set('core-t3lib_TCEmain-elementsToBeDeleted', array_merge($elementsToBeDeleted, $this->getCommandMapElements('delete')));
        }
 
index 6f45020..2f8b2bd 100644 (file)
@@ -36,7 +36,7 @@ class TableColumnSubType extends \TYPO3\CMS\Core\Type\Enumeration {
         */
        public function __construct($subType = NULL) {
                if ($subType !== NULL) {
-                       $subType = strtoupper((string) $subType);
+                       $subType = strtoupper((string)$subType);
                }
 
                parent::__construct($subType);
index b770dde..28c4305 100644 (file)
@@ -41,7 +41,7 @@ class TableColumnType extends \TYPO3\CMS\Core\Type\Enumeration {
         */
        public function __construct($type = NULL) {
                if ($type !== NULL) {
-                       $type = strtoupper((string) $type);
+                       $type = strtoupper((string)$type);
                }
 
                parent::__construct($type);
index 6ab5188..e115bd3 100644 (file)
@@ -409,7 +409,7 @@ class DatabaseConnection {
         * @param string $field Name of the field to use in the COUNT() expression (e.g. '*')
         * @param string $table Name of the table to count rows for
         * @param string $where (optional) WHERE statement of the query
-        * @return mixed Number of rows counter (integer) or FALSE if something went wrong (boolean)
+        * @return mixed Number of rows counter (int) or FALSE if something went wrong (bool)
         */
        public function exec_SELECTcountRows($field, $table, $where = '') {
                $count = FALSE;
index b4d2edc..824920b 100644 (file)
@@ -520,7 +520,7 @@ class QueryView {
                $out .= '<td nowrap>';
                if (!$row['deleted']) {
                        $out .= '<a href="#" onClick="top.launchView(\'' . $table . '\',' . $row['uid'] . ',\'' . $GLOBALS['BACK_PATH'] . '\');return false;">' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('status-dialog-information') . '</a>';
-                       $out .= '<a href="#" onClick="' . BackendUtility::editOnClick($params, $GLOBALS['BACK_PATH'], (GeneralUtility::getIndpEnv('REQUEST_URI') . GeneralUtility::implodeArrayForUrl('SET', (array) GeneralUtility::_POST('SET')))) . '">' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-open') . '</a>';
+                       $out .= '<a href="#" onClick="' . BackendUtility::editOnClick($params, $GLOBALS['BACK_PATH'], (GeneralUtility::getIndpEnv('REQUEST_URI') . GeneralUtility::implodeArrayForUrl('SET', (array)GeneralUtility::_POST('SET')))) . '">' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-open') . '</a>';
                } else {
                        $out .= '<a href="' . GeneralUtility::linkThisUrl(($GLOBALS['BACK_PATH'] . 'tce_db.php'), array(
                                ('cmd[' . $table . '][' . $row['uid'] . '][undelete]') => '1',
index 36e9823..29b6c1f 100644 (file)
@@ -175,7 +175,7 @@ class ReferenceIndex {
                                $this->relations = array();
                                foreach ($dbrels as $fieldname => $dat) {
                                        // Based on type,
-                                       switch ((string) $dat['type']) {
+                                       switch ((string)$dat['type']) {
                                                case 'db':
                                                        $this->createEntryData_dbRels($table, $uid, $fieldname, '', $deleted, $dat['itemArray']);
                                                        break;
@@ -311,7 +311,7 @@ class ReferenceIndex {
                                if (is_array($elements)) {
                                        foreach ($elements as $subKey => $el) {
                                                if (is_array($el['subst'])) {
-                                                       switch ((string) $el['subst']['type']) {
+                                                       switch ((string)$el['subst']['type']) {
                                                                case 'db':
                                                                        list($tableName, $recordId) = explode(':', $el['subst']['recordRef']);
                                                                        $this->relations[] = $this->createEntryData($table, $uid, $fieldname, $flexpointer, $deleted, $tableName, $recordId, '', -1, $spKey, $subKey);
@@ -655,7 +655,7 @@ class ReferenceIndex {
                                                        // Initialize data array that is to be sent to TCEmain afterwards:
                                                        $dataArray = array();
                                                        // Based on type,
-                                                       switch ((string) $dat['type']) {
+                                                       switch ((string)$dat['type']) {
                                                                case 'db':
                                                                        $error = $this->setReferenceValue_dbRels($refRec, $dat['itemArray'], $newValue, $dataArray);
                                                                        if ($error) {
index 716980e..b1dcf4c 100644 (file)
@@ -256,7 +256,7 @@ class RelationHandler {
        public function start($itemlist, $tablelist, $MMtable = '', $MMuid = 0, $currentTable = '', $conf = array()) {
                $conf = (array)$conf;
                // SECTION: MM reverse relations
-               $this->MM_is_foreign = (boolean)$conf['MM_opposite_field'];
+               $this->MM_is_foreign = (bool)$conf['MM_opposite_field'];
                $this->MM_oppositeField = $conf['MM_opposite_field'];
                $this->MM_table_where = $conf['MM_table_where'];
                $this->MM_hasUidField = $conf['MM_hasUidField'];
@@ -342,7 +342,7 @@ class RelationHandler {
         * @param bool $allFields enables fetching of all fields in getFromDB()
         */
        public function setFetchAllFields($allFields) {
-               $this->fetchAllFields = (boolean)$allFields;
+               $this->fetchAllFields = (bool)$allFields;
        }
 
        /**
@@ -352,7 +352,7 @@ class RelationHandler {
         * @return void
         */
        public function setUpdateReferenceIndex($updateReferenceIndex) {
-               $this->updateReferenceIndex = (boolean)$updateReferenceIndex;
+               $this->updateReferenceIndex = (bool)$updateReferenceIndex;
        }
 
        /**
@@ -377,7 +377,7 @@ class RelationHandler {
         * @return void
         */
        public function readList($itemlist, array $configuration) {
-               if ((string) trim($itemlist) != '') {
+               if ((string)trim($itemlist) != '') {
                        $tempItemArray = GeneralUtility::trimExplode(',', $itemlist);
                        // Changed to trimExplode 31/3 04; HMENU special type "list" didn't work
                        // if there were spaces in the list... I suppose this is better overall...
@@ -397,7 +397,7 @@ class RelationHandler {
                                                ? strrev(trim($parts[1]))
                                                : ($this->secondTable && $theID < 0 ? $this->secondTable : $this->firstTable);
                                        // If the ID is not blank and the table name is among the names in the inputted tableList
-                                       if (((string) $theID != '' && $theID) && $theTable && isset($this->tableArray[$theTable])) {
+                                       if (((string)$theID != '' && $theID) && $theTable && isset($this->tableArray[$theTable])) {
                                                // Get ID as the right value:
                                                $theID = $this->secondTable ? abs((int)$theID) : (int)$theID;
                                                // Register ID/table name in internal arrays:
index 16b1d64..4b2a25f 100644 (file)
@@ -677,7 +677,7 @@ class SoftReferenceIndex {
                $elements[$tokenID . ':' . $idx] = array();
                $elements[$tokenID . ':' . $idx]['matchString'] = $content;
                // Based on link type, maybe do more:
-               switch ((string) $tLP['LINK_TYPE']) {
+               switch ((string)$tLP['LINK_TYPE']) {
                        case 'mailto':
 
                        case 'url':
index 5ce9058..06f0f0a 100644 (file)
@@ -166,7 +166,7 @@ Uncaught TYPO3 Exception ' . $exceptionCodeNumber . $exception->getMessage() . L
                                                        $arguments .= '"<span style="color:#FF8700;" title="' . htmlspecialchars($argument) . '">'
                                                                . $preparedArgument . '</span>"';
                                                } elseif (is_numeric($argument)) {
-                                                       $arguments .= '<span style="color:#FF8700;">' . (string) $argument . '</span>';
+                                                       $arguments .= '<span style="color:#FF8700;">' . (string)$argument . '</span>';
                                                } else {
                                                        $arguments .= '<span style="color:#FF8700;"><em>' . gettype($argument) . '</em></span>';
                                                }
index eda3bc1..6ebb715 100644 (file)
@@ -94,8 +94,8 @@ abstract class AbstractFormProtection {
         * @return bool
         */
        public function validateToken($tokenId, $formName, $action = '', $formInstanceName = '') {
-               $validTokenId = \TYPO3\CMS\Core\Utility\GeneralUtility::hmac(((string) $formName . (string) $action) . (string) $formInstanceName . $this->getSessionToken());
-               if ((string) $tokenId === $validTokenId) {
+               $validTokenId = \TYPO3\CMS\Core\Utility\GeneralUtility::hmac(((string)$formName . (string)$action) . (string)$formInstanceName . $this->getSessionToken());
+               if ((string)$tokenId === $validTokenId) {
                        $isValid = TRUE;
                } else {
                        $isValid = FALSE;
index 7d97900..4a10f30 100644 (file)
@@ -154,7 +154,7 @@ class FrontendEditingController {
                        if ($this->TSFE_EDIT['cancel']) {
                                unset($this->TSFE_EDIT['cmd']);
                        } else {
-                               $cmd = (string) $this->TSFE_EDIT['cmd'];
+                               $cmd = (string)$this->TSFE_EDIT['cmd'];
                                if (($cmd != 'edit' || is_array($this->TSFE_EDIT['data']) && ($this->TSFE_EDIT['doSave'] || $this->TSFE_EDIT['update'] || $this->TSFE_EDIT['update_close'])) && $cmd != 'new') {
                                        // $cmd can be a command like "hide" or "move". If $cmd is "edit" or "new" it's an indication to show the formfields. But if data is sent with update-flag then $cmd = edit is accepted because edit may be sent because of .keepGoing flag.
                                        return TRUE;
@@ -173,7 +173,7 @@ class FrontendEditingController {
         */
        public function isEditFormShown() {
                if (is_array($this->TSFE_EDIT)) {
-                       $cmd = (string) $this->TSFE_EDIT['cmd'];
+                       $cmd = (string)$this->TSFE_EDIT['cmd'];
                        if ($cmd == 'edit' || $cmd == 'new') {
                                return TRUE;
                        }
index d7015f5..50d5b1e 100644 (file)
@@ -189,7 +189,7 @@ class RteHtmlParser extends \TYPO3\CMS\Core\Html\HtmlParser {
        public function RTE_transform($value, $specConf, $direction = 'rte', $thisConfig = array()) {
                // Init:
                $this->tsConfig = $thisConfig;
-               $this->procOptions = (array) $thisConfig['proc.'];
+               $this->procOptions = (array)$thisConfig['proc.'];
                $this->preserveTags = strtoupper(implode(',', GeneralUtility::trimExplode(',', $this->procOptions['preserveTags'])));
                // dynamic configuration of blockElementList
                if ($this->procOptions['blockElementList']) {
@@ -1691,7 +1691,7 @@ class RteHtmlParser extends \TYPO3\CMS\Core\Html\HtmlParser {
        protected function applyPlainImageModeSettings($imageInfo, $attribArray) {
                if ($this->procOptions['plainImageMode']) {
                        // Perform corrections to aspect ratio based on configuration
-                       switch ((string) $this->procOptions['plainImageMode']) {
+                       switch ((string)$this->procOptions['plainImageMode']) {
                                case 'lockDimensions':
                                        $attribArray['width'] = $imageInfo[0];
                                        $attribArray['height'] = $imageInfo[1];
index c57dab7..c7b2535 100644 (file)
@@ -55,16 +55,16 @@ class HttpRequest extends \HTTP_Request2 {
                        'connect_timeout' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['connect_timeout'],
                        'timeout' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['timeout'],
                        'protocol_version' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['protocol_version'],
-                       'follow_redirects' => (bool) $GLOBALS['TYPO3_CONF_VARS']['HTTP']['follow_redirects'],
+                       'follow_redirects' => (bool)$GLOBALS['TYPO3_CONF_VARS']['HTTP']['follow_redirects'],
                        'max_redirects' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['max_redirects'],
-                       'strict_redirects' => (bool) $GLOBALS['TYPO3_CONF_VARS']['HTTP']['strict_redirects'],
+                       'strict_redirects' => (bool)$GLOBALS['TYPO3_CONF_VARS']['HTTP']['strict_redirects'],
                        'proxy_host' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_host'],
                        'proxy_port' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_port'],
                        'proxy_user' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_user'],
                        'proxy_password' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_password'],
                        'proxy_auth_scheme' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy_auth_scheme'],
-                       'ssl_verify_peer' => (bool) $GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_verify_peer'],
-                       'ssl_verify_host' => (bool) $GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_verify_host'],
+                       'ssl_verify_peer' => (bool)$GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_verify_peer'],
+                       'ssl_verify_host' => (bool)$GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_verify_host'],
                        // we have to deal with Install Tool limitations and set this to NULL if it is empty
                        'ssl_cafile' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_cafile'] ?: NULL,
                        'ssl_capath' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_capath'] ?: NULL,
index f40fb32..bf1aead 100644 (file)
@@ -1054,7 +1054,7 @@ class GraphicalFunctions {
                        foreach ($sKeyArray as $key) {
                                $cfg = $splitRendering[$key . '.'];
                                // Process each type of split rendering keyword:
-                               switch ((string) $splitRendering[$key]) {
+                               switch ((string)$splitRendering[$key]) {
                                        case 'highlightWord':
                                                if (strlen($cfg['value'])) {
                                                        $newResult = array();
index bbaa120..28490c6 100644 (file)
@@ -189,7 +189,7 @@ class LanguageStore implements \TYPO3\CMS\Core\SingletonInterface {
         */
        public function getParserInstance($fileReference) {
                if (isset($this->configuration[$fileReference]['parserClass']) && trim($this->configuration[$fileReference]['parserClass']) !== '') {
-                       return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance((string) $this->configuration[$fileReference]['parserClass']);
+                       return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance((string)$this->configuration[$fileReference]['parserClass']);
                } else {
                        throw new \TYPO3\CMS\Core\Localization\Exception\InvalidParserException(sprintf('Invalid parser configuration for the current file (%s)', $fileReference), 1307293692);
                }
@@ -204,7 +204,7 @@ class LanguageStore implements \TYPO3\CMS\Core\SingletonInterface {
         */
        public function getAbsoluteFileReference($fileReference) {
                if (isset($this->configuration[$fileReference]['fileReference']) && trim($this->configuration[$fileReference]['fileReference']) !== '') {
-                       return (string) $this->configuration[$fileReference]['fileReference'];
+                       return (string)$this->configuration[$fileReference]['fileReference'];
                } else {
                        throw new \InvalidArgumentException(sprintf('Invalid file reference configuration for the current file (%s)', $fileReference), 1307293693);
                }
index 004f480..edf46a9 100644 (file)
@@ -173,9 +173,9 @@ class LocallangArrayParser implements \TYPO3\CMS\Core\Localization\Parser\Locali
         * @return array
         */
        protected function getContentFromCacheFile() {
-               $serContent = (array) unserialize(file_get_contents($this->cacheFileName));
+               $serContent = (array)unserialize(file_get_contents($this->cacheFileName));
                $LOCAL_LANG = $serContent['LOCAL_LANG'];
-               return (array) $LOCAL_LANG;
+               return (array)$LOCAL_LANG;
        }
 
        /**
@@ -185,7 +185,7 @@ class LocallangArrayParser implements \TYPO3\CMS\Core\Localization\Parser\Locali
         * @return bool
         */
        protected function isWithinWebRoot($fileName) {
-               return (bool) \TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($fileName);
+               return (bool)\TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($fileName);
        }
 
        /**
index ac18b6f..b930f98 100644 (file)
@@ -105,8 +105,8 @@ class LocallangXmlParser extends \TYPO3\CMS\Core\Localization\Parser\AbstractXml
                foreach ($children as $translationElement) {
                        if ($translationElement->getName() === 'label') {
                                // If restype would be set, it could be metadata from Gettext to XLIFF conversion (and we don't need this data)
-                               $parsedData[(string) $translationElement['index']][0] = array(
-                                       $element => (string) $translationElement
+                               $parsedData[(string)$translationElement['index']][0] = array(
+                                       $element => (string)$translationElement
                                );
                        }
                }
index 7505705..ae0ef95 100644 (file)
@@ -35,44 +35,44 @@ class XliffParser extends \TYPO3\CMS\Core\Localization\Parser\AbstractXmlParser
                                        // If restype would be set, it could be metadata from Gettext to XLIFF conversion (and we don't need this data)
                                        if ($this->languageKey === 'default') {
                                                // Default language coming from an XLIFF template (no target element)
-                                               $parsedData[(string) $translationElement['id']][0] = array(
-                                                       'source' => (string) $translationElement->source,
-                                                       'target' => (string) $translationElement->source
+                                               $parsedData[(string)$translationElement['id']][0] = array(
+                                                       'source' => (string)$translationElement->source,
+                                                       'target' => (string)$translationElement->source
                                                );
                                        } else {
                                                // @todo Support "approved" attribute
-                                               $parsedData[(string) $translationElement['id']][0] = array(
-                                                       'source' => (string) $translationElement->source,
-                                                       'target' => (string) $translationElement->target
+                                               $parsedData[(string)$translationElement['id']][0] = array(
+                                                       'source' => (string)$translationElement->source,
+                                                       'target' => (string)$translationElement->target
                                                );
                                        }
-                               } elseif ($translationElement->getName() === 'group' && isset($translationElement['restype']) && (string) $translationElement['restype'] === 'x-gettext-plurals') {
+                               } elseif ($translationElement->getName() === 'group' && isset($translationElement['restype']) && (string)$translationElement['restype'] === 'x-gettext-plurals') {
                                        // This is a translation with plural forms
                                        $parsedTranslationElement = array();
                                        foreach ($translationElement->children() as $translationPluralForm) {
                                                if ($translationPluralForm->getName() === 'trans-unit') {
                                                        // When using plural forms, ID looks like this: 1[0], 1[1] etc
-                                                       $formIndex = substr((string) $translationPluralForm['id'], strpos((string) $translationPluralForm['id'], '[') + 1, -1);
+                                                       $formIndex = substr((string)$translationPluralForm['id'], strpos((string)$translationPluralForm['id'], '[') + 1, -1);
                                                        if ($this->languageKey === 'default') {
                                                                // Default language come from XLIFF template (no target element)
                                                                $parsedTranslationElement[(int)$formIndex] = array(
-                                                                       'source' => (string) $translationPluralForm->source,
-                                                                       'target' => (string) $translationPluralForm->source
+                                                                       'source' => (string)$translationPluralForm->source,
+                                                                       'target' => (string)$translationPluralForm->source
                                                                );
                                                        } else {
                                                                // @todo Support "approved" attribute
                                                                $parsedTranslationElement[(int)$formIndex] = array(
-                                                                       'source' => (string) $translationPluralForm->source,
-                                                                       'target' => (string) $translationPluralForm->target
+                                                                       'source' => (string)$translationPluralForm->source,
+                                                                       'target' => (string)$translationPluralForm->target
                                                                );
                                                        }
                                                }
                                        }
                                        if (!empty($parsedTranslationElement)) {
                                                if (isset($translationElement['id'])) {
-                                                       $id = (string) $translationElement['id'];
+                                                       $id = (string)$translationElement['id'];
                                                } else {
-                                                       $id = (string) $translationElement->{'trans-unit'}[0]['id'];
+                                                       $id = (string)$translationElement->{'trans-unit'}[0]['id'];
                                                        $id = substr($id, 0, strpos($id, '['));
                                                }
                                                $parsedData[$id] = $parsedTranslationElement;
index 08d73b8..2431015 100644 (file)
@@ -47,7 +47,7 @@ abstract class AbstractMemoryProcessor extends \TYPO3\CMS\Core\Log\Processor\Abs
         * @return void
         */
        public function setRealMemoryUsage($realMemoryUsage) {
-               $this->realMemoryUsage = (bool) $realMemoryUsage;
+               $this->realMemoryUsage = (bool)$realMemoryUsage;
        }
 
        /**
@@ -66,7 +66,7 @@ abstract class AbstractMemoryProcessor extends \TYPO3\CMS\Core\Log\Processor\Abs
         * @return void
         */
        public function setFormatSize($formatSize) {
-               $this->formatSize = (bool) $formatSize;
+               $this->formatSize = (bool)$formatSize;
        }
 
        /**
index 17620c8..d238bbc 100644 (file)
@@ -57,7 +57,7 @@ class IntrospectionProcessor extends \TYPO3\CMS\Core\Log\Processor\AbstractProce
         * @return \TYPO3\CMS\Core\Log\Writer\AbstractWriter
         */
        public function setShiftBackTraceLevel($shiftBackTraceLevel) {
-               $this->shiftBackTraceLevel = (int) $shiftBackTraceLevel;
+               $this->shiftBackTraceLevel = (int)$shiftBackTraceLevel;
                return $this;
        }
 
@@ -68,7 +68,7 @@ class IntrospectionProcessor extends \TYPO3\CMS\Core\Log\Processor\AbstractProce
         * @return \TYPO3\CMS\Core\Log\Writer\AbstractWriter
         */
        public function setAppendFullBackTrace($appendFullBackTrace) {
-               $this->appendFullBackTrace = (bool) $appendFullBackTrace;
+               $this->appendFullBackTrace = (bool)$appendFullBackTrace;
                return $this;
        }
 
index 1580547..1d0fc47 100644 (file)
@@ -142,7 +142,7 @@ class Mailer extends \Swift_Mailer {
                if (is_array($mailSettings)) {
                        $this->mailSettings = $mailSettings;
                } else {
-                       $this->mailSettings = (array) $GLOBALS['TYPO3_CONF_VARS']['MAIL'];
+                       $this->mailSettings = (array)$GLOBALS['TYPO3_CONF_VARS']['MAIL'];
                }
        }
 
index da73f84..f7e4ca7 100644 (file)
@@ -89,7 +89,7 @@ class MboxTransport implements \Swift_Transport {
                \TYPO3\CMS\Core\Utility\GeneralUtility::fixPermissions($this->debugFile);
                $lockObject->release();
                // Return every receipient as "delivered"
-               $count = count((array) $message->getTo()) + count((array) $message->getCc()) + count((array) $message->getBcc());
+               $count = count((array)$message->getTo()) + count((array)$message->getCc()) + count((array)$message->getBcc());
                return $count;
        }
 
index c1eaf29..0485c8a 100644 (file)
@@ -63,7 +63,7 @@ abstract class AbstractMessage {
         * @return void
         */
        public function setTitle($title) {
-               $this->title = (string) $title;
+               $this->title = (string)$title;
        }
 
        /**
@@ -82,7 +82,7 @@ abstract class AbstractMessage {
         * @return void
         */
        public function setMessage($message) {
-               $this->message = (string) $message;
+               $this->message = (string)$message;
        }
 
        /**
index e08a70b..99c224f 100644 (file)
@@ -1900,9 +1900,9 @@ class PageRenderer implements \TYPO3\CMS\Core\SingletonInterface {
                                foreach ($parts as $part) {
                                        $a = &$a[$part];
                                }
-                               $a = array_merge((array) $a, $array);
+                               $a = array_merge((array)$a, $array);
                        } else {
-                               $this->inlineSettings[$namespace] = array_merge((array) $this->inlineSettings[$namespace], $array);
+                               $this->inlineSettings[$namespace] = array_merge((array)$this->inlineSettings[$namespace], $array);
                        }
                } else {
                        $this->inlineSettings = array_merge($this->inlineSettings, $array);
index 039762b..793b7a2 100644 (file)
@@ -340,7 +340,7 @@ class File extends AbstractFile {
         * @return bool
         */
        public function isMissing() {
-               return (bool) $this->getProperty('missing');
+               return (bool)$this->getProperty('missing');
        }
 
        /**
@@ -388,7 +388,7 @@ class File extends AbstractFile {
         * @internal Only for usage in Indexer
         */
        public function setIndexingInProgess($indexingState) {
-               $this->indexingInProgress = (boolean)$indexingState;
+               $this->indexingInProgress = (bool)$indexingState;
        }
 
        /**
index 7d35d64..367187e 100644 (file)
@@ -319,7 +319,7 @@ class FileReference implements FileInterface {
         * @return bool
         */
        public function isMissing() {
-               return (bool) $this->originalFile->getProperty('missing');
+               return (bool)$this->originalFile->getProperty('missing');
        }
 
        /******************
index 6c571a2..9f04032 100644 (file)
@@ -67,7 +67,7 @@ class FileNameFilter {
         * @return bool
         */
        static public function setShowHiddenFilesAndFolders($showHiddenFilesAndFolders) {
-               return self::$showHiddenFilesAndFolders = (bool) $showHiddenFilesAndFolders;
+               return self::$showHiddenFilesAndFolders = (bool)$showHiddenFilesAndFolders;
        }
 
 }
index 5e1a0ec..e55dda2 100644 (file)
@@ -375,7 +375,7 @@ class Folder implements FolderInterface {
         * Prepares the filters in this folder's storage according to a set filter mode.
         *
         * @param int $filterMode The filter mode to use; one of the FILTER_MODE_* constants
-        * @return array The backed up filters as an array (NULL if filters were not backed up) and whether to use filters or not (boolean)
+        * @return array The backed up filters as an array (NULL if filters were not backed up) and whether to use filters or not (bool)
         */
        protected function prepareFiltersInStorage($filterMode) {
                $backedUpFilters = NULL;
index cac6265..6f62093 100644 (file)
@@ -75,11 +75,11 @@ class MagicImageService {
                // Get maximum dimensions from the configuration of the RTE image button
                $imageButtonConfiguration = (is_array($rteConfiguration['buttons.']) && is_array($rteConfiguration['buttons.']['image.'])) ? $rteConfiguration['buttons.']['image.'] : array();
                if (is_array($imageButtonConfiguration['options.']) && is_array($imageButtonConfiguration['options.']['magic.'])) {
-                       if ((int) $imageButtonConfiguration['options.']['magic.']['maxWidth'] > 0) {
-                               $this->magicImageMaximumWidth = (int) $imageButtonConfiguration['options.']['magic.']['maxWidth'];
+                       if ((int)$imageButtonConfiguration['options.']['magic.']['maxWidth'] > 0) {
+                               $this->magicImageMaximumWidth = (int)$imageButtonConfiguration['options.']['magic.']['maxWidth'];
                        }
-                       if ((int) $imageButtonConfiguration['options.']['magic.']['maxHeight'] > 0) {
-                               $this->magicImageMaximumHeight = (int) $imageButtonConfiguration['options.']['magic.']['maxHeight'];
+                       if ((int)$imageButtonConfiguration['options.']['magic.']['maxHeight'] > 0) {
+                               $this->magicImageMaximumHeight = (int)$imageButtonConfiguration['options.']['magic.']['maxHeight'];
                        }
                }
        }
index 972b578..f419f9a 100644 (file)
@@ -356,7 +356,7 @@ class DatabaseTreeDataProvider extends \TYPO3\CMS\Core\Tree\TableConfiguration\A
         */
        protected function getChildrenUidsFromParentRelation(array $row) {
                $uid = $row['uid'];
-               switch ((string) $this->columnConfiguration['type']) {
+               switch ((string)$this->columnConfiguration['type']) {
                        case 'inline':
 
                        case 'select':
@@ -389,7 +389,7 @@ class DatabaseTreeDataProvider extends \TYPO3\CMS\Core\Tree\TableConfiguration\A
                $relatedUids = array();
                $uid = $row['uid'];
                $value = $row[$this->getLookupField()];
-               switch ((string) $this->columnConfiguration['type']) {
+               switch ((string)$this->columnConfiguration['type']) {
                        case 'inline':
 
                        case 'select':
index e97b907..a946be2 100644 (file)
@@ -118,7 +118,7 @@ class DatabaseTreeNode extends \TYPO3\CMS\Backend\Tree\TreeRepresentationNode {
         * @return void
         */
        public function setHasChildren($value) {
-               $this->hasChildren = (bool) $value;
+               $this->hasChildren = (bool)$value;
        }
 
        /**
index 50fe046..60813a4 100644 (file)
@@ -71,7 +71,7 @@ class TreeDataProviderFactory {
                                $dataProvider->setRootUid((int)$treeConfiguration['rootUid']);
                        }
                        if (isset($treeConfiguration['appearance']['expandAll'])) {
-                               $dataProvider->setExpandAll((bool) $treeConfiguration['appearance']['expandAll']);
+                               $dataProvider->setExpandAll((bool)$treeConfiguration['appearance']['expandAll']);
                        }
                        if (isset($treeConfiguration['appearance']['maxLevels'])) {
                                $dataProvider->setLevelMaximum((int)$treeConfiguration['appearance']['maxLevels']);
index 2db43fa..d83313b 100644 (file)
@@ -142,9 +142,9 @@ abstract class Enumeration implements TypeInterface {
         * @return bool
         */
        protected function isValid($value) {
-               $value = (string) $value;
+               $value = (string)$value;
                foreach (static::$enumConstants[get_class($this)] as $constantValue) {
-                       if ($value === (string) $constantValue) {
+                       if ($value === (string)$constantValue) {
                                return TRUE;
                        }
                }
index f14b170..d6d033b 100644 (file)
@@ -205,7 +205,7 @@ class TemplateService {
         * @param bool $processExtensionStatics
         */
        public function setProcessExtensionStatics($processExtensionStatics) {
-               $this->processExtensionStatics = (bool) $processExtensionStatics;
+               $this->processExtensionStatics = (bool)$processExtensionStatics;
        }
 
        /**
@@ -285,7 +285,7 @@ class TemplateService {
                if (is_array($cc['all'])) {
                        /** @var $matchObj \TYPO3\CMS\Frontend\Configuration\TypoScript\ConditionMatching\ConditionMatcher */
                        $matchObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Configuration\\TypoScript\\ConditionMatching\\ConditionMatcher');
-                       $matchObj->setRootline((array) $cc['rootLine']);
+                       $matchObj->setRootline((array)$cc['rootLine']);
                        foreach ($cc['all'] as $key => $pre) {
                                if ($matchObj->match($pre)) {
                                        $sectionsMatch[$key] = $pre;
@@ -805,7 +805,7 @@ class TemplateService {
                /** @var $matchObj \TYPO3\CMS\Frontend\Configuration\TypoScript\ConditionMatching\ConditionMatcher */
                $matchObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Configuration\\TypoScript\\ConditionMatching\\ConditionMatcher');
                $matchObj->setSimulateMatchConditions($this->matchAlternative);
-               $matchObj->setSimulateMatchResult((bool) $this->matchAll);
+               $matchObj->setSimulateMatchResult((bool)$this->matchAll);
                // Traverse constants text fields and parse them
                foreach ($this->constants as $str) {
                        $constants->parse($str, $matchObj);
index 7cef61f..a578b58 100644 (file)
@@ -53,7 +53,7 @@ class DebugUtility {
                }
                $debug = self::convertVariableToString($var);
                if ($header) {
-                       $debug = sprintf(self::DEBUG_TABLE_TEMPLATE, htmlspecialchars((string) $header), $debug);
+                       $debug = sprintf(self::DEBUG_TABLE_TEMPLATE, htmlspecialchars((string)$header), $debug);
                }
                if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI)) {
                        $tabHeader = $header ?: 'Debug';
@@ -108,8 +108,8 @@ class DebugUtility {
                        $string = '<strong>|Object:<pre>';
                        $string .= print_r($variable, TRUE);
                        $string .= '</pre>|</strong>';
-               } elseif ((string) $variable !== '') {
-                       $string = '<strong>|' . htmlspecialchars((string) $variable) . '|</strong>';
+               } elseif ((string)$variable !== '') {
+                       $string = '<strong>|' . htmlspecialchars((string)$variable) . '|</strong>';
                } else {
                        $string = '<strong>| debug |</strong>';
                }
@@ -271,14 +271,14 @@ class DebugUtility {
                        } else {
                                foreach ($array_in as $key => $val) {
                                        $result .= '<tr>
-                                               <td valign="top"><font face="Verdana,Arial" size="1">' . htmlspecialchars((string) $key) . '</font></td>
+                                               <td valign="top"><font face="Verdana,Arial" size="1">' . htmlspecialchars((string)$key) . '</font></td>
                                                <td>';
                                        if (is_array($val)) {
                                                $result .= self::viewArray($val);
                                        } elseif (is_object($val)) {
                                                $string = '';
                                                if (method_exists($val, '__toString')) {
-                                                       $string .= get_class($val) . ': ' . (string) $val;
+                                                       $string .= get_class($val) . ': ' . (string)$val;
                                                } else {
                                                        $string .= print_r($val, TRUE);
                                                }
@@ -287,7 +287,7 @@ class DebugUtility {
                                                if (gettype($val) == 'object') {
                                                        $string = 'Unknown object';
                                                } else {
-                                                       $string = (string) $val;
+                                                       $string = (string)$val;
                                                }
                                                $result .= '<font face="Verdana,Arial" size="1" color="red">' . nl2br(htmlspecialchars($string)) . '<br /></font>';
                                        }
@@ -299,7 +299,7 @@ class DebugUtility {
                } else {
                        $result = '<table border="1" cellpadding="1" cellspacing="0" bgcolor="white">
                                <tr>
-                                       <td><font face="Verdana,Arial" size="1" color="red">' . nl2br(htmlspecialchars((string) $array_in)) . '<br /></font></td>
+                                       <td><font face="Verdana,Arial" size="1" color="red">' . nl2br(htmlspecialchars((string)$array_in)) . '<br /></font></td>
                                </tr>
                        </table>';
                }
index 045570e..b07cc3d 100644 (file)
@@ -176,7 +176,7 @@ class ExtensionManagementUtility {
         * Returns the real extension key like 'tt_news' from an extension prefix like 'tx_ttnews'.
         *
         * @param string $prefix The extension prefix (e.g. 'tx_ttnews')
-        * @return mixed Real extension key (string) or FALSE (boolean) if something went wrong
+        * @return mixed Real extension key (string)or FALSE (bool) if something went wrong
         */
        static public function getExtensionKeyByPrefix($prefix) {
                $result = FALSE;
index e4147b7..76b81a9 100644 (file)
@@ -193,7 +193,7 @@ class BasicFileUtility {
        public function checkIfFullAccess($theDest) {
                $type = $this->is_webpath($theDest) ? 'webspace' : 'ftpspace';
                if (isset($this->f_ext[$type])) {
-                       if ((string) $this->f_ext[$type]['deny'] == '' || $this->f_ext[$type]['allow'] == '*') {
+                       if ((string)$this->f_ext[$type]['deny'] == '' || $this->f_ext[$type]['allow'] == '*') {
                                return TRUE;
                        }
                }
index 169e65b..b3f5dd7 100644 (file)
@@ -492,7 +492,7 @@ class ExtendedFileUtility extends BasicFileUtility {
                        return FALSE;
                }
                // If this is TRUE, we append _XX to the file name if
-               $appendSuffixOnConflict = (string) $cmds['altName'];
+               $appendSuffixOnConflict = (string)$cmds['altName'];
                $resultObject = NULL;
                // Copying the file
                if ($sourceFileObject instanceof File) {
@@ -567,7 +567,7 @@ class ExtendedFileUtility extends BasicFileUtility {
                        $this->writelog(3, 2, 100, 'Destination "%s" was not a directory', array($cmds['target']));
                        return FALSE;
                }
-               $alternativeName = (string) $cmds['altName'];
+               $alternativeName = (string)$cmds['altName'];
                $resultObject = NULL;
                // Moving the file
                if ($sourceFileObject instanceof File) {
index f5ac305..6fd96e2 100644 (file)
@@ -342,7 +342,7 @@ class GeneralUtility {
        static public function read_png_gif($theFile, $output_png = FALSE) {
                if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['im'] && @is_file($theFile)) {
                        $ext = strtolower(substr($theFile, -4, 4));
-                       if ((string) $ext == '.png' && $output_png || (string) $ext == '.gif' && !$output_png) {
+                       if ((string)$ext == '.png' && $output_png || (string)$ext == '.gif' && !$output_png) {
                                return $theFile;
                        } else {
                                $newFile = PATH_site . 'typo3temp/readPG_' . md5(($theFile . '|' . filemtime($theFile))) . ($output_png ? '.png' : '.gif');
@@ -939,7 +939,7 @@ class GeneralUtility {
         * @return bool TRUE if $partStr was found to be equal to the first part of $str
         */
        static public function isFirstPartOfStr($str, $partStr) {
-               return $partStr != '' && strpos((string) $str, (string) $partStr, 0) === 0;
+               return $partStr != '' && strpos((string)$str, (string)$partStr, 0) === 0;
        }
 
        /**
@@ -1149,7 +1149,7 @@ class GeneralUtility {
         * @return string Uppercase String
         */
        static public function strtoupper($str) {
-               return strtr((string) $str, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ');
+               return strtr((string)$str, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ');
        }
 
        /**
@@ -1162,7 +1162,7 @@ class GeneralUtility {
         * @return string Lowercase String
         */
        static public function strtolower($str) {
-               return strtr((string) $str, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
+               return strtr((string)$str, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
        }
 
        /**
@@ -1219,7 +1219,7 @@ class GeneralUtility {
                        return '';
                }
                $isStrong = NULL;
-               return (string) openssl_random_pseudo_bytes($bytesToGenerate, $isStrong);
+               return (string)openssl_random_pseudo_bytes($bytesToGenerate, $isStrong);
        }
 
        /**
@@ -1233,7 +1233,7 @@ class GeneralUtility {
                if (!function_exists('mcrypt_create_iv')) {
                        return '';
                }
-               return (string) (@mcrypt_create_iv($bytesToGenerate, $randomSource));
+               return (string)(@mcrypt_create_iv($bytesToGenerate, $randomSource));
        }
 
        /**
@@ -2076,19 +2076,19 @@ class GeneralUtility {
                        // Use tag based on grand-parent + parent tag name
                        if (isset($options['grandParentTagMap'][$stackData['grandParentTagName'] . '/' . $stackData['parentTagName']])) {
                                $attr .= ' index="' . htmlspecialchars($tagName) . '"';
-                               $tagName = (string) $options['grandParentTagMap'][($stackData['grandParentTagName'] . '/' . $stackData['parentTagName'])];
+                               $tagName = (string)$options['grandParentTagMap'][($stackData['grandParentTagName'] . '/' . $stackData['parentTagName'])];
                        } elseif (isset($options['parentTagMap'][$stackData['parentTagName'] . ':_IS_NUM']) && MathUtility::canBeInterpretedAsInteger($tagName)) {
                                // Use tag based on parent tag name + if current tag is numeric
                                $attr .= ' index="' . htmlspecialchars($tagName) . '"';
-                               $tagName = (string) $options['parentTagMap'][($stackData['parentTagName'] . ':_IS_NUM')];
+                               $tagName = (string)$options['parentTagMap'][($stackData['parentTagName'] . ':_IS_NUM')];
                        } elseif (isset($options['parentTagMap'][$stackData['parentTagName'] . ':' . $tagName])) {
                                // Use tag based on parent tag name + current tag
                                $attr .= ' index="' . htmlspecialchars($tagName) . '"';
-                               $tagName = (string) $options['parentTagMap'][($stackData['parentTagName'] . ':' . $tagName)];
+                               $tagName = (string)$options['parentTagMap'][($stackData['parentTagName'] . ':' . $tagName)];
                        } elseif (isset($options['parentTagMap'][$stackData['parentTagName']])) {
                                // Use tag based on parent tag name:
                                $attr .= ' index="' . htmlspecialchars($tagName) . '"';
-                               $tagName = (string) $options['parentTagMap'][$stackData['parentTagName']];
+                               $tagName = (string)$options['parentTagMap'][$stackData['parentTagName']];
                        } elseif (MathUtility::canBeInterpretedAsInteger($tagName)) {
                                // If integer...;
                                if ($options['useNindex']) {
@@ -2268,9 +2268,9 @@ class GeneralUtility {
                                                $current[$tagName] = base64_decode($val['value']);
                                        } else {
                                                // Had to cast it as a string - otherwise it would be evaluate FALSE if tested with isset()!!
-                                               $current[$tagName] = (string) $val['value'];
+                                               $current[$tagName] = (string)$val['value'];
                                                // Cast type:
-                                               switch ((string) $val['attributes']['type']) {
+                                               switch ((string)$val['attributes']['type']) {
                                                        case 'integer':
                                                                $current[$tagName] = (int)$current[$tagName];
                                                                break;
@@ -2278,7 +2278,7 @@ class GeneralUtility {
                                                                $current[$tagName] = (double) $current[$tagName];
                                                                break;
                                                        case 'boolean':
-                                                               $current[$tagName] = (bool) $current[$tagName];
+                                                               $current[$tagName] = (bool)$current[$tagName];
                                                                break;
                                                        case 'NULL':
                                                                $current[$tagName] = NULL;
@@ -2944,7 +2944,7 @@ Connection: close
                $dirs = self::get_dirs($path);
                if ($recursivityLevels > 0 && is_array($dirs)) {
                        foreach ($dirs as $subdirs) {
-                               if ((string) $subdirs != '' && (!strlen($excludePattern) || !preg_match(('/^' . $excludePattern . '$/'), $subdirs))) {
+                               if ((string)$subdirs != '' && (!strlen($excludePattern) || !preg_match(('/^' . $excludePattern . '$/'), $subdirs))) {
                                        $fileArr = self::getAllFilesAndFoldersInPath($fileArr, $path . $subdirs . '/', $extList, $regDirs, $recursivityLevels - 1, $excludePattern);
                                }
                        }
@@ -3261,7 +3261,7 @@ Connection: close
                - ALSO TRY the script from the ROOT of a site (like 'http://www.mytest.com/' and not 'http://www.mytest.com/test/' !!)
                 */
                $retVal = '';
-               switch ((string) $getEnvName) {
+               switch ((string)$getEnvName) {
                        case 'SCRIPT_NAME':
                                $retVal = self::isRunningOnCgiServerApi()
                                        && ($_SERVER['ORIG_PATH_INFO'] ?: $_SERVER['PATH_INFO'])
@@ -3917,7 +3917,7 @@ Connection: close
        /**
         * Standard authentication code (used in Direct Mail, checkJumpUrl and setfixed links computations)
         *
-        * @param mixed $uid_or_record Uid (integer) or record (array)
+        * @param mixed $uid_or_record Uid (int) or record (array)
         * @param string $fields List of fields from the record if that is given.
         * @param int $codeLength Length of returned authentication code.
         * @return string MD5 hash of 8 chars.
@@ -4694,7 +4694,7 @@ Connection: close
                        $oldPart = $part;
                        $partWasQuoted = $part[0] == '"';
                        $part = trim($part, '"');
-                       switch ((string) $enc) {
+                       switch ((string)$enc) {
                                case 'base64':
                                        $part = '=?' . $charset . '?B?' . base64_encode($part) . '?=';
                                        break;
@@ -4733,7 +4733,7 @@ Connection: close
         * @see makeRedirectUrl()
         */
        static public function substUrlsInPlainText($message, $urlmode = '76', $index_script_url = '') {
-               switch ((string) $urlmode) {
+               switch ((string)$urlmode) {
                        case '':
                                $lengthLimit = FALSE;
                                break;
@@ -5033,7 +5033,7 @@ Connection: close
                $valListCnt = count($valueList);
                foreach ($arr as $key => $value) {
                        if (!$valListCnt || in_array($key, $valueList)) {
-                               $str .= ((string) $key . trim((': ' . self::fixed_lgd_cs(str_replace(LF, '|', (string) $value), $valueLength)))) . '; ';
+                               $str .= ((string)$key . trim((': ' . self::fixed_lgd_cs(str_replace(LF, '|', (string)$value), $valueLength)))) . '; ';
                        }
                }
                return $str;
index e61ece2..2170da5 100644 (file)
@@ -73,7 +73,7 @@ class MathUtility {
                if ($var === '' || is_object($var) || is_array($var)) {
                        return FALSE;
                }
-               return (string) (int)$var === (string) $var;
+               return (string)(int)$var === (string)$var;
        }
 
        /**
index dba5f0f..3aa6686 100644 (file)
@@ -51,10 +51,10 @@ class PathUtility {
                                $resolvedTargetPath = '';
                                $sourcePathSteps = 0;
                                if (strlen($sourcePath) > $commonPrefixLength) {
-                                       $resolvedSourcePath = (string) substr($sourcePath, $commonPrefixLength);
+                                       $resolvedSourcePath = (string)substr($sourcePath, $commonPrefixLength);
                                }
                                if (strlen($targetPath) > $commonPrefixLength) {
-                                       $resolvedTargetPath = (string) substr($targetPath, $commonPrefixLength);
+                                       $resolvedTargetPath = (string)substr($targetPath, $commonPrefixLength);
                                }
                                if ($resolvedSourcePath !== '') {
                                        $sourcePathSteps = count(explode('/', $resolvedSourcePath));
index 0339143..297a742 100644 (file)
@@ -49,7 +49,7 @@ class StringUtility {
                }
                $stringLength = strlen($haystack);
                $needleLength = strlen($needle);
-               return strrpos((string) $haystack, (string) $needle, 0) === $stringLength - $needleLength;
+               return strrpos((string)$haystack, (string)$needle, 0) === $stringLength - $needleLength;
        }
 
        /**
index fa39fc8..c468912 100644 (file)
@@ -167,7 +167,7 @@ class VersionNumberUtility {
                $parts[0] = MathUtility::forceIntegerInRange($parts[0], 0, 999);
                $parts[1] = MathUtility::forceIntegerInRange($parts[1], 0, 999);
                $parts[2] = MathUtility::forceIntegerInRange($parts[2], 0, 999);
-               switch ((string) $raise) {
+               switch ((string)$raise) {
                        case 'main':
                                $parts[0]++;
                                $parts[1] = 0;
index 8098a6b..4bfbfdc 100644 (file)
@@ -80,12 +80,12 @@ return array(
                                        ),
                                        array(
                                                'LLL:EXT:lang/locallang_tca.xlf:doktype.I.0',
-                                               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT,
+                                               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT,
                                                'i/pages.gif'
                                        ),
                                        array(
                                                'LLL:EXT:cms/locallang_tca.xlf:pages.doktype.I.4',
-                                               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_BE_USER_SECTION,
+                                               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_BE_USER_SECTION,
                                                'i/be_users_section.gif'
                                        ),
                                        array(
@@ -94,17 +94,17 @@ return array(
                                        ),
                                        array(
                                                'LLL:EXT:cms/locallang_tca.xlf:pages.doktype.I.2',
-                                               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT,
+                                               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT,
                                                'i/pages_shortcut.gif'
                                        ),
                                        array(
                                                'LLL:EXT:cms/locallang_tca.xlf:pages.doktype.I.5',
-                                               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT,
+                                               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT,
                                                'i/pages_mountpoint.gif'
                                        ),
                                        array(
                                                'LLL:EXT:cms/locallang_tca.xlf:pages.doktype.I.8',
-                                               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK,
+                                               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK,
                                                'i/pages_link.gif'
                                        ),
                                        array(
@@ -113,21 +113,21 @@ return array(
                                        ),
                                        array(
                                                'LLL:EXT:lang/locallang_tca.xlf:doktype.I.folder',
-                                               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER,
+                                               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER,
                                                'i/sysf.gif'
                                        ),
                                        array(
                                                'LLL:EXT:lang/locallang_tca.xlf:doktype.I.2',
-                                               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER,
+                                               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER,
                                                'i/recycler.gif'
                                        ),
                                        array(
                                                'LLL:EXT:cms/locallang_tca.xlf:pages.doktype.I.7',
-                                               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER,
+                                               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER,
                                                'i/spacer_icon.gif'
                                        )
                                ),
-                               'default' => (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT,
+                               'default' => (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT,
                                'iconsInOptionTags' => 1,
                                'noIconsBelowSelect' => 1
                        )
@@ -822,7 +822,7 @@ return array(
        ),
        'types' => array(
                // normal
-               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT => array(
+               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_DEFAULT => array(
                        'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.standard;standard,
                                        --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,
                                --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
@@ -849,7 +849,7 @@ return array(
                '
                ),
                // external URL
-               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array(
+               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array(
                        'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.external;external,
                                        --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,
                                --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
@@ -872,7 +872,7 @@ return array(
                '
                ),
                // shortcut
-               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array(
+               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array(
                        'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.shortcut;shortcut,
                                        --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.shortcutpage;shortcutpage,
                                        --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,
@@ -896,7 +896,7 @@ return array(
                                '
                ),
                // mount page
-               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => array(
+               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => array(
                        'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.mountpoint;mountpoint,
                                        --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.mountpage;mountpage,
                                        --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;title,
@@ -919,7 +919,7 @@ return array(
                '
                ),
                // spacer
-               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => array(
+               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => array(
                        'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.standard;standard,
                                        --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;titleonly,
                                --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
@@ -931,7 +931,7 @@ return array(
                        '
                ),
                // Folder
-               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => array(
+               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => array(
                        'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.standard;standard,
                                        --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;titleonly,
                                --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
@@ -947,7 +947,7 @@ return array(
                '
                ),
                // Trash
-               (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => array(
+               (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => array(
                        'showitem' => '--palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.standard;standard,
                                        --palette--;LLL:EXT:cms/locallang_tca.xlf:pages.palettes.title;titleonly,
                                --div--;LLL:EXT:cms/locallang_tca.xlf:pages.tabs.access,
index 934e6e7..e2039fa 100644 (file)
@@ -379,7 +379,7 @@ abstract class AbstractTestCase extends \TYPO3\CMS\Core\Tests\FunctionalTestCase
                if (!empty($assertion['tableName'])) {
                        $tableName = $assertion['tableName'];
                        unset($assertion['tableName']);
-                       $elements = (array) $elements[$tableName];
+                       $elements = (array)$elements[$tableName];
                }
 
                foreach ($elements as $element) {
index ba81fb1..814a12a 100644 (file)
@@ -269,7 +269,7 @@ abstract class FunctionalTestCase extends BaseTestCase {
                                } elseif (isset($column['is-NULL']) && ($column['is-NULL'] === 'yes')) {
                                        $columnValue = NULL;
                                } else {
-                                       $columnValue = (string) $table->$columnName;
+                                       $columnValue = (string)$table->$columnName;
                                }
 
                                $insertArray[$columnName] = $columnValue;
@@ -284,7 +284,7 @@ abstract class FunctionalTestCase extends BaseTestCase {
                                );
                        }
                        if (isset($table['id'])) {
-                               $elementId = (string) $table['id'];
+                               $elementId = (string)$table['id'];
                                $foreignKeys[$tableName][$elementId] = $database->sql_insert_id();
                        }
                }
index e4a77c3..02de2c8 100644 (file)
@@ -315,7 +315,7 @@ class BackendUserAuthenticationTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                array_walk(
                        $expectedPermissions,
                        function(&$value) {
-                               $value = (bool) $value;
+                               $value = (bool)$value;
                        }
                );
 
index 364ae21..1daa158 100644 (file)
@@ -139,9 +139,9 @@ class ApplicationContextTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        public function parentContextIsConnectedRecursively() {
                $context = new ApplicationContext('Production/Foo/Bar');
                $parentContext = $context->getParent();
-               $this->assertSame('Production/Foo', (string) $parentContext);
+               $this->assertSame('Production/Foo', (string)$parentContext);
 
                $rootContext = $parentContext->getParent();
-               $this->assertSame('Production', (string) $rootContext);
+               $this->assertSame('Production', (string)$rootContext);
        }
 }
index 975d74e..672a13a 100644 (file)
@@ -148,7 +148,7 @@ class LogRecordTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        public function toStringIncludesDataAsJson() {
                $dataArray = array('foo' => 'bar');
                $record = $this->getRecord(array('data' => $dataArray));
-               $this->assertContains(json_encode($dataArray), (string) $record);
+               $this->assertContains(json_encode($dataArray), (string)$record);
        }
 
 }
index 44cb8c3..460e9cf 100644 (file)
@@ -122,8 +122,8 @@ class FileWriterTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $simpleRecord = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Log\\LogRecord', uniqid('test.core.log.fileWriter.simpleRecord.'), \TYPO3\CMS\Core\Log\LogLevel::INFO, 'test record');
                $recordWithData = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Log\\LogRecord', uniqid('test.core.log.fileWriter.recordWithData.'), \TYPO3\CMS\Core\Log\LogLevel::ALERT, 'test record with data', array('foo' => array('bar' => 'baz')));
                return array(
-                       'simple record' => array($simpleRecord, trim((string) $simpleRecord)),
-                       'record with data' => array($recordWithData, trim((string) $recordWithData))
+                       'simple record' => array($simpleRecord, trim((string)$simpleRecord)),
+                       'record with data' => array($recordWithData, trim((string)$recordWithData))
                );
        }
 
index ac97fa0..d039672 100644 (file)
@@ -10,23 +10,23 @@ defined('TYPO3_MODE') or die();
  * types, and for every type the entries simply overrides the entries in the 'default' type!
  */
 $GLOBALS['PAGES_TYPES'] = array(
-       (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array(),
-       (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array(),
-       (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_BE_USER_SECTION => array(
+       (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array(),
+       (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array(),
+       (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_BE_USER_SECTION => array(
                'type' => 'web',
                'allowedTables' => '*'
        ),
-       (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => array(),
-       (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => array(
+       (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => array(),
+       (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => array(
                'type' => 'sys'
        ),
-       (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => array(
+       (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => array(
                //  Doktype 254 is a 'Folder' - a general purpose storage folder for whatever you like.
                // In CMS context it's NOT a viewable page. Can contain any element.
                'type' => 'sys',
                'allowedTables' => '*'
        ),
-       (string) \TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => array(
+       (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => array(
                // Doktype 255 is a recycle-bin.
                'type' => 'sys',
                'allowedTables' => '*'
index 5194c33..8bbda0b 100644 (file)
@@ -256,7 +256,7 @@ updateQryForm(\'' . $input['QUERY'] . '\');
         */
        protected function printCachedInfo() {
                // Get cmd:
-               if ((string) \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('cmd') === 'clear') {
+               if ((string)\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('cmd') === 'clear') {
                        $GLOBALS['TYPO3_DB']->clearCachedFieldInfo();
                        $GLOBALS['TYPO3_DB']->cacheFieldInfo();
                }
@@ -336,7 +336,7 @@ updateQryForm(\'' . $input['QUERY'] . '\');
                // Disable debugging in any case...
                $GLOBALS['TYPO3_DB']->debug = FALSE;
                // Get cmd:
-               $cmd = (string) \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('cmd');
+               $cmd = (string)\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('cmd');
                switch ($cmd) {
                        case 'flush':
                                $res = $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('tx_dbal_debuglog');
index b49f028..043a474 100644 (file)
@@ -628,7 +628,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
                }
                // Select API
                $this->lastHandlerKey = $this->handler_getFromTableList($table);
-               $hType = (string) $this->handlerCfg[$this->lastHandlerKey]['type'];
+               $hType = (string)$this->handlerCfg[$this->lastHandlerKey]['type'];
                $sqlResult = NULL;
                switch ($hType) {
                        case 'native':
@@ -709,7 +709,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
                }
                // Select API
                $this->lastHandlerKey = $this->handler_getFromTableList($table);
-               $hType = (string) $this->handlerCfg[$this->lastHandlerKey]['type'];
+               $hType = (string)$this->handlerCfg[$this->lastHandlerKey]['type'];
                $sqlResult = NULL;
                switch ($hType) {
                        case 'native':
@@ -772,7 +772,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
                        $fromTable = $from_table;
                }
                $this->lastHandlerKey = $this->handler_getFromTableList($fromTable);
-               $hType = (string) $this->handlerCfg[$this->lastHandlerKey]['type'];
+               $hType = (string)$this->handlerCfg[$this->lastHandlerKey]['type'];
                $sqlResult = NULL;
                switch ($hType) {
                        case 'native':
@@ -861,7 +861,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
                }
                // Select API
                $this->lastHandlerKey = $this->handler_getFromTableList($table);
-               $hType = (string) $this->handlerCfg[$this->lastHandlerKey]['type'];
+               $hType = (string)$this->handlerCfg[$this->lastHandlerKey]['type'];
                $sqlResult = NULL;
                switch ($hType) {
                        case 'native':
@@ -1056,7 +1056,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
         * @return string|array Full SQL query for INSERT (unless $rows does not contain any elements in which case it will be FALSE)
         */
        public function INSERTmultipleRows($table, array $fields, array $rows, $no_quote_fields = FALSE) {
-               if ((string) $this->handlerCfg[$this->lastHandlerKey]['type'] === 'native') {
+               if ((string)$this->handlerCfg[$this->lastHandlerKey]['type'] === 'native') {
                        return parent::INSERTmultipleRows($table, $fields, $rows, $no_quote_fields);
                }
                $result = array();
@@ -1196,7 +1196,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
         */
        public function SELECTquery($select_fields, $from_table, $where_clause, $groupBy = '', $orderBy = '', $limit = '') {
                $this->lastHandlerKey = $this->handler_getFromTableList($from_table);
-               $hType = (string) $this->handlerCfg[$this->lastHandlerKey]['type'];
+               $hType = (string)$this->handlerCfg[$this->lastHandlerKey]['type'];
                if ($hType === 'adodb' && $this->runningADOdbDriver('postgres')) {
                        // Possibly rewrite the LIMIT to be PostgreSQL-compatible
                        $splitLimit = GeneralUtility::intExplode(',', $limit);
@@ -1408,7 +1408,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
                        'parameters' => array()
                );
                $this->lastHandlerKey = $this->handler_getFromTableList($from_table);
-               $hType = (string) $this->handlerCfg[$this->lastHandlerKey]['type'];
+               $hType = (string)$this->handlerCfg[$this->lastHandlerKey]['type'];
                if ($hType === 'adodb' && $this->runningADOdbDriver('postgres')) {
                        // Possibly rewrite the LIMIT to be PostgreSQL-compatible
                        $splitLimit = GeneralUtility::intExplode(',', $limit);
@@ -1461,7 +1461,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
                $limit = $components['LIMIT'];
                $precompiledParts = array();
                $this->lastHandlerKey = $this->handler_getFromTableList($components['ORIG_tableName']);
-               $hType = (string) $this->handlerCfg[$this->lastHandlerKey]['type'];
+               $hType = (string)$this->handlerCfg[$this->lastHandlerKey]['type'];
                $precompiledParts['handler'] = $hType;
                $precompiledParts['ORIG_tableName'] = $components['ORIG_tableName'];
                switch ($hType) {
@@ -1938,7 +1938,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
        public function MetaType($type, $table, $maxLength = -1) {
                $this->lastHandlerKey = $this->handler_getFromTableList($table);
                $str = '';
-               switch ((string) $this->handlerCfg[$this->lastHandlerKey]['type']) {
+               switch ((string)$this->handlerCfg[$this->lastHandlerKey]['type']) {
                        case 'native':
                                $str = $type;
                                break;
@@ -2682,7 +2682,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
                }
                // Find columns
                $this->lastHandlerKey = $this->handler_getFromTableList($tableName);
-               switch ((string) $this->handlerCfg[$this->lastHandlerKey]['type']) {
+               switch ((string)$this->handlerCfg[$this->lastHandlerKey]['type']) {
                        case 'native':
                                /** @var \mysqli_result $columns_res */
                                $columns_res = $this->query('SHOW columns FROM ' . $tableName);
@@ -2747,7 +2747,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
                }
                // Find columns
                $this->lastHandlerKey = $this->handler_getFromTableList($tableName);
-               switch ((string) $this->handlerCfg[$this->lastHandlerKey]['type']) {
+               switch ((string)$this->handlerCfg[$this->lastHandlerKey]['type']) {
                        case 'native':
                                /** @var \mysqli_result $keyRes */
                                $keyRes = $this->query('SHOW keys FROM ' . $tableName);
@@ -3115,7 +3115,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
         */
        public function isConnected() {
                $result = FALSE;
-               switch ((string) $this->handlerCfg[$this->lastHandlerKey]['type']) {
+               switch ((string)$this->handlerCfg[$this->lastHandlerKey]['type']) {
                        case 'native':
                                $result = isset($this->handlerCfg[$this->lastHandlerKey]['link']);
                                break;
index 7ed5dcc..eb5e0f8 100644 (file)
@@ -127,6 +127,6 @@ class ConfigurationManager implements \TYPO3\CMS\Extbase\Configuration\Configura
         */
        public function isFeatureEnabled($featureName) {
                $configuration = $this->getConfiguration(self::CONFIGURATION_TYPE_FRAMEWORK);
-               return (boolean) (isset($configuration['features'][$featureName]) && $configuration['features'][$featureName]);
+               return (bool)(isset($configuration['features'][$featureName]) && $configuration['features'][$featureName]);
        }
 }
index 098d7fe..4573b66 100644 (file)
@@ -307,7 +307,7 @@ abstract class AbstractDomainObject implements DomainObjectInterface, \TYPO3\CMS
         * @param bool $clone
         */
        public function _setClone($clone) {
-               $this->_isClone = (boolean) $clone;
+               $this->_isClone = (bool)$clone;
        }
 
        /**
@@ -325,6 +325,6 @@ abstract class AbstractDomainObject implements DomainObjectInterface, \TYPO3\CMS
         * @return string
         */
        public function __toString() {
-               return get_class($this) . ':' . (string) $this->uid;
+               return get_class($this) . ':' . (string)$this->uid;
        }
 }
index fd8d5ef..23411bd 100644 (file)
@@ -327,7 +327,7 @@ abstract class AbstractController implements ControllerInterface {
                $this->response->setContent('<html><head><meta http-equiv="refresh" content="' . (int)$delay . ';url=' . $escapedUri . '"/></head></html>');
                if ($this->response instanceof \TYPO3\CMS\Extbase\Mvc\Web\Response) {
                        $this->response->setStatus($statusCode);
-                       $this->response->setHeader('Location', (string) $uri);
+                       $this->response->setHeader('Location', (string)$uri);
                }
                throw new StopActionException();
        }
@@ -339,7 +339,7 @@ abstract class AbstractController implements ControllerInterface {
         * @return string
         */
        protected function addBaseUriIfNecessary($uri) {
-               return \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl((string) $uri);
+               return \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl((string)$uri);
        }
 
        /**
index 9578581..1d259a7 100644 (file)
@@ -163,7 +163,7 @@ class Argument {
         * @api
         */
        public function setRequired($required) {
-               $this->isRequired = (boolean) $required;
+               $this->isRequired = (bool)$required;
                return $this;
        }
 
@@ -294,6 +294,6 @@ class Argument {
         * @api
         */
        public function __toString() {
-               return (string) $this->value;
+               return (string)$this->value;
        }
 }
index f2f585c..3975d48 100644 (file)
@@ -215,7 +215,7 @@ class CommandController implements CommandControllerInterface {
                if (is_string($commandResult) && strlen($commandResult) > 0) {
                        $this->response->appendContent($commandResult);
                } elseif (is_object($commandResult) && method_exists($commandResult, '__toString')) {
-                       $this->response->appendContent((string) $commandResult);
+                       $this->response->appendContent((string)$commandResult);
                }
        }
 
index e7f8b0c..fb593c6 100644 (file)
@@ -137,7 +137,7 @@ class Request extends \TYPO3\CMS\Extbase\Mvc\Request {
         * @param bool $isCached
         */
        public function setIsCached($isCached) {
-               $this->isCached = (boolean) $isCached;
+               $this->isCached = (bool)$isCached;
        }
 
        /**
index d49323a..ad426c8 100644 (file)
@@ -175,9 +175,9 @@ class RequestBuilder implements \TYPO3\CMS\Core\SingletonInterface {
                $allowedControllerNames = array_keys($this->allowedControllerActions);
                if (!in_array($parameters['controller'], $allowedControllerNames)) {
                        $configuration = $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
-                       if (isset($configuration['mvc']['throwPageNotFoundExceptionIfActionCantBeResolved']) && (boolean) $configuration['mvc']['throwPageNotFoundExceptionIfActionCantBeResolved']) {
+                       if (isset($configuration['mvc']['throwPageNotFoundExceptionIfActionCantBeResolved']) && (bool)$configuration['mvc']['throwPageNotFoundExceptionIfActionCantBeResolved']) {
                                throw new \TYPO3\CMS\Core\Error\Http\PageNotFoundException('The requested resource was not found', 1313857897);
-                       } elseif (isset($configuration['mvc']['callDefaultActionIfActionCantBeResolved']) && (boolean) $configuration['mvc']['callDefaultActionIfActionCantBeResolved']) {
+                       } elseif (isset($configuration['mvc']['callDefaultActionIfActionCantBeResolved']) && (bool)$configuration['mvc']['callDefaultActionIfActionCantBeResolved']) {
                                return $this->defaultControllerName;
                        }
                        throw new \TYPO3\CMS\Extbase\Mvc\Exception\InvalidControllerNameException('The controller "' . $parameters['controller'] . '" is not allowed by this plugin. Please check for TYPO3\\CMS\\Extbase\\Utility\\ExtensionUtility::configurePlugin() in your ext_localconf.php.', 1313855173);
@@ -209,9 +209,9 @@ class RequestBuilder implements \TYPO3\CMS\Core\SingletonInterface {
                $allowedActionNames = $this->allowedControllerActions[$controllerName];
                if (!in_array($actionName, $allowedActionNames)) {
                        $configuration = $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
-                       if (isset($configuration['mvc']['throwPageNotFoundExceptionIfActionCantBeResolved']) && (boolean) $configuration['mvc']['throwPageNotFoundExceptionIfActionCantBeResolved']) {
+                       if (isset($configuration['mvc']['throwPageNotFoundExceptionIfActionCantBeResolved']) && (bool)$configuration['mvc']['throwPageNotFoundExceptionIfActionCantBeResolved']) {
                                throw new \TYPO3\CMS\Core\Error\Http\PageNotFoundException('The requested resource was not found', 1313857898);
-                       } elseif (isset($configuration['mvc']['callDefaultActionIfActionCantBeResolved']) && (boolean) $configuration['mvc']['callDefaultActionIfActionCantBeResolved']) {
+                       } elseif (isset($configuration['mvc']['callDefaultActionIfActionCantBeResolved']) && (bool)$configuration['mvc']['callDefaultActionIfActionCantBeResolved']) {
                                return $defaultActionName;
                        }
                        throw new \TYPO3\CMS\Extbase\Mvc\Exception\InvalidActionNameException('The action "' . $actionName . '" (controller "' . $controllerName . '") is not allowed by this plugin. Please check TYPO3\\CMS\\Extbase\\Utility\\ExtensionUtility::configurePlugin() in your ext_localconf.php.', 1313855175);
index 5305a24..9f8aed0 100644 (file)
@@ -265,7 +265,7 @@ class UriBuilder {
         * @see TSref/typolink.addQueryString
         */
        public function setAddQueryString($addQueryString) {
-               $this->addQueryString = (boolean) $addQueryString;
+               $this->addQueryString = (bool)$addQueryString;
                return $this;
        }
 
@@ -329,7 +329,7 @@ class UriBuilder {
         * @return \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder the current UriBuilder to allow method chaining
         */
        public function setArgumentPrefix($argumentPrefix) {
-               $this->argumentPrefix = (string) $argumentPrefix;
+               $this->argumentPrefix = (string)$argumentPrefix;
                return $this;
        }
 
@@ -348,7 +348,7 @@ class UriBuilder {
         * @api
         */
        public function setLinkAccessRestrictedPages($linkAccessRestrictedPages) {
-               $this->linkAccessRestrictedPages = (boolean) $linkAccessRestrictedPages;
+               $this->linkAccessRestrictedPages = (bool)$linkAccessRestrictedPages;
                return $this;
        }
 
@@ -410,7 +410,7 @@ class UriBuilder {
         * @api
         */
        public function setNoCache($noCache) {
-               $this->noCache = (boolean) $noCache;
+               $this->noCache = (bool)$noCache;
                return $this;
        }
 
@@ -431,7 +431,7 @@ class UriBuilder {
         * @api
         */
        public function setUseCacheHash($useCacheHash) {
-               $this->useCacheHash = (boolean) $useCacheHash;
+               $this->useCacheHash = (bool)$useCacheHash;
                return $this;
        }
 
index 70b736d..3558560 100644 (file)
@@ -53,6 +53,6 @@ class BooleanConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\Abstrac
         * @api
         */
        public function convertFrom($source, $targetType, array $convertedChildProperties = array(), \TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface $configuration = NULL) {
-               return (boolean) $source;
+               return (bool)$source;
        }
 }
index f21a76e..539362e 100644 (file)
@@ -54,6 +54,6 @@ class StringConverter extends \TYPO3\CMS\Extbase\Property\TypeConverter\Abstract
         * @api
         */
        public function convertFrom($source, $targetType, array $convertedChildProperties = array(), \TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface $configuration = NULL) {
-               return (string) $source;
+               return (string)$source;
        }
 }
index 125b0ee..2c04d9c 100644 (file)
@@ -97,7 +97,7 @@ class FieldProvider implements \TYPO3\CMS\Scheduler\AdditionalFieldProviderInter
         */
        public function saveAdditionalFields(array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task) {
                $task->setCommandIdentifier($submittedData['task_extbase']['action']);
-               $task->setArguments((array) $submittedData['task_extbase']['arguments']);
+               $task->setArguments((array)$submittedData['task_extbase']['arguments']);
                return TRUE;
        }
 
@@ -252,7 +252,7 @@ class FieldProvider implements \TYPO3\CMS\Scheduler\AdditionalFieldProviderInter
                $argumentReflection = $this->reflectionService->getMethodParameters($command->getControllerClassName(), $command->getControllerCommandName() . 'Command');
                $defaultValue = $argumentReflection[$argumentName]['defaultValue'];
                if ($type === 'boolean') {
-                       $defaultValue = (boolean) $defaultValue ? 1 : 0;
+                       $defaultValue = (bool)$defaultValue ? 1 : 0;
                }
                return $defaultValue;
        }
@@ -305,7 +305,7 @@ class FieldProvider implements \TYPO3\CMS\Scheduler\AdditionalFieldProviderInter
                if ($type === 'boolean') {
                        // checkbox field for boolean values.
                        $html = '<input type="hidden" name="' . $fieldName . '" value="0" />';
-                       $html .= '<input type="checkbox" name="' . $fieldName . '" value="1" ' . ((boolean) $currentValue ? ' checked="checked"' : '') . '/>';
+                       $html .= '<input type="checkbox" name="' . $fieldName . '" value="1" ' . ((bool)$currentValue ? ' checked="checked"' : '') . '/>';
                } else {
                        // regular string, also the default field type
                        $html = '<input type="text" name="' . $fieldName . '" value="' . htmlspecialchars($currentValue) . '" /> ';
index 01bcf38..9fafacd 100644 (file)
@@ -53,7 +53,7 @@ class CacheService implements \TYPO3\CMS\Core\SingletonInterface {
        /**
         * Clears the page cache
         *
-        * @param mixed $pageIdsToClear (integer) single or (array) multiple pageIds to clear the cache for
+        * @param mixed $pageIdsToClear (int) single or (array) multiple pageIds to clear the cache for
         * @return void
         */
        public function clearPageCache($pageIdsToClear = NULL) {
index 779b486..8309bed 100644 (file)
@@ -272,7 +272,7 @@ class ArrayUtility {
                        throw new \InvalidArgumentException('convertObjectToArray expects either array or object as input, ' . gettype($subject) . ' given.', 1287059709);
                }
                if (is_object($subject)) {
-                       $subject = (array) $subject;
+                       $subject = (array)$subject;
                }
                foreach ($subject as $key => $value) {
                        if (is_array($value) || is_object($value)) {
index a55f678..00f7b91 100644 (file)
@@ -120,7 +120,7 @@ class PostRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
                        ->matching(
                                $query->equals('blog', $blog)
                        )
-                       ->setLimit((integer)$limit)
+                       ->setLimit((int)$limit)
                        ->execute();
        }
 
index aa73c98..b23685a 100644 (file)
@@ -65,6 +65,6 @@ class ResponseTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        public function __toStringReturnsActualContent() {
                $this->mockResponse->_set('content', 'foo');
-               $this->assertSame('foo', (string) $this->mockResponse);
+               $this->assertSame('foo', (string)$this->mockResponse);
        }
 }
index 10e59f6..e719c2b 100644 (file)
@@ -489,7 +489,7 @@ class DataMapFactoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
                $dataMapFactory->_call('setType', $columnMap, $columnConfiguration);
 
-               $this->assertEquals($type, (string) $columnMap->getType());
-               $this->assertEquals($internalType, (string) $columnMap->getInternalType());
+               $this->assertEquals($type, (string)$columnMap->getType());
+               $this->assertEquals($internalType, (string)$columnMap->getInternalType());
        }
 }
index 197cd3b..ee3ddf3 100644 (file)
@@ -122,8 +122,8 @@ $EM_CONF[$_EXTKEY] = ' . $emConf . ';
        }
 
        /**
-        * Checks whether the passed dependency is TER-style (string) or
-        * TER2-style (array) and returns a single string for displaying the
+        * Checks whether the passed dependency is TER-style (string)or
+        * TER2-style (array)and returns a single string for displaying the
         * dependencies.
         *
         * It leaves out all version numbers and the "php" and "typo3" dependencies,
index 25cb786..c7b6763 100644 (file)
@@ -230,7 +230,7 @@ class FileHandlingUtility implements \TYPO3\CMS\Core\SingletonInterface {
         */
        protected function getAbsolutePathsToConfiguredDirectories(array $extension) {
                $requestedDirectories = array();
-               $requestUploadFolder = isset($extension['uploadfolder']) ? (boolean)$extension['uploadfolder'] : FALSE;
+               $requestUploadFolder = isset($extension['uploadfolder']) ? (bool)$extension['uploadfolder'] : FALSE;
                if ($requestUploadFolder) {
                        $requestedDirectories[] = $this->getAbsolutePath($this->getPathToUploadFolder($extension));
                }
index ad6e83c..e9d5a23 100644 (file)
@@ -308,13 +308,13 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
                        $diff = $this->installToolSqlParser->getDatabaseExtra($fieldDefinitionsFromFile, $fieldDefinitionsFromCurrentDatabase);
                        $updateStatements = $this->installToolSqlParser->getUpdateSuggestions($diff);
                        $db = $this->getDatabaseConnection();
-                       foreach ((array) $updateStatements['add'] as $string) {
+                       foreach ((array)$updateStatements['add'] as $string) {
                                $db->admin_query($string);
                        }
-                       foreach ((array) $updateStatements['change'] as $string) {
+                       foreach ((array)$updateStatements['change'] as $string) {
                                $db->admin_query($string);
                        }
-                       foreach ((array) $updateStatements['create_table'] as $string) {
+                       foreach ((array)$updateStatements['create_table'] as $string) {
                                $db->admin_query($string);
                        }
                }
index 9d267f6..5aed95e 100644 (file)
@@ -94,7 +94,7 @@ abstract class AbstractXmlParser implements \SplSubject {
                $isAvailable = TRUE;
                if (!extension_loaded($this->requiredPhpExtensions)) {
                        $prefix = PHP_SHLIB_SUFFIX === 'dll' ? 'php_' : '';
-                       if (!(((bool) ini_get('enable_dl') && !(bool) ini_get('safe_mode')) && function_exists('dl') && dl($prefix . $this->requiredPhpExtensions . PHP_SHLIB_SUFFIX))) {
+                       if (!(((bool)ini_get('enable_dl') && !(bool)ini_get('safe_mode')) && function_exists('dl') && dl($prefix . $this->requiredPhpExtensions . PHP_SHLIB_SUFFIX))) {
                                $isAvailable = FALSE;
                        }
                }
index 75999c4..26b5b5d 100644 (file)
@@ -42,7 +42,7 @@ abstract class AbstractNode implements \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\N
                                        }
                                        $output = $output->__toString();
                                } else {
-                                       $output = (string) $output;
+                                       $output = (string)$output;
                                }
                                $subNodeOutput = $subNode->evaluate($renderingContext);
 
@@ -52,7 +52,7 @@ abstract class AbstractNode implements \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\N
                                        }
                                        $output .= $subNodeOutput->__toString();
                                } else {
-                                       $output .= (string) $subNodeOutput;
+                                       $output .= (string)$subNodeOutput;
                                }
                        }
                }
index f9773fc..3378ed2 100644 (file)
@@ -234,7 +234,7 @@ class BooleanNode extends \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode {
                                if (!self::isComparable($evaluatedLeftSide, $evaluatedRightSide)) {
                                        return FALSE;
                                }
-                               return (boolean) ((int)$evaluatedLeftSide % (int)$evaluatedRightSide);
+                               return (bool)((int)$evaluatedLeftSide % (int)$evaluatedRightSide);
                        case '>':
                                if (!self::isComparable($evaluatedLeftSide, $evaluatedRightSide)) {
                                        return FALSE;
@@ -331,7 +331,7 @@ class BooleanNode extends \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode {
                        return (!empty($value) && strtolower($value) !== 'false');
                }
                if (is_array($value) || (is_object($value) && $value instanceof \Countable)) {
-                       return (bool) count($value);
+                       return (bool)count($value);
                }
                if (is_object($value)) {
                        return TRUE;
index 7a2dfbd..b5e4482 100644 (file)
@@ -710,7 +710,7 @@ class TemplateParser {
        protected function postProcessArgumentsForObjectAccessor(array $arguments) {
                foreach ($arguments as $argumentName => $argumentValue) {
                        if (!($argumentValue instanceof \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode)) {
-                               $arguments[$argumentName] = $this->objectManager->get('TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\TextNode', (string) $argumentValue);
+                               $arguments[$argumentName] = $this->objectManager->get('TYPO3\\CMS\\Fluid\\Core\\Parser\\SyntaxTree\\TextNode', (string)$argumentValue);
                        }
                }
                return $arguments;
index 5691a8a..add0425 100644 (file)
@@ -122,7 +122,7 @@ class DocbookGenerator extends \TYPO3\CMS\Fluid\Service\AbstractGenerator {
                $row->addChild('entry', $type);
                $row->addChild('entry', $required);
                $row->addChild('entry', $description);
-               $row->addChild('entry', (string) $default);
+               $row->addChild('entry', (string)$default);
        }
 
        /**
index 7554595..09ca032 100644 (file)
@@ -94,7 +94,7 @@ class CObjectViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHel
                if (is_object($data)) {
                        $data = \TYPO3\CMS\Extbase\Reflection\ObjectAccess::getGettableProperties($data);
                } elseif (is_string($data) || is_numeric($data)) {
-                       $currentValue = (string) $data;
+                       $currentValue = (string)$data;
                        $data = array($data);
                }
                /** @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObject */
index 844528e..ecf551c 100644 (file)
@@ -47,6 +47,6 @@ class DebugViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelpe
         * @return string
         */
        public function render($title = NULL, $maxDepth = 8, $plainText = FALSE, $ansiColors = FALSE, $inline = FALSE, $blacklistedClassNames = NULL, $blacklistedPropertyNames = NULL) {
-               return \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($this->renderChildren(), $title, $maxDepth, (boolean) $plainText, (boolean) $ansiColors, (boolean) $inline, $blacklistedClassNames, $blacklistedPropertyNames);
+               return \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($this->renderChildren(), $title, $maxDepth, (bool)$plainText, (bool)$ansiColors, (bool)$inline, $blacklistedClassNames, $blacklistedPropertyNames);
        }
 }
index 9b72dd1..f18a9bd 100644 (file)
@@ -38,7 +38,7 @@ abstract class AbstractFormViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\A
                if (!$this->viewHelperVariableContainer->exists('TYPO3\\CMS\\Fluid\\ViewHelpers\\FormViewHelper', 'fieldNamePrefix')) {
                        return $fieldName;
                }
-               $fieldNamePrefix = (string) $this->viewHelperVariableContainer->get('TYPO3\\CMS\\Fluid\\ViewHelpers\\FormViewHelper', 'fieldNamePrefix');
+               $fieldNamePrefix = (string)$this->viewHelperVariableContainer->get('TYPO3\\CMS\\Fluid\\ViewHelpers\\FormViewHelper', 'fieldNamePrefix');
                if ($fieldNamePrefix === '') {
                        return $fieldName;
                }
index 7cbd416..dacf904 100644 (file)
@@ -160,7 +160,7 @@ class SelectViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFie
                                        $key = \TYPO3\CMS\Extbase\Reflection\ObjectAccess::getPropertyPath($value, $this->arguments['optionValueField']);
                                        if (is_object($key)) {
                                                if (method_exists($key, '__toString')) {
-                                                       $key = (string) $key;
+                                                       $key = (string)$key;
                                                } else {
                                                        throw new \TYPO3\CMS\Fluid\Core\ViewHelper\Exception('Identifying value for object of class "' . get_class($value) . '" was an object.', 1247827428);
                                                }
@@ -169,7 +169,7 @@ class SelectViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFie
                                } elseif ($this->persistenceManager->getIdentifierByObject($value) !== NULL) {
                                        $key = $this->persistenceManager->getIdentifierByObject($value);
                                } elseif (method_exists($value, '__toString')) {
-                                       $key = (string) $value;
+                                       $key = (string)$value;
                                } else {
                                        throw new \TYPO3\CMS\Fluid\Core\ViewHelper\Exception('No identifying value for object of class "' . get_class($value) . '" found.', 1247826696);
                                }
@@ -177,13 +177,13 @@ class SelectViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFie
                                        $value = \TYPO3\CMS\Extbase\Reflection\ObjectAccess::getPropertyPath($value, $this->arguments['optionLabelField']);
                                        if (is_object($value)) {
                                                if (method_exists($value, '__toString')) {
-                                                       $value = (string) $value;
+                                                       $value = (string)$value;
                                                } else {<