[TASK] Apply CGL compatibility (PSR-1 and PSR-2) 32/46132/2
authorWouter Wolters <typo3@wouterwolters.nl>
Thu, 21 Jan 2016 09:25:52 +0000 (10:25 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 21 Jan 2016 12:59:19 +0000 (13:59 +0100)
Regular code cleanup about CGL standards.

Executed via php-cs-fixer fix --config-file Build/.php_cs typo3

Resolves: #72860
Releases: 7.6
Change-Id: Ifcf1355b1e916c6ddb2a44683dca3492826b5492
Reviewed-on: https://review.typo3.org/46132
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
32 files changed:
typo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php
typo3/sysext/beuser/Classes/Domain/Repository/BackendUserRepository.php
typo3/sysext/core/Classes/Charset/CharsetConverter.php
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Classes/Database/RelationHandler.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/core/Classes/Mail/Rfc822AddressesParser.php
typo3/sysext/core/Resources/PHP/ClassMapGenerator.php
typo3/sysext/core/Resources/PHP/RemoveXSS.php
typo3/sysext/core/Tests/FunctionalTestCaseBootstrapUtility.php
typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Tests/TestClass.php
typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/class.ext_update.php
typo3/sysext/core/Tests/Unit/Http/MessageTest.php
typo3/sysext/extensionmanager/Classes/ViewHelpers/Link/ActionViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/SpacelessViewHelperTest.php
typo3/sysext/fluid_styled_content/Classes/ViewHelpers/Link/ClickEnlargeViewHelper.php
typo3/sysext/form/Classes/Domain/Builder/ValidationBuilder.php
typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php
typo3/sysext/frontend/Tests/Unit/ContentObject/Fixtures/PageRepositoryFixture.php
typo3/sysext/impexp/Classes/Controller/ImportExportController.php
typo3/sysext/impexp/Classes/Domain/Repository/PresetRepository.php
typo3/sysext/impexp/Classes/Import.php
typo3/sysext/impexp/Classes/ImportExport.php
typo3/sysext/indexed_search/Classes/Hook/CrawlerHook.php
typo3/sysext/recordlist/Classes/RecordList.php
typo3/sysext/recycler/Classes/Domain/Model/DeletedRecords.php
typo3/sysext/recycler/Classes/Utility/RecyclerUtility.php
typo3/sysext/rtehtmlarea/Classes/Form/Element/RichTextElement.php
typo3/sysext/t3editor/Classes/T3editor.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Modify/ActionTest.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/Publish/ActionTest.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/FAL/PublishAll/ActionTest.php

index abb13ea..3621a9d 100644 (file)
@@ -1018,4 +1018,4 @@ abstract class AbstractTreeView
     {
         return $GLOBALS['TYPO3_DB'];
     }
-}
\ No newline at end of file
+}
index 72667da..e7d190f 100644 (file)
@@ -48,7 +48,7 @@ class BackendUserRepository extends \TYPO3\CMS\Extbase\Domain\Repository\Backend
         if ($demand->getUserName() !== '') {
             $searchConstraints = array();
             foreach (array('userName', 'uid', 'realName') as $field) {
-                 $searchConstraints[] = $query->like(
+                $searchConstraints[] = $query->like(
                     $field, '%' . $GLOBALS['TYPO3_DB']->escapeStrForLike($demand->getUserName(), 'be_users') . '%'
                 );
             }
index 9aaae41..0530107 100644 (file)
@@ -52,7 +52,6 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
  */
 class CharsetConverter
 {
-
     /**
      * ASCII Value for chars with no equivalent.
      *
@@ -1728,7 +1727,8 @@ class CharsetConverter
      *
      * @return array
      */
-    protected function getAllLanguageCodes() {
+    protected function getAllLanguageCodes()
+    {
         // Get all languages where TYPO3 code is the same as the ISO code
         $typo3LanguageCodes = array_keys($this->charSetArray);
         $allLanguageCodes = array_combine($typo3LanguageCodes, $typo3LanguageCodes);
index 4a13eb1..8293137 100644 (file)
@@ -5079,8 +5079,8 @@ class DataHandler
     {
         $uid = (int)$uid;
         if ($uid === 0) {
-               $this->newlog2('Deleting all pages starting from the root-page is disabled.', 'pages', 0, 0, 2);
-               return;
+            $this->newlog2('Deleting all pages starting from the root-page is disabled.', 'pages', 0, 0, 2);
+            return;
         }
         // Getting list of pages to delete:
         if ($force) {
index 737664f..b0ced4a 100644 (file)
@@ -933,7 +933,7 @@ class RelationHandler
                 if (!empty($updateValues)) {
                     // Update tstamp if any foreign field value has changed
                     if (!empty($GLOBALS['TCA'][$table]['ctrl']['tstamp'])) {
-                        $currentRow = BackendUtility::getRecord($table, $uid, implode(',', array_keys($updateValues)) , '', true);
+                        $currentRow = BackendUtility::getRecord($table, $uid, implode(',', array_keys($updateValues)), '', true);
                         $needTstampUpdate = false;
                         if (empty($currentRow)) {
                             $needTstampUpdate = true;
index ff8c2cb..1639e7c 100644 (file)
@@ -2428,7 +2428,6 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface
             )
         ),
 
-
         // Sysnote
         'sysnote-type-0' => array(
             'provider' => FontawesomeIconProvider::class,
index 5ae3a4c..157c690 100644 (file)
@@ -37,7 +37,6 @@ namespace TYPO3\CMS\Core\Mail;
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  * @category Mail
- * @package Mail
  * @copyright 2001-2010 Richard Heyes
  * @license http://opensource.org/licenses/bsd-license.php New BSD License
  * @link http://pear.php.net/package/Mail/
@@ -60,7 +59,6 @@ namespace TYPO3\CMS\Core\Mail;
  * print_r($structure);
  * @version $Revision: 294749 $
  * @license BSD
- * @package Mail
  */
 class Rfc822AddressesParser
 {
index b487ed6..233f348 100644 (file)
@@ -18,8 +18,8 @@
 
 namespace Composer\Autoload;
 
-use Symfony\Component\Finder\Finder;
 use Composer\IO\IOInterface;
+use Symfony\Component\Finder\Finder;
 
 /**
  * ClassMapGenerator
@@ -66,7 +66,7 @@ class ClassMapGenerator
                 $path = Finder::create()->files()->followLinks()->name('/\.(php|inc|hh)$/')->in($path);
             } else {
                 throw new \RuntimeException(
-                    'Could not scan for classes inside "'.$path.
+                    'Could not scan for classes inside "' . $path .
                     '" which does not appear to be a file nor a folder'
                 );
             }
@@ -95,10 +95,10 @@ class ClassMapGenerator
 
                 if (!isset($map[$class])) {
                     $map[$class] = $filePath;
-                } elseif ($io && $map[$class] !== $filePath && !preg_match('{/(test|fixture|example|stub)s?/}i', strtr($map[$class].' '.$filePath, '\\', '/'))) {
+                } elseif ($io && $map[$class] !== $filePath && !preg_match('{/(test|fixture|example|stub)s?/}i', strtr($map[$class] . ' ' . $filePath, '\\', '/'))) {
                     $io->writeError(
-                        '<warning>Warning: Ambiguous class resolution, "'.$class.'"'.
-                        ' was found in both "'.$map[$class].'" and "'.$filePath.'", the first will be used.</warning>'
+                        '<warning>Warning: Ambiguous class resolution, "' . $class . '"' .
+                        ' was found in both "' . $map[$class] . '" and "' . $filePath . '", the first will be used.</warning>'
                     );
                 }
             }
@@ -132,11 +132,11 @@ class ClassMapGenerator
                 }
             }
         } catch (\Exception $e) {
-            throw new \RuntimeException('Could not scan for classes inside '.$path.": \n".$e->getMessage(), 0, $e);
+            throw new \RuntimeException('Could not scan for classes inside ' . $path . ": \n" . $e->getMessage(), 0, $e);
         }
 
         // return early if there is no chance of matching anything in this file
-        if (!preg_match('{\b(?:class|interface'.$extraTypes.')\s}i', $contents)) {
+        if (!preg_match('{\b(?:class|interface' . $extraTypes . ')\s}i', $contents)) {
             return array();
         }
 
@@ -161,7 +161,7 @@ class ClassMapGenerator
 
         preg_match_all('{
             (?:
-                 \b(?<![\$:>])(?P<type>class|interface'.$extraTypes.') \s++ (?P<name>[a-zA-Z_\x7f-\xff:][a-zA-Z0-9_\x7f-\xff:\-]*+)
+                 \b(?<![\$:>])(?P<type>class|interface' . $extraTypes . ') \s++ (?P<name>[a-zA-Z_\x7f-\xff:][a-zA-Z0-9_\x7f-\xff:\-]*+)
                | \b(?<![\$:>])(?P<ns>namespace) (?P<nsname>\s++[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+(?:\s*+\\\\\s*+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+)*+)? \s*+ [\{;]
             )
         }ix', $contents, $matches);
@@ -176,7 +176,7 @@ class ClassMapGenerator
                 $name = $matches['name'][$i];
                 if ($name[0] === ':') {
                     // This is an XHP class, https://github.com/facebook/xhp
-                    $name = 'xhp'.substr(str_replace(array('-', ':'), array('_', '__'), $name), 1);
+                    $name = 'xhp' . substr(str_replace(array('-', ':'), array('_', '__'), $name), 1);
                 } elseif ($matches['type'][$i] === 'enum') {
                     // In Hack, something like:
                     //   enum Foo: int { HERP = '123'; }
index 44bfc97..7bf25c8 100644 (file)
@@ -15,7 +15,6 @@
  * License:
  * This code is public domain, you are free to do whatever you want with it,
  * including adding it to your own project which can be under any license.
- * @package    RemoveXSS
  */
 class RemoveXSS
 {
index 3c2498b..e0dc0a4 100644 (file)
@@ -70,7 +70,7 @@ class FunctionalTestCaseBootstrapUtility
      * @param string $testCaseClassName Name of test case class
      * @return string
      */
-    static public function getInstanceIdentifier($testCaseClassName)
+    public static function getInstanceIdentifier($testCaseClassName)
     {
         // 7 characters of sha1 should be enough for a unique identification
         return substr(sha1($testCaseClassName), 0, 7);
@@ -82,7 +82,7 @@ class FunctionalTestCaseBootstrapUtility
      * @param string $testCaseClassName Name of test case class
      * @return string
      */
-    static public function getInstancePath($testCaseClassName)
+    public static function getInstancePath($testCaseClassName)
     {
         return ORIGINAL_ROOT . 'typo3temp/functional-' . static::getInstanceIdentifier($testCaseClassName);
     }
index a056248..3ac8b89 100644 (file)
@@ -309,5 +309,4 @@ class MessageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
         $this->setExpectedException('InvalidArgumentException');
         $this->message->withAddedHeader($name, $value);
     }
-
 }
index 9c4cf82..97dd4e6 100644 (file)
@@ -39,5 +39,4 @@ class ActionViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBased
         $this->registerTagAttribute('rev', 'string', 'Specifies the relationship between the linked document and the current document');
         $this->registerTagAttribute('target', 'string', 'Specifies where to open the linked document');
     }
-
 }
index 59ee773..e8ed59d 100644 (file)
@@ -20,7 +20,6 @@ use TYPO3\CMS\Fluid\ViewHelpers\SpacelessViewHelper;
  */
 class SpacelessViewHelperTest extends \TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase
 {
-
     /**
      * @test
      */
index 1284210..1a5d67c 100644 (file)
@@ -14,12 +14,12 @@ namespace TYPO3\CMS\FluidStyledContent\ViewHelpers\Link;
  * The TYPO3 project - inspiring people to share!
  */
 
+use TYPO3\CMS\Core\Resource\FileInterface;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Extbase\Service\TypoScriptService;
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
 use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
-use TYPO3\CMS\Core\Resource\FileInterface;
 
 /**
  * A view helper for creating a link for an image popup.
index b2a638d..1074759 100644 (file)
@@ -151,7 +151,7 @@ class ValidationBuilder
                         if ((int)$ruleArguments['showMessage'] === 1) {
                             $mandatoryMessage = $validator->renderMessage($ruleArguments['message.'], $ruleArguments['message']);
                         } else {
-                            $mandatoryMessage = NULL;
+                            $mandatoryMessage = null;
                         }
 
                         $this->rules[$this->configuration->getPrefix()][$fieldName][] = array(
index 8190c0c..ebb304d 100644 (file)
@@ -4764,7 +4764,8 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     /**
      * @return array
      */
-    public function substituteMarkerArrayCachedReturnsExpectedContentDataProvider() {
+    public function substituteMarkerArrayCachedReturnsExpectedContentDataProvider()
+    {
         return array(
             'no markers defined' => array(
                 'dummy content with ###UNREPLACED### marker',
@@ -4875,7 +4876,8 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
      * @param bool $shouldQueryCache
      * @param bool $shouldStoreCache
      */
-    public function substituteMarkerArrayCachedReturnsExpectedContent($content, array $markContentArray, array $subpartContentArray, array $wrappedSubpartContentArray, $expectedContent, $shouldQueryCache = true, $shouldStoreCache = true) {
+    public function substituteMarkerArrayCachedReturnsExpectedContent($content, array $markContentArray, array $subpartContentArray, array $wrappedSubpartContentArray, $expectedContent, $shouldQueryCache = true, $shouldStoreCache = true)
+    {
         /** @var PageRepositoryFixture|\PHPUnit_Framework_MockObject_MockObject $pageRepo */
         $pageRepo = $this->typoScriptFrontendControllerMock->sys_page;
         $pageRepo->resetCallCount();
@@ -4890,7 +4892,8 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     /**
      * @test
      */
-    public function substituteMarkerArrayCachedRetrievesCachedValueFromRuntimeCache() {
+    public function substituteMarkerArrayCachedRetrievesCachedValueFromRuntimeCache()
+    {
         /** @var PageRepositoryFixture|\PHPUnit_Framework_MockObject_MockObject $pageRepo */
         $pageRepo = $this->typoScriptFrontendControllerMock->sys_page;
         $pageRepo->resetCallCount();
@@ -4918,7 +4921,8 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     /**
      * @test
      */
-    public function substituteMarkerArrayCachedRetrievesCachedValueFromDbCache() {
+    public function substituteMarkerArrayCachedRetrievesCachedValueFromDbCache()
+    {
         /** @var PageRepositoryFixture|\PHPUnit_Framework_MockObject_MockObject $pageRepo */
         $pageRepo = $this->typoScriptFrontendControllerMock->sys_page;
         $pageRepo->resetCallCount();
@@ -4946,7 +4950,8 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     /**
      * @test
      */
-    public function substituteMarkerArrayCachedStoresResultInCaches() {
+    public function substituteMarkerArrayCachedStoresResultInCaches()
+    {
         /** @var PageRepositoryFixture|\PHPUnit_Framework_MockObject_MockObject $pageRepo */
         $pageRepo = $this->typoScriptFrontendControllerMock->sys_page;
         $pageRepo->resetCallCount();
@@ -4977,7 +4982,8 @@ class ContentObjectRendererTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
     /**
      * @return TypoScriptFrontendController
      */
-    protected function getFrontendController() {
+    protected function getFrontendController()
+    {
         return $GLOBALS['TSFE'];
     }
 }
index d51370e..8f52b3f 100644 (file)
@@ -21,7 +21,6 @@ use TYPO3\CMS\Frontend\Page\PageRepository;
  */
 class PageRepositoryFixture extends PageRepository
 {
-
     public static $getHashCallCount = 0;
     public static $storeHashCallCount = 0;
     public static $dbCacheContent = null;
index 9c3a21b..39b96d9 100644 (file)
@@ -34,12 +34,12 @@ use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
 use TYPO3\CMS\Core\Utility\File\ExtendedFileUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Core\Utility\MathUtility;
+use TYPO3\CMS\Fluid\View\StandaloneView;
 use TYPO3\CMS\Impexp\Domain\Repository\PresetRepository;
 use TYPO3\CMS\Impexp\Export;
 use TYPO3\CMS\Impexp\Import;
 use TYPO3\CMS\Impexp\View\ExportPageTreeView;
 use TYPO3\CMS\Lang\LanguageService;
-use TYPO3\CMS\Fluid\View\StandaloneView;
 
 /**
  * Main script class for the Import / Export facility
@@ -172,7 +172,7 @@ class ImportExportController extends BaseScriptClass
         $this->doc = GeneralUtility::makeInstance(DocumentTemplate::class);
         $this->doc->bodyTagId = 'imp-exp-mod';
         $this->pageinfo = BackendUtility::readPageAccess($this->id, $this->perms_clause);
-        if(is_array($this->pageinfo)) {
+        if (is_array($this->pageinfo)) {
             $this->moduleTemplate->getDocHeaderComponent()->setMetaInformation($this->pageinfo);
         }
         // Setting up the context sensitive menu:
@@ -846,7 +846,7 @@ class ImportExportController extends BaseScriptClass
                 if (GeneralUtility::_POST('_upload')) {
                     $this->standaloneView->assign('submitted', GeneralUtility::_POST('_upload'));
                     $this->standaloneView->assign('noFileUploaded', $this->fileProcessor->internalUploadMap[1]);
-                    if($this->uploadedFiles[0]) {
+                    if ($this->uploadedFiles[0]) {
                         $this->standaloneView->assign('uploadedFile', $this->uploadedFiles[0]->getName());
                     }
                 }
index 3939335..9229e65 100644 (file)
@@ -25,7 +25,6 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
  */
 class PresetRepository
 {
-
     /**
      * @param int $pageId
      * @return array
index 73b87b0..fbe6de5 100644 (file)
@@ -311,7 +311,8 @@ class Import extends ImportExport
      * @param array $storageRecord The storage record which should get compared
      * @return bool Returns TRUE when both object storages can be seen as equivalent
      */
-    protected function isEquivalentObjectStorage(ResourceStorage $storageObject, array $storageRecord) {
+    protected function isEquivalentObjectStorage(ResourceStorage $storageObject, array $storageRecord)
+    {
         // compare the properties: driver, writable and online
         if (
             $storageObject->getDriverType() === $storageRecord['driver']
@@ -336,7 +337,8 @@ class Import extends ImportExport
      *
      * @return array Messages explaining issues which need to get resolved before import
      */
-    public function checkImportPrerequisites() {
+    public function checkImportPrerequisites()
+    {
         $messages = array();
 
         // Check #1: Extension dependencies
@@ -384,7 +386,6 @@ class Import extends ImportExport
                         $configuration = $resourceStorage->getConfiguration();
                         $messages['resourceStorageFolderMissing_' . $storageRecordUid] = 'The resource storage "' . $resourceStorage->getName() . '" will get imported. The storage target directory "' . $configuration['basePath'] . '" does not exist. Please create the directory prior to starting the import!';
                     }
-
                 }
             }
         }
index f93328b..4ad68bc 100644 (file)
@@ -1206,7 +1206,6 @@ abstract class ImportExport
         return !empty($this->errorLog) ? DebugUtility::viewArray($this->errorLog) : '';
     }
 
-
     /**
      * @return BackendUserAuthentication
      */
@@ -1230,5 +1229,4 @@ abstract class ImportExport
     {
         return $GLOBALS['LANG'];
     }
-
 }
index de3ccc6..7bf4a1a 100644 (file)
@@ -731,4 +731,4 @@ class CrawlerHook
             }
         }
     }
-}
\ No newline at end of file
+}
index 384e28c..f6b56d7 100644 (file)
@@ -31,7 +31,6 @@ use TYPO3\CMS\Core\Page\PageRenderer;
 use TYPO3\CMS\Core\Type\Bitmask\Permission;
 use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
-use TYPO3\CMS\Core\Utility\MathUtility;
 use TYPO3\CMS\Extbase\Service\TypoScriptService;
 use TYPO3\CMS\Lang\LanguageService;
 
index b020619..ddd0bc0 100644 (file)
@@ -442,4 +442,4 @@ class DeletedRecords
     {
         return $GLOBALS['TYPO3_DB'];
     }
-}
\ No newline at end of file
+}
index 4457c14..50cb352 100644 (file)
@@ -224,4 +224,4 @@ class RecyclerUtility
         }
         return $tables;
     }
-}
\ No newline at end of file
+}
index 41dcb39..9056ca9 100644 (file)
@@ -27,7 +27,6 @@ use TYPO3\CMS\Core\Utility\ArrayUtility;
 use TYPO3\CMS\Core\Utility\ClientUtility;
 use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
-use TYPO3\CMS\Core\Utility\MathUtility;
 use TYPO3\CMS\Lang\LanguageService;
 use TYPO3\CMS\Rtehtmlarea\RteHtmlAreaApi;
 
index 549fc60..c1d76ca 100755 (executable)
@@ -180,7 +180,6 @@ class T3editor implements \TYPO3\CMS\Core\SingletonInterface
 
         $this->relExtPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('t3editor');
         $this->codemirrorPath = $this->relExtPath . $this->codemirrorPath;
-
     }
 
     /**
index 6e21cae..99e68cd 100644 (file)
@@ -93,7 +93,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\FAL
 
         $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
             ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentImage)
-            ->setTable(self::TABLE_FileReference)->setField('title')->setValues('[Translate to Dansk:] This is Kasper', '[Translate to Dansk:] Taken at T3BOARD')->setStrict(TRUE));
+            ->setTable(self::TABLE_FileReference)->setField('title')->setValues('[Translate to Dansk:] This is Kasper', '[Translate to Dansk:] Taken at T3BOARD')->setStrict(true));
     }
 
     /**
index d53908f..47391b2 100644 (file)
@@ -97,7 +97,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\FAL
 
         $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
             ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentImage)
-            ->setTable(self::TABLE_FileReference)->setField('title')->setValues('[Translate to Dansk:] This is Kasper', '[Translate to Dansk:] Taken at T3BOARD')->setStrict(TRUE));
+            ->setTable(self::TABLE_FileReference)->setField('title')->setValues('[Translate to Dansk:] This is Kasper', '[Translate to Dansk:] Taken at T3BOARD')->setStrict(true));
     }
 
     /**
index 4add960..de47224 100644 (file)
@@ -97,7 +97,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\FAL
 
         $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
             ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentImage)
-            ->setTable(self::TABLE_FileReference)->setField('title')->setValues('[Translate to Dansk:] This is Kasper', '[Translate to Dansk:] Taken at T3BOARD')->setStrict(TRUE));
+            ->setTable(self::TABLE_FileReference)->setField('title')->setValues('[Translate to Dansk:] This is Kasper', '[Translate to Dansk:] Taken at T3BOARD')->setStrict(true));
     }
 
     /**