Commit 1e4c1e63 authored by Ryan Klarhölter's avatar Ryan Klarhölter

[TASK] Make LFEditor work under PHP 5

parent 1b91eceb
......@@ -77,7 +77,7 @@ class ConfigurationService extends AbstractService {
* @return array
* @throws \InvalidArgumentException
*/
public function prepareConfig(): array {
public function prepareConfig() {
if (!empty($this->extConfig)) {
return $this->extConfig;
}
......@@ -171,7 +171,7 @@ class ConfigurationService extends AbstractService {
* @throws LFException raised if no extensions are found
* @return array
*/
public function menuExtList(): array {
public function menuExtList() {
// search extensions
$tmpExtList = [];
try {
......
......@@ -51,7 +51,7 @@ class LicensingService {
/**
* @return boolean
*/
public static function checkKey(): bool {
public static function checkKey() {
if (static::$isLicenseKeyValid === NULL) {
static::$isLicenseKeyValid = FALSE;
......@@ -77,7 +77,7 @@ class LicensingService {
* @param boolean $returnUrl
* @return string
*/
public static function ping($returnUrl = FALSE): string {
public static function ping($returnUrl = FALSE) {
try {
if (7 === PHP_MAJOR_VERSION) {
$configuration = unserialize(
......@@ -118,7 +118,7 @@ class LicensingService {
* @return ResponseInterface
* @throws \InvalidArgumentException
*/
public function ajaxPing(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface {
public function ajaxPing(ServerRequestInterface $request, ResponseInterface $response) {
/** @var BackendUserAuthentication $backendUser */
$backendUser = $GLOBALS['BE_USER'];
$moduleKey = 'tools_beuser/index.php/user-LfeditorLfeditor_pinged';
......
......@@ -49,7 +49,7 @@ class Typo3Lib {
* @param string $file
* @return string
*/
public static function checkFileLocation($file): string {
public static function checkFileLocation($file) {
if (strpos($file, self::PATH_LOCAL_EXT) !== FALSE) {
return 'local';
}
......@@ -77,7 +77,7 @@ class Typo3Lib {
* @param boolean $mode generate to relative(false) or absolute file
* @return string converted file path
*/
public static function transTypo3File($file, $mode): string {
public static function transTypo3File($file, $mode) {
$extType['local'] = self::PATH_LOCAL_EXT;
$extType['global'] = self::PATH_GLOBAL_EXT;
$extType['system'] = self::PATH_SYS_EXT;
......@@ -119,7 +119,7 @@ class Typo3Lib {
* @param string $file file
* @return string fixed file
*/
public static function fixFilePath($file): string {
public static function fixFilePath($file) {
return GeneralUtility::fixWindowsFilePath(str_replace('//', '/', $file));
}
......
Markdown is supported
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