Completed
Push — master ( 892a3f...068784 )
by Fabien
50:28
created
Classes/ViewHelpers/Grid/PreferencesViewHelper.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -18,30 +18,30 @@
 block discarded – undo
18 18
 class PreferencesViewHelper extends AbstractViewHelper
19 19
 {
20 20
 
21
-    /**
22
-     * @return void
23
-     */
24
-    public function initializeArguments()
25
-    {
26
-        $this->registerArgument('key', 'string', '', true);
27
-    }
21
+	/**
22
+	 * @return void
23
+	 */
24
+	public function initializeArguments()
25
+	{
26
+		$this->registerArgument('key', 'string', '', true);
27
+	}
28 28
 
29
-    /**
30
-     * Returns Grid preferences for the given key.
31
-     *
32
-     * @return mixed
33
-     */
34
-    public function render()
35
-    {
36
-        return $this->getModulePreferences()->get($this->arguments['key']);
37
-    }
29
+	/**
30
+	 * Returns Grid preferences for the given key.
31
+	 *
32
+	 * @return mixed
33
+	 */
34
+	public function render()
35
+	{
36
+		return $this->getModulePreferences()->get($this->arguments['key']);
37
+	}
38 38
 
39
-    /**
40
-     * @return ModulePreferences|object
41
-     */
42
-    protected function getModulePreferences()
43
-    {
44
-        return GeneralUtility::makeInstance(ModulePreferences::class);
45
-    }
39
+	/**
40
+	 * @return ModulePreferences|object
41
+	 */
42
+	protected function getModulePreferences()
43
+	{
44
+		return GeneralUtility::makeInstance(ModulePreferences::class);
45
+	}
46 46
 
47 47
 }
Please login to merge, or discard this patch.
Classes/ViewHelpers/ModuleLoaderViewHelper.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -18,26 +18,26 @@
 block discarded – undo
18 18
 class ModuleLoaderViewHelper extends AbstractViewHelper
