Commit 51a9946a authored by Fabian Galinski's avatar Fabian Galinski

[TASK] Code cleanup

Resolves #9
parent 401da85a
......@@ -72,7 +72,7 @@ class FileBackupService extends FileService {
*/
public function init($file, $path, $metaFile) {
// init
$this->setVar(array('metaFile' => $metaFile));
$this->setVar(['metaFile' => $metaFile]);
parent::init($file, $path, $metaFile);
// read meta file
......
......@@ -96,6 +96,8 @@ abstract class FileService extends AbstractService {
*
* @param string $file filename or relative path from second param to the language file
* @param string $path absolute path to the extension or language file
* @param string $metaFile absolute path to the meta file (includes filename) DO NOT REMOVE! It's required in some
* implementations.
* @return void
*/
public function init($file, $path, $metaFile) {
......
......@@ -49,7 +49,7 @@ class InlineLanguageLabelsViewHelper extends AbstractViewHelper {
*/
public function render($labels = '', $htmlEscape = FALSE) {
$extensionName = $this->controllerContext->getRequest()->getControllerExtensionName();
if (\is_array($labels)) {
if (!\is_array($labels)) {
$labels = GeneralUtility::trimExplode(',', $labels, TRUE);
}
......
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