Completed
Push — master ( b9cbba...a54493 )
by Fabien
03:35
created
Classes/ViewHelpers/Be/RequireJsViewHelper.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -24,22 +24,22 @@
 block discarded – undo
24 24
 class RequireJsViewHelper extends AbstractBackendViewHelper
25 25
 {
26 26
 
27
-    /**
28
-     * Load RequireJS code.
29
-     *
30
-     * @return void
31
-     */
32
-    public function render()
33
-    {
34
-
35
-        $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
36
-
37
-        $content = $this->renderChildren();
38
-        $pageRenderer->addJsInlineCode('vidi-inline', $content);
39
-
40
-        $configuration['paths']['Fab/Vidi'] = '../typo3conf/ext/vidi/Resources/Public/JavaScript';
41
-        $pageRenderer->addRequireJsConfiguration($configuration);
42
-        $pageRenderer->loadRequireJsModule('Fab/Vidi/Vidi/Main');
43
-    }
27
+	/**
28
+	 * Load RequireJS code.
29
+	 *
30
+	 * @return void
31
+	 */
32
+	public function render()
33
+	{
34
+
35
+		$pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
36
+
37
+		$content = $this->renderChildren();
38
+		$pageRenderer->addJsInlineCode('vidi-inline', $content);
39
+
40
+		$configuration['paths']['Fab/Vidi'] = '../typo3conf/ext/vidi/Resources/Public/JavaScript';
41
+		$pageRenderer->addRequireJsConfiguration($configuration);
42
+		$pageRenderer->loadRequireJsModule('Fab/Vidi/Vidi/Main');
43
+	}
44 44
 
45 45
 }
Please login to merge, or discard this patch.
Classes/View/MenuItem/MassDeleteMenuItem.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -23,33 +23,33 @@
 block discarded – undo
23 23
 class MassDeleteMenuItem extends AbstractComponentView
24 24
 {
25 25
 
26
-    /**
27
-     * Renders a "mass delete" menu item to be placed in the grid menu.
28
-     *
29
-     * @return string
30
-     */
31
-    public function render()
32
-    {
33
-        return sprintf('<li><a href="%s" class="mass-delete" >%s %s</a>',
34
-            $this->getMassDeleteUri(),
35
-            $this->getIconFactory()->getIcon('actions-edit-delete', Icon::SIZE_SMALL),
36
-            $this->getLanguageService()->sL('LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:delete')
37
-        );
38
-    }
26
+	/**
27
+	 * Renders a "mass delete" menu item to be placed in the grid menu.
28
+	 *
29
+	 * @return string
30
+	 */
31
+	public function render()
32
+	{
33
+		return sprintf('<li><a href="%s" class="mass-delete" >%s %s</a>',
34
+			$this->getMassDeleteUri(),
35
+			$this->getIconFactory()->getIcon('actions-edit-delete', Icon::SIZE_SMALL),
36
+			$this->getLanguageService()->sL('LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:delete')
37
+		);
38
+	}
39 39
 
40
-    /**
41
-     * @return string
42
-     */
43
-    protected function getMassDeleteUri()
44
-    {
45
-        $additionalParameters = array(
46
-            $this->getModuleLoader()->getParameterPrefix() => array(
47
-                'controller' => 'Content',
48
-                'action' => 'delete',
49
-                'format' => 'json',
50
-            ),
51
-        );
52
-        return $this->getModuleLoader()->getModuleUrl($additionalParameters);
53
-    }
40
+	/**
41
+	 * @return string
42
+	 */
43
+	protected function getMassDeleteUri()
44
+	{
45
+		$additionalParameters = array(
46
+			$this->getModuleLoader()->getParameterPrefix() => array(
47
+				'controller' => 'Content',
48
+				'action' => 'delete',
49
+				'format' => 'json',
50
+			),
51
+		);
52
+		return $this->getModuleLoader()->getModuleUrl($additionalParameters);
53
+	}
54 54
 
55 55
 }
Please login to merge, or discard this patch.
Classes/View/MenuItem/ExportXlsMenuItem.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -23,19 +23,19 @@
 block discarded – undo
23 23
 class ExportXlsMenuItem extends AbstractComponentView
24 24
 {
25 25
 
26
-    /**
27
-     * Renders a "xls export" item to be placed in the menu.
28
-     * Only the admin is allowed to export for now as security is not handled.
29
-     *
30
-     * @return string
31
-     */
32
-    public function render()
33
-    {
34
-        $result = sprintf('<li><a href="#" class="export-xls" data-format="xls">%s %s</a></li>',
35
-            $this->getIconFactory()->getIcon('mimetypes-excel', Icon::SIZE_SMALL),
36
-            $this->getLanguageService()->sL('LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:export-xls')
37
-        );
38
-        return $result;
39
-    }
26
+	/**
27
+	 * Renders a "xls export" item to be placed in the menu.
28
+	 * Only the admin is allowed to export for now as security is not handled.
29
+	 *
30
+	 * @return string
31
+	 */
32
+	public function render()
33
+	{
34
+		$result = sprintf('<li><a href="#" class="export-xls" data-format="xls">%s %s</a></li>',
35
+			$this->getIconFactory()->getIcon('mimetypes-excel', Icon::SIZE_SMALL),
36
+			$this->getLanguageService()->sL('LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:export-xls')
37
+		);
38
+		return $result;
39
+	}
40 40
 
41 41
 }
Please login to merge, or discard this patch.
Classes/View/MenuItem/ExportXmlMenuItem.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -23,19 +23,19 @@
 block discarded – undo
23 23
 class ExportXmlMenuItem extends AbstractComponentView
