Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
lfeditor
Commits
1e4c1e63
Commit
1e4c1e63
authored
Apr 04, 2018
by
Ryan Klarhölter
Browse files
[TASK] Make LFEditor work under PHP 5
parent
1b91eceb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Classes/Service/ConfigurationService.php
View file @
1e4c1e63
...
...
@@ -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
{
...
...
Classes/Service/LicensingService.php
View file @
1e4c1e63
...
...
@@ -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'
;
...
...
Classes/Utility/Typo3Lib.php
View file @
1e4c1e63
...
...
@@ -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
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment