@@ -35,12 +35,12 @@ |
||
| 35 | 35 | $result = ''; |
| 36 | 36 | if ((int)$value > 0) { |
| 37 | 37 | |
| 38 | - $timeStamp = '@' . $value; |
|
| 38 | + $timeStamp = '@'.$value; |
|
| 39 | 39 | try { |
| 40 | 40 | $date = new \DateTime($timeStamp); |
| 41 | 41 | $date->setTimezone(new \DateTimeZone(date_default_timezone_get())); |
| 42 | 42 | } catch (\Exception $exception) { |
| 43 | - throw new \Exception('"' . $timeStamp . '" could not be parsed by \DateTime constructor: ' . $exception->getMessage(), 1447153621); |
|
| 43 | + throw new \Exception('"'.$timeStamp.'" could not be parsed by \DateTime constructor: '.$exception->getMessage(), 1447153621); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] ?: 'Y-m-d'; |
@@ -36,15 +36,15 @@ |
||
| 36 | 36 | if ($value > 0) { |
| 37 | 37 | |
| 38 | 38 | |
| 39 | - $timeStamp = '@' . $value; |
|
| 39 | + $timeStamp = '@'.$value; |
|
| 40 | 40 | try { |
| 41 | 41 | $date = new \DateTime($timeStamp); |
| 42 | 42 | $date->setTimezone(new \DateTimeZone(date_default_timezone_get())); |
| 43 | 43 | } catch (\Exception $exception) { |
| 44 | - throw new \Exception('"' . $timeStamp . '" could not be parsed by \DateTime constructor: ' . $exception->getMessage(), 1447153621); |
|
| 44 | + throw new \Exception('"'.$timeStamp.'" could not be parsed by \DateTime constructor: '.$exception->getMessage(), 1447153621); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] . ' ' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm']; |
|
| 47 | + $format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'].' '.$GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm']; |
|
| 48 | 48 | if (strpos($format, '%') !== false) { |
| 49 | 49 | $result = strftime($format, $date->format('U')); |
| 50 | 50 | } else { |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | ->setDataAttributes([ |
| 51 | 51 | 'toggle' => 'tooltip', |
| 52 | 52 | ]) |
| 53 | - ->setTitle($this->getLabelService()->sL('LLL:EXT:lang/locallang_mod_web_list.xlf:' . $label)) |
|
| 53 | + ->setTitle($this->getLabelService()->sL('LLL:EXT:lang/locallang_mod_web_list.xlf:'.$label)) |
|
| 54 | 54 | ->setIcon($this->getIconFactory()->getIcon($spriteName, Icon::SIZE_SMALL)) |
| 55 | 55 | ->render(); |
| 56 | 56 | } |
@@ -193,8 +193,8 @@ |
||
| 193 | 193 | $configuration = $backendConfigurationManager->getTypoScriptSetup(); |
| 194 | 194 | $querySettings = array('respectSysLanguage'); |
| 195 | 195 | foreach ($querySettings as $setting) { |
| 196 | - if (isset($configuration['config.']['tx_vidi.']['persistence.']['backend.'][$this->type . '.'][$setting])) { |
|
| 197 | - $value = (bool)$configuration['config.']['tx_vidi.']['persistence.']['backend.'][$this->type . '.'][$setting]; |
|
| 196 | + if (isset($configuration['config.']['tx_vidi.']['persistence.']['backend.'][$this->type.'.'][$setting])) { |
|
| 197 | + $value = (bool)$configuration['config.']['tx_vidi.']['persistence.']['backend.'][$this->type.'.'][$setting]; |
|
| 198 | 198 | ObjectAccess::setProperty($this->querySettings, $setting, $value); |
| 199 | 199 | } |
| 200 | 200 | } |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | */ |
| 82 | 82 | protected function getDataKey() |
| 83 | 83 | { |
| 84 | - return 'vidi_clipboard_' . $this->getModuleLoader()->getDataType(); |
|
| 84 | + return 'vidi_clipboard_'.$this->getModuleLoader()->getDataType(); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | { |
| 88 | 88 | |
| 89 | 89 | // workbook header |
| 90 | - $output = stripslashes(sprintf(self::XmlHeader, $this->encoding)) . "\n"; |
|
| 90 | + $output = stripslashes(sprintf(self::XmlHeader, $this->encoding))."\n"; |
|
| 91 | 91 | |
| 92 | 92 | // Set up styles |
| 93 | 93 | $output .= "<Styles>\n"; |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | $output[$this->getFieldName()] = $value; |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | - $output['DT_RowId'] = 'row-' . $object->getUid(); |
|
| 129 | + $output['DT_RowId'] = 'row-'.$object->getUid(); |
|
| 130 | 130 | $output['DT_RowClass'] = sprintf('%s_%s', $object->getDataType(), $object->getUid()); |
| 131 | 131 | |
| 132 | 132 | return $output; |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | foreach ($localizedStructure as $index => $structure) { |
| 328 | 328 | |
| 329 | 329 | $localizedStructure[$index]['value'] = sprintf('<span>%s %s</span>', |
| 330 | - empty($structure['languageFlag']) ? '' : $this->getIconFactory()->getIcon('flags-' . $structure['languageFlag'], Icon::SIZE_SMALL), |
|
| 330 | + empty($structure['languageFlag']) ? '' : $this->getIconFactory()->getIcon('flags-'.$structure['languageFlag'], Icon::SIZE_SMALL), |
|
| 331 | 331 | $structure['value'] |
| 332 | 332 | ); |
| 333 | 333 | } |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | $enablesMethods = array('Hidden', 'Deleted', 'StartTime', 'EndTime'); |
| 353 | 353 | foreach ($enablesMethods as $enableMethod) { |
| 354 | 354 | |
| 355 | - $methodName = 'get' . $enableMethod . 'Field'; |
|
| 355 | + $methodName = 'get'.$enableMethod.'Field'; |
|
| 356 | 356 | |
| 357 | 357 | // Fetch possible hidden filed. |
| 358 | 358 | $enableField = Tca::table($object)->$methodName(); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | use Fab\Vidi\Tests\Functional\AbstractFunctionalTestCase; |
| 18 | 18 | |
| 19 | -require_once dirname(dirname(dirname(__FILE__))) . '/AbstractFunctionalTestCase.php'; |
|
| 19 | +require_once dirname(dirname(dirname(__FILE__))).'/AbstractFunctionalTestCase.php'; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * Test case for class \Fab\Vidi\Domain\Model\Content. |
@@ -113,8 +113,8 @@ discard block |
||
| 113 | 113 | * @dataProvider propertyProvider |
| 114 | 114 | */ |
| 115 | 115 | public function testProperty($propertyName, $value) { |
| 116 | - $setter = 'set' . ucfirst($propertyName); |
|
| 117 | - $getter = 'get' . ucfirst($propertyName); |
|
| 116 | + $setter = 'set'.ucfirst($propertyName); |
|
| 117 | + $getter = 'get'.ucfirst($propertyName); |
|
| 118 | 118 | $this->markTestIncomplete(); # TCA must be faked |
| 119 | 119 | #call_user_func_array(array($this->fixture, $setter), array($value)); |
| 120 | 120 | #$this->assertEquals($value, call_user_func(array($this->fixture, $getter))); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | |
| 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 | } |