19 19
 {
20 20
 
21
-    /**
22
-     * @return void
23
-     */
24
-    public function initializeArguments()
25
-    {
26
-        $this->registerArgument('key', 'string', 'The module key', true);
27
-    }
21
+	/**
22
+	 * @return void
23
+	 */
24
+	public function initializeArguments()
25
+	{
26
+		$this->registerArgument('key', 'string', 'The module key', true);
27
+	}
28 28
 
29
-    /**
30
-     * Interface with the Module Loader.
31
-     *
32
-     * @return string
33
-     */
34
-    public function render()
35
-    {
36
-        $getter = 'get' . ucfirst($this->arguments['key']);
29
+	/**
30
+	 * Interface with the Module Loader.
31
+	 *
32
+	 * @return string
33
+	 */
34
+	public function render()
35
+	{
36
+		$getter = 'get' . ucfirst($this->arguments['key']);
37 37
 
38
-        /** @var ModuleLoader $moduleLoader */
39
-        $moduleLoader = GeneralUtility::makeInstance(ModuleLoader::class);
40
-        return $moduleLoader->$getter();
41
-    }
38
+		/** @var ModuleLoader $moduleLoader */
39
+		$moduleLoader = GeneralUtility::makeInstance(ModuleLoader::class);
40
+		return $moduleLoader->$getter();
41
+	}
42 42
 
43 43
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function render()
35 35
     {
36
-        $getter = 'get' . ucfirst($this->arguments['key']);
36
+        $getter = 'get'.ucfirst($this->arguments['key']);
37 37
 
38 38
         /** @var ModuleLoader $moduleLoader */
39 39
         $moduleLoader = GeneralUtility::makeInstance(ModuleLoader::class);
Please login to merge, or discard this patch.
Classes/ViewHelpers/Tca/TitleViewHelper.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -18,25 +18,25 @@
 block discarded – undo
18 18
 class TitleViewHelper extends AbstractViewHelper
19 19
 {
20 20
 
21
-    /**
22
-     * @return void
23
-     */
24
-    public function initializeArguments()
25
-    {
26
-        $this->registerArgument('content', Content::class, '', true);
27
-    }
21
+	/**
22
+	 * @return void
23
+	 */
24
+	public function initializeArguments()
25
+	{
26
+		$this->registerArgument('content', Content::class, '', true);
27
+	}
28 28
 
29
-    /**
30
-     * Returns the title of a content object.
31
-     *
32
-     * @return string
33
-     */
34
-    public function render()
35
-    {
36
-        /** @var Content $content */
37
-        $content = $this->arguments['content'];
38
-        $table = Tca::table($content->getDataType());
39
-        return $content[$table->getLabelField()];
40
-    }
29
+	/**
30
+	 * Returns the title of a content object.
31
+	 *
32
+	 * @return string
33
+	 */
34
+	public function render()
35
+	{
36
+		/** @var Content $content */
37
+		$content = $this->arguments['content'];
38
+		$table = Tca::table($content->getDataType());
39
+		return $content[$table->getLabelField()];
40
+	}
41 41
 
42 42
 }
Please login to merge, or discard this patch.
Classes/ViewHelpers/Tca/TableViewHelper.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -17,40 +17,40 @@
 block discarded – undo
17 17
 class TableViewHelper extends AbstractViewHelper
18 18
 {
19 19
 
20
-    /**
21
-     * @return void
22
-     */
23
-    public function initializeArguments()
24
-    {
25
-        $this->registerArgument('key', 'string', '', true);
26
-        $this->registerArgument('dataType', 'string', '', false, '');
27
-    }
28
-
29
-    /**
30
-     * Returns a value from the TCA Table service according to a key.
31
-     *
32
-     * @return string
33
-     */
34
-    public function render()
35
-    {
36
-        $key = $this->arguments['key'];
37
-        $dataType = $this->arguments['dataType'];
38
-
39
-        $result = Tca::table($dataType)->getTca();
40
-
41
-        // Explode segment and loop around.
42
-        $keys = explode('|', $key);
43
-        foreach ($keys as $key) {
44
-            if (!empty($result[$key])) {
45
-                $result = $result[$key];
46
-            } else {
47
-                // not found value
48
-                $result = false;
49
-                break;
50
-            }
51
-        }
52
-
53
-        return $result;
54
-    }
20
+	/**
21
+	 * @return void
22
+	 */
23
+	public function initializeArguments()
24
+	{
25
+		$this->registerArgument('key', 'string', '', true);
26
+		$this->registerArgument('dataType', 'string', '', false, '');
27
+	}
28
+
29
+	/**
30
+	 * Returns a value from the TCA Table service according to a key.
31
+	 *
32
+	 * @return string
33
+	 */
34
+	public function render()
35
+	{
36
+		$key = $this->arguments['key'];
37
+		$dataType = $this->arguments['dataType'];
38
+
39
+		$result = Tca::table($dataType)->getTca();
40
+
41
+		// Explode segment and loop around.
42
+		$keys = explode('|', $key);
43
+		foreach ($keys as $key) {
44
+			if (!empty($result[$key])) {
45
+				$result = $result[$key];
46
+			} else {
47
+				// not found value
48
+				$result = false;
49
+				break;
50
+			}
51
+		}
52
+
53
+		return $result;
54
+	}
55 55
 
56 56
 }
Please login to merge, or discard this patch.
Classes/ViewHelpers/Tca/LabelViewHelper.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -17,25 +17,25 @@
 block discarded – undo
17 17
 class LabelViewHelper extends AbstractViewHelper
18 18
 {
19 19
 
20
-    /**
21
-     * @return void
22
-     */
23
-    public function initializeArguments()
24
-    {
25
-        $this->registerArgument('dataType', 'string', '', true);
26
-        $this->registerArgument('fieldName', 'string', '', true);
27
-    }
20
+	/**
21
+	 * @return void
22
+	 */
23
+	public function initializeArguments()
24
+	{
25
+		$this->registerArgument('dataType', 'string', '', true);
26
+		$this->registerArgument('fieldName', 'string', '', true);
27
+	}
28 28
 
29
-    /**
30
-     * Returns the label of a field
31
-     *
32
-     * @return string
33
-     */
34
-    public function render()
35
-    {
36
-        $dataType = $this->arguments['dataType'];
37
-        $fieldName = $this->arguments['fieldName'];
38
-        return Tca::table($dataType)->field($fieldName)->getLabel();
39
-    }
29
+	/**
30
+	 * Returns the label of a field
31
+	 *
32
+	 * @return string
33
+	 */
34
+	public function render()
35
+	{
36
+		$dataType = $this->arguments['dataType'];
37
+		$fieldName = $this->arguments['fieldName'];
38
+		return Tca::table($dataType)->field($fieldName)->getLabel();
39
+	}
40 40
 
41 41
 }
Please login to merge, or discard this patch.
Classes/Module/Parameter.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 class Parameter extends Enumeration
17 17
 {
18 18
 
19
-    const PID = 'id';
19
+	const PID = 'id';
20 20
 
21
-    const SUBMODULE = 'vidiModuleCode';
21
+	const SUBMODULE = 'vidiModuleCode';
22 22
 
23
-    const MODULE = 'route';
23
+	const MODULE = 'route';
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
Classes/View/Grid/Rows.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -16,25 +16,25 @@
 block discarded – undo
16 16
 class Rows
17 17
 {
18 18
 
19
-    /**
20
-     * Returns rows of content as array.
21
-     *
22
-     * @param array $objects
23
-     * @param array $columns
24
-     * @return array
25
-     * @throws \Exception
26
-     * @throws \InvalidArgumentException
27
-     */
28
-    public function render(array $objects = [], array $columns = array())
29
-    {
30
-        $rows = [];
19
+	/**
20
+	 * Returns rows of content as array.
21
+	 *
22
+	 * @param array $objects
23
+	 * @param array $columns
24
+	 * @return array
25
+	 * @throws \Exception
26
+	 * @throws \InvalidArgumentException
27
+	 */
28
+	public function render(array $objects = [], array $columns = array())
29
+	{
30
+		$rows = [];
31 31
 
32
-        /** @var Row $row */
33
-        $row = GeneralUtility::makeInstance(Row::class, $columns);
34
-        foreach ($objects as $index => $object) {
35
-            $rows[] = $row->render($object, $index);
36
-        }
32
+		/** @var Row $row */
33
+		$row = GeneralUtility::makeInstance(Row::class, $columns);
34
+		foreach ($objects as $index => $object) {
35
+			$rows[] = $row->render($object, $index);
36
+		}
37 37
 
38
-        return $rows;
39
-    }
38
+		return $rows;
39
+	}
40 40
 }
Please login to merge, or discard this patch.
Classes/View/MenuItem/ClipboardMenuItem.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -19,44 +19,44 @@
 block discarded – undo
19 19
 class ClipboardMenuItem extends AbstractComponentView
20 20
 {
21 21
 
22
-    /**
23
-     * Renders a "mass delete" menu item to be placed in the grid menu.
24
-     *
25
-     * @return string
26
-     */
27
-    public function render()
28
-    {
29
-        $output = '';
30
-        if ($this->getMediaModule()->hasFolderTree()) {
31
-            $output = sprintf('<li><a href="%s" class="clipboard-save" >%s %s</a>',
32
-                $this->getSaveInClipboardUri(),
33
-                $this->getIconFactory()->getIcon('actions-document-paste-after', Icon::SIZE_SMALL),
34
-                $this->getLanguageService()->sL('LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:save')
35
-            );
36
-        }
37
-        return $output;
38
-    }
22
+	/**
23
+	 * Renders a "mass delete" menu item to be placed in the grid menu.
24
+	 *
25
+	 * @return string
26
+	 */
27
+	public function render()
28
+	{
29
+		$output = '';
30
+		if ($this->getMediaModule()->hasFolderTree()) {
31
+			$output = sprintf('<li><a href="%s" class="clipboard-save" >%s %s</a>',
32
+				$this->getSaveInClipboardUri(),
33
+				$this->getIconFactory()->getIcon('actions-document-paste-after', Icon::SIZE_SMALL),
34
+				$this->getLanguageService()->sL('LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:save')
35
+			);
36
+		}
37
+		return $output;
38
+	}
39 39
 
40
-    /**
41
-     * @return string
42
-     */
43
-    protected function getSaveInClipboardUri()
44
-    {
45
-        $additionalParameters = array(
46
-            $this->getModuleLoader()->getParameterPrefix() => array(
47
-                'controller' => 'Clipboard',
48
-                'action' => 'save',
49
-                'format' => 'json',
50
-            ),
51
-        );
52
-        return $this->getModuleLoader()->getModuleUrl($additionalParameters);
53
-    }
40
+	/**
41
+	 * @return string
42
+	 */
43
+	protected function getSaveInClipboardUri()
44
+	{
45
+		$additionalParameters = array(
46
+			$this->getModuleLoader()->getParameterPrefix() => array(
47
+				'controller' => 'Clipboard',
48
+				'action' => 'save',
49
+				'format' => 'json',
50
+			),
51
+		);
52
+		return $this->getModuleLoader()->getModuleUrl($additionalParameters);
53
+	}
54 54
 
55
-    /**
56
-     * @return MediaModule|object
57
-     */
58
-    protected function getMediaModule()
59
-    {
60
-        return GeneralUtility::makeInstance(MediaModule::class);
61
-    }
55
+	/**
56
+	 * @return MediaModule|object
57
+	 */
58
+	protected function getMediaModule()
59
+	{
60
+		return GeneralUtility::makeInstance(MediaModule::class);
61
+	}
62 62
 }
Please login to merge, or discard this patch.
Classes/Utility/ExtensionManagementUtility.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -18,29 +18,29 @@
 block discarded – undo
18 18
  */
19 19
 class ExtensionManagementUtility
20 20
 {
21
-    /**
22
-     * Returns the relative path to the extension as measured from the public web path
23
-     * If the extension is not loaded the function will die with an error message
24
-     * Useful for images and links from the frontend
25
-     *
26
-     * @param string $key Extension key
27
-     * @return string
28
-     */
29
-    public static function siteRelPath($key)
30
-    {
31
-        return self::stripPathSitePrefix(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($key));
32
-    }
21
+	/**
22
+	 * Returns the relative path to the extension as measured from the public web path
23
+	 * If the extension is not loaded the function will die with an error message
24
+	 * Useful for images and links from the frontend
25
+	 *
26
+	 * @param string $key Extension key
27
+	 * @return string
28
+	 */
29
+	public static function siteRelPath($key)
30
+	{
31
+		return self::stripPathSitePrefix(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($key));
32
+	}
33 33
 
34
-    /**
35
-     * Strip first part of a path, equal to the length of public web path including trailing slash
36
-     *
37
-     * @param string $path
38
-     * @return string
39
-     * @internal
40
-     */
41
-    public static function stripPathSitePrefix($path)
42
-    {
43
-        return substr($path, strlen(Environment::getPublicPath() . '/'));
44
-    }
34
+	/**
35
+	 * Strip first part of a path, equal to the length of public web path including trailing slash
36
+	 *
37
+	 * @param string $path
38
+	 * @return string
39
+	 * @internal
40
+	 */
41
+	public static function stripPathSitePrefix($path)
42
+	{
43
+		return substr($path, strlen(Environment::getPublicPath() . '/'));
44
+	}
45 45
 
46 46
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public static function stripPathSitePrefix($path)
42 42
     {
43
-        return substr($path, strlen(Environment::getPublicPath() . '/'));
43
+        return substr($path, strlen(Environment::getPublicPath().'/'));
44 44
     }
45 45
 
46 46
 }
Please login to merge, or discard this patch.