24 24
 {
25 25
 
26
-    /**
27
-     * Renders an "xml export" item to be placed in the menu.
28
-     * Only the admin is allowed to export for now as security is not handled.
29
-     *
30
-     * @return string
31
-     */
32
-    public function render()
33
-    {
34
-        $result = sprintf('<li><a href="#" class="export-xml" data-format="xml">%s %s</a></li>',
35
-            $this->getIconFactory()->getIcon('mimetypes-text-html', Icon::SIZE_SMALL),
36
-            $this->getLanguageService()->sL('LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:export-xml')
37
-        );
38
-        return $result;
39
-    }
26
+	/**
27
+	 * Renders an "xml export" item to be placed in the menu.
28
+	 * Only the admin is allowed to export for now as security is not handled.
29
+	 *
30
+	 * @return string
31
+	 */
32
+	public function render()
33
+	{
34
+		$result = sprintf('<li><a href="#" class="export-xml" data-format="xml">%s %s</a></li>',
35
+			$this->getIconFactory()->getIcon('mimetypes-text-html', Icon::SIZE_SMALL),
36
+			$this->getLanguageService()->sL('LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:export-xml')
37
+		);
38
+		return $result;
39
+	}
40 40
 
41 41
 }
Please login to merge, or discard this patch.
Classes/View/MenuItem/ExportCsvMenuItem.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -23,18 +23,18 @@
 block discarded – undo
23 23
 class ExportCsvMenuItem extends AbstractComponentView
24 24
 {
25 25
 
26
-    /**
27
-     * Renders a "csv export" item to be placed in the menu.
28
-     * Only the admin is allowed to export for now as security is not handled.
29
-     *
30
-     * @return string
31
-     */
32
-    public function render()
33
-    {
34
-        $result = sprintf('<li><a href="#" class="export-csv" data-format="csv">%s %s</a></li>',
35
-            $this->getIconFactory()->getIcon('mimetypes-text-csv', Icon::SIZE_SMALL),
36
-            $this->getLanguageService()->sL('LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:export-csv')
37
-        );
38
-        return $result;
39
-    }
26
+	/**
27
+	 * Renders a "csv export" item to be placed in the menu.
28
+	 * Only the admin is allowed to export for now as security is not handled.
29
+	 *
30
+	 * @return string
31
+	 */
32
+	public function render()
33
+	{
34
+		$result = sprintf('<li><a href="#" class="export-csv" data-format="csv">%s %s</a></li>',
35
+			$this->getIconFactory()->getIcon('mimetypes-text-csv', Icon::SIZE_SMALL),
36
+			$this->getLanguageService()->sL('LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:export-csv')
37
+		);
38
+		return $result;
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
@@ -25,44 +25,44 @@
 block discarded – undo
25 25
 class ClipboardMenuItem extends AbstractComponentView
26 26
 {
27 27
 
28
-    /**
29
-     * Renders a "mass delete" menu item to be placed in the grid menu.
30
-     *
31
-     * @return string
32
-     */
33
-    public function render()
34
-    {
35
-        $output = '';
36
-        if ($this->getMediaModule()->hasFolderTree()) {
37
-            $output = sprintf('<li><a href="%s" class="clipboard-save" >%s %s</a>',
38
-                $this->getSaveInClipboardUri(),
39
-                $this->getIconFactory()->getIcon('actions-document-paste-after', Icon::SIZE_SMALL),
40
-                $this->getLanguageService()->sL('LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:save')
41
-            );
42
-        }
43
-        return $output;
44
-    }
28
+	/**
29
+	 * Renders a "mass delete" menu item to be placed in the grid menu.
30
+	 *
31
+	 * @return string
32
+	 */
33
+	public function render()
34
+	{
35
+		$output = '';
36
+		if ($this->getMediaModule()->hasFolderTree()) {
37
+			$output = sprintf('<li><a href="%s" class="clipboard-save" >%s %s</a>',
38
+				$this->getSaveInClipboardUri(),
39
+				$this->getIconFactory()->getIcon('actions-document-paste-after', Icon::SIZE_SMALL),
40
+				$this->getLanguageService()->sL('LLL:EXT:vidi/Resources/Private/Language/locallang.xlf:save')
41
+			);
42
+		}
43
+		return $output;
44
+	}
45 45
 
46
-    /**
47
-     * @return string
48
-     */
49
-    protected function getSaveInClipboardUri()
50
-    {
51
-        $additionalParameters = array(
52
-            $this->getModuleLoader()->getParameterPrefix() => array(
53
-                'controller' => 'Clipboard',
54
-                'action' => 'save',
55
-                'format' => 'json',
56
-            ),
57
-        );
58
-        return $this->getModuleLoader()->getModuleUrl($additionalParameters);
59
-    }
46
+	/**
47
+	 * @return string
48
+	 */
49
+	protected function getSaveInClipboardUri()
50
+	{
51
+		$additionalParameters = array(
52
+			$this->getModuleLoader()->getParameterPrefix() => array(
53
+				'controller' => 'Clipboard',
54
+				'action' => 'save',
55
+				'format' => 'json',
56
+			),
57
+		);
58
+		return $this->getModuleLoader()->getModuleUrl($additionalParameters);
59
+	}
60 60
 
61
-    /**
62
-     * @return MediaModule
63
-     */
64
-    protected function getMediaModule()
65
-    {
66
-        return GeneralUtility::makeInstance(MediaModule::class);
67
-    }
61
+	/**
62
+	 * @return MediaModule
63
+	 */
64
+	protected function getMediaModule()
65
+	{
66
+		return GeneralUtility::makeInstance(MediaModule::class);
67
+	}
68 68
 }
Please login to merge, or discard this patch.