Commit 3252a22c authored by Wouter Wolters's avatar Wouter Wolters Committed by Markus Klein
Browse files

[CLEANUP] Use correct casting syntax

Resolves: #62664
Releases: master
Change-Id: Ib8e0695fc234ab67a2f73a65737e07cf9a2d19c6
Reviewed-on: http://review.typo3.org/33757


Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarMarkus Klein <klein.t3@reelworx.at>
Tested-by: default avatarMarkus Klein <klein.t3@reelworx.at>
parent fdcabab3
......@@ -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'));
}
/**
......
......@@ -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();
}
/**
......
......@@ -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;
}
/**
......
......@@ -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();
}
/**
......
......@@ -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;
......
......@@ -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);
......
......@@ -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')));
}
......
......@@ -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);
......
......@@ -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);
......
......@@ -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;
......
......@@ -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',
......
......@@ -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) {
......
......@@ -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:
......
......@@ -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':
......
......@@ -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>';
}
......
......@@ -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;
......
......@@ -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;
}
......
......@@ -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];
......
......@@ -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,
......
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment