@@ -17,7 +17,7 @@ |
||
| 17 | 17 | use Fab\Vidi\Domain\Model\Content; |
| 18 | 18 | use Fab\Vidi\Tests\Functional\AbstractFunctionalTestCase; |
| 19 | 19 | |
| 20 | -require_once dirname(dirname(__FILE__)) . '/AbstractFunctionalTestCase.php'; |
|
| 20 | +require_once dirname(dirname(__FILE__)).'/AbstractFunctionalTestCase.php'; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Test case for class \Fab\Vidi\Grid\CategoryRenderer. |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | use Fab\Vidi\Module\ModuleLoader; |
| 17 | 17 | use Fab\Vidi\Tests\Functional\AbstractFunctionalTestCase; |
| 18 | 18 | |
| 19 | -require_once dirname(dirname(__FILE__)) . '/AbstractFunctionalTestCase.php'; |
|
| 19 | +require_once dirname(dirname(__FILE__)).'/AbstractFunctionalTestCase.php'; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * Test case for class \Fab\Vidi\Module\ModuleLoader. |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * @dataProvider attributeValueProvider |
| 55 | 55 | */ |
| 56 | 56 | public function attributeCanBeSet($attribute, $value) { |
| 57 | - $setter = 'set' . ucfirst($attribute); |
|
| 57 | + $setter = 'set'.ucfirst($attribute); |
|
| 58 | 58 | $this->fixture->$setter($value); |
| 59 | 59 | $this->assertAttributeEquals($value, $attribute, $this->fixture); |
| 60 | 60 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | use Fab\Vidi\Domain\Model\Selection; |
| 5 | 5 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | ExtensionConfiguration::class |
| 35 | 35 | )->get('vidi'); |
| 36 | 36 | |
| 37 | - foreach (GeneralUtility::trimExplode(',', $configuration['data_types'],true) as $dataType) { |
|
| 37 | + foreach (GeneralUtility::trimExplode(',', $configuration['data_types'], true) as $dataType) { |
|
| 38 | 38 | if (!$moduleLoader->isRegistered($dataType)) { |
| 39 | 39 | $moduleLoader->setDataType($dataType) |
| 40 | 40 | #->isShown(false) |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | /** @var Response $response */ |
| 124 | 124 | $response = $this->templateVariableContainer->get('response'); |
| 125 | 125 | $response->withHeader('Content-Type', 'application/xml'); |
| 126 | - $response->withHeader('Content-Disposition', 'attachment; filename="' . basename($this->exportFileNameAndPath) . '"'); |
|
| 126 | + $response->withHeader('Content-Disposition', 'attachment; filename="'.basename($this->exportFileNameAndPath).'"'); |
|
| 127 | 127 | $response->withHeader('Content-Length', filesize($this->exportFileNameAndPath)); |
| 128 | 128 | $response->withHeader('Content-Description', 'File Transfer'); |
| 129 | 129 | } |
@@ -87,15 +87,15 @@ discard block |
||
| 87 | 87 | /** @var Content $object */ |
| 88 | 88 | $object = reset($objects); |
| 89 | 89 | |
| 90 | - $this->temporaryDirectory = Environment::getPublicPath() . '/typo3temp/' . uniqid() . '/'; |
|
| 90 | + $this->temporaryDirectory = Environment::getPublicPath().'/typo3temp/'.uniqid().'/'; |
|
| 91 | 91 | GeneralUtility::mkdir($this->temporaryDirectory); |
| 92 | 92 | |
| 93 | 93 | // Compute file name and path variable |
| 94 | - $this->exportFileNameAndPath = $this->temporaryDirectory . $object->getDataType() . '-' . date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy']); |
|
| 94 | + $this->exportFileNameAndPath = $this->temporaryDirectory.$object->getDataType().'-'.date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy']); |
|
| 95 | 95 | |
| 96 | 96 | // Compute file name and path variable for zip |
| 97 | - $zipFileName = $object->getDataType() . '-' . date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy']) . '.zip'; |
|
| 98 | - $this->zipFileNameAndPath = $this->temporaryDirectory . $zipFileName; |
|
| 97 | + $zipFileName = $object->getDataType().'-'.date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy']).'.zip'; |
|
| 98 | + $this->zipFileNameAndPath = $this->temporaryDirectory.$zipFileName; |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $response->withHeader('Expires', '0'); |
| 164 | 164 | $response->withHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0'); |
| 165 | 165 | $response->withHeader('Content-Type', 'application/zip'); |
| 166 | - $response->withHeader('Content-Disposition', 'attachment; filename="' . basename($this->zipFileNameAndPath) . '"'); |
|
| 166 | + $response->withHeader('Content-Disposition', 'attachment; filename="'.basename($this->zipFileNameAndPath).'"'); |
|
| 167 | 167 | $response->withHeader('Content-Length', filesize($this->zipFileNameAndPath)); |
| 168 | 168 | $response->withHeader('Content-Description', 'File Transfer'); |
| 169 | 169 | $response->withHeader('Content-Transfer-Encoding', 'binary'); |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | /** @var Response $response */ |
| 98 | 98 | $response = $this->templateVariableContainer->get('response'); |
| 99 | 99 | $response->withHeader('Content-Type', 'application/csv'); |
| 100 | - $response->withHeader('Content-Disposition', 'attachment; filename="' . basename($this->exportFileNameAndPath) . '"'); |
|
| 100 | + $response->withHeader('Content-Disposition', 'attachment; filename="'.basename($this->exportFileNameAndPath).'"'); |
|
| 101 | 101 | $response->withHeader('Content-Length', filesize($this->exportFileNameAndPath)); |
| 102 | 102 | $response->withHeader('Content-Description', 'File Transfer'); |
| 103 | 103 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | ->setDataAttributes([ |
| 45 | 45 | 'toggle' => 'tooltip', |
| 46 | 46 | ]) |
| 47 | - ->setTitle($this->getLabelService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:' . $label)) |
|
| 47 | + ->setTitle($this->getLabelService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:'.$label)) |
|
| 48 | 48 | ->setIcon($this->getIconFactory()->getIcon($spriteName, Icon::SIZE_SMALL)) |
| 49 | 49 | ->render(); |
| 50 | 50 | } |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | */ |
| 194 | 194 | protected function getExistingMainConfiguration(): array |
| 195 | 195 | { |
| 196 | - $moduleSignature = $this->computeMainModule() . '_' . $this->getInternalModuleSignature(); |
|
| 196 | + $moduleSignature = $this->computeMainModule().'_'.$this->getInternalModuleSignature(); |
|
| 197 | 197 | return $GLOBALS['TBE_MODULES']['_configuration'][$moduleSignature] ?? []; |
| 198 | 198 | } |
| 199 | 199 | |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | ExtensionUtility::registerModule( |
| 316 | 316 | 'Fab.vidi', |
| 317 | 317 | $this->computeMainModule(), |
| 318 | - $this->dataType . '_' . $this->moduleKey, |
|
| 318 | + $this->dataType.'_'.$this->moduleKey, |
|
| 319 | 319 | $this->position, |
| 320 | 320 | [ |
| 321 | 321 | ContentController::class => 'index, list, delete, update, edit, copy, move, localize, sort, copyClipboard, moveClipboard', |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | */ |
| 379 | 379 | public function getParameterPrefix(): string |
| 380 | 380 | { |
| 381 | - return 'tx_vidi_' . strtolower($this->getSignature()); |
|
| 381 | + return 'tx_vidi_'.strtolower($this->getSignature()); |
|
| 382 | 382 | } |
| 383 | 383 | |
| 384 | 384 | /** |
@@ -1031,10 +1031,10 @@ discard block |
||
| 1031 | 1031 | if ($dataType === null) { |
| 1032 | 1032 | $dataType = $this->dataType; |
| 1033 | 1033 | } |
| 1034 | - $subModuleName = $dataType . '_' . $this->moduleKey; |
|
| 1034 | + $subModuleName = $dataType.'_'.$this->moduleKey; |
|
| 1035 | 1035 | |
| 1036 | 1036 | $mainModule = $this->mainModule ?: self::DEFAULT_MAIN_MODULE; |
| 1037 | - return $mainModule . '_Vidi' . GeneralUtility::underscoredToUpperCamelCase($subModuleName); |
|
| 1037 | + return $mainModule.'_Vidi'.GeneralUtility::underscoredToUpperCamelCase($subModuleName); |
|
| 1038 | 1038 | } |
| 1039 | 1039 | |
| 1040 | 1040 | } |