Completed
Push — master ( bbb68f...02a2d0 )
by Fabien
54:14
created
Classes/View/MenuItem/FilePickerMenuItem.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -25,38 +25,38 @@
 block discarded – undo
25 25
 class FilePickerMenuItem extends AbstractComponentView
26 26
 {
27 27
 
28
-    /**
29
-     * Renders a "file picker" menu item to be placed in the grid menu of Media.
30
-     *
31
-     * @return string
32
-     */
33
-    public function render()
34
-    {
35
-        $result = '';
36
-        if ($this->getModuleLoader()->hasPlugin('filePicker')) {
37
-            $result = sprintf('<li><a href="%s" class="mass-file-picker" data-argument="assets">%s Insert files</a>',
38
-                $this->getMassDeleteUri(),
39
-                $this->getIconFactory()->getIcon('extensions-media-image-export', Icon::SIZE_SMALL)
40
-            );
41
-        }
42
-        return $result;
43
-    }
28
+	/**
29
+	 * Renders a "file picker" menu item to be placed in the grid menu of Media.
30
+	 *
31
+	 * @return string
32
+	 */
33
+	public function render()
34
+	{
35
+		$result = '';
36
+		if ($this->getModuleLoader()->hasPlugin('filePicker')) {
37
+			$result = sprintf('<li><a href="%s" class="mass-file-picker" data-argument="assets">%s Insert files</a>',
38
+				$this->getMassDeleteUri(),
39
+				$this->getIconFactory()->getIcon('extensions-media-image-export', Icon::SIZE_SMALL)
40
+			);
41
+		}
42
+		return $result;
43
+	}
44 44
 
45
-    /**
46
-     * Render a mass delete URI.
47
-     *
48
-     * @return string
49
-     */
50
-    protected function getMassDeleteUri()
51
-    {
52
-        $urlParameters = array(
53
-            MediaModule::getParameterPrefix() => array(
54
-                'controller' => 'Asset',
55
-                'action' => '',
56
-                'format' => 'json',
57
-            ),
58
-        );
59
-        return BackendUtility::getModuleUrl(MediaModule::getSignature(), $urlParameters);
60
-    }
45
+	/**
46
+	 * Render a mass delete URI.
47
+	 *
48
+	 * @return string
49
+	 */
50
+	protected function getMassDeleteUri()
51
+	{
52
+		$urlParameters = array(
53
+			MediaModule::getParameterPrefix() => array(
54
+				'controller' => 'Asset',
55
+				'action' => '',
56
+				'format' => 'json',
57
+			),
58
+		);
59
+		return BackendUtility::getModuleUrl(MediaModule::getSignature(), $urlParameters);
60
+	}
61 61
 
62 62
 }
Please login to merge, or discard this patch.
Classes/Grid/CategoryRenderer.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -22,25 +22,25 @@
 block discarded – undo
22 22
 class CategoryRenderer extends ColumnRendererAbstract
23 23
 {
24 24
 
25
-    /**
26
-     * Renders category list of an asset in the grid.
27
-     *
28
-     * @return string
29
-     */
30
-    public function render()
31
-    {
32
-        $result = '';
25
+	/**
26
+	 * Renders category list of an asset in the grid.
27
+	 *
28
+	 * @return string
29
+	 */
30
+	public function render()
31
+	{
32
+		$result = '';
33 33
 
34
-        $categories = $this->object['metadata']['categories'];
35
-        if (!empty($categories)) {
34
+		$categories = $this->object['metadata']['categories'];
35
+		if (!empty($categories)) {
36 36
 
37
-            /** @var $category \TYPO3\CMS\Extbase\Domain\Model\Category */
38
-            foreach ($categories as $category) {
39
-                $result .= sprintf('<li>%s</li>', $category['title']);
40
-            }
41
-            $result = sprintf('<ul class="category-list">%s</ul>', $result);
42
-        }
43
-        return $result;
44
-    }
37
+			/** @var $category \TYPO3\CMS\Extbase\Domain\Model\Category */
38
+			foreach ($categories as $category) {
39
+				$result .= sprintf('<li>%s</li>', $category['title']);
40
+			}
41
+			$result = sprintf('<ul class="category-list">%s</ul>', $result);
42
+		}
43
+		return $result;
44
+	}
45 45
 
46 46
 }
Please login to merge, or discard this patch.
Classes/Grid/FrontendPermissionRenderer.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -22,24 +22,24 @@
 block discarded – undo
22 22
 class FrontendPermissionRenderer extends ColumnRendererAbstract
23 23
 {
24 24
 
25
-    /**
26
-     * Render permission in the grid.
27
-     *
28
-     * @return string
29
-     */
30
-    public function render()
31
-    {
32
-        $result = '';
25
+	/**
26
+	 * Render permission in the grid.
27
+	 *
28
+	 * @return string
29
+	 */
30
+	public function render()
31
+	{
32
+		$result = '';
33 33
 
34
-        $frontendUserGroups = $this->object['metadata']['fe_groups'];
35
-        if (!empty($frontendUserGroups)) {
34
+		$frontendUserGroups = $this->object['metadata']['fe_groups'];
35
+		if (!empty($frontendUserGroups)) {
36 36
 
37
-            /** @var $frontendUserGroup \TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup */
38
-            foreach ($frontendUserGroups as $frontendUserGroup) {
39
-                $result .= sprintf('<li style="list-style: disc">%s</li>', $frontendUserGroup['title']);
40
-            }
41
-            $result = sprintf('<ul>%s</ul>', $result);
42
-        }
43
-        return $result;
44
-    }
37
+			/** @var $frontendUserGroup \TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup */
38
+			foreach ($frontendUserGroups as $frontendUserGroup) {
39
+				$result .= sprintf('<li style="list-style: disc">%s</li>', $frontendUserGroup['title']);
40
+			}
41
+			$result = sprintf('<ul>%s</ul>', $result);
42
+		}
43
+		return $result;
44
+	}
45 45
 }
Please login to merge, or discard this patch.
Classes/Form/FormFieldInterface.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@
 block discarded – undo
20 20
 interface FormFieldInterface
21 21
 {
22 22
 
23
-    /**
24
-     * @return string
25
-     */
26
-    public function render();
23
+	/**
24
+	 * @return string
25
+	 */
26
+	public function render();
27 27
 
28
-    /**
29
-     * @param string $template
30
-     * @return \Fab\Media\Form\FormFieldInterface
31
-     */
32
-    public function setTemplate($template);
28
+	/**
29
+	 * @param string $template
30
+	 * @return \Fab\Media\Form\FormFieldInterface
31
+	 */
32
+	public function setTemplate($template);
33 33
 }
Please login to merge, or discard this patch.
Classes/Thumbnail/ThumbnailProcessorInterface.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -20,39 +20,39 @@
 block discarded – undo
20 20
 interface ThumbnailProcessorInterface
21 21
 {
22 22
 
23
-    /**
24
-     * @param ThumbnailService $thumbnailService
25
-     * @return $this
26
-     */
27
-    public function setThumbnailService(ThumbnailService $thumbnailService);
23
+	/**
24
+	 * @param ThumbnailService $thumbnailService
25
+	 * @return $this
26
+	 */
27
+	public function setThumbnailService(ThumbnailService $thumbnailService);
28 28
 
29
-    /**
30
-     * Render a thumbnail.
31
-     *
32
-     * @return string
33
-     */
34
-    public function create();
29
+	/**
30
+	 * Render a thumbnail.
31
+	 *
32
+	 * @return string
33
+	 */
34
+	public function create();
35 35
 
36
-    /**
37
-     * Render the URI of the thumbnail.
38
-     *
39
-     * @return string
40
-     */
41
-    public function renderUri();
36
+	/**
37
+	 * Render the URI of the thumbnail.
38
+	 *
39
+	 * @return string
40
+	 */
41
+	public function renderUri();
42 42
 
43
-    /**
44
-     * Render the tag image which is the main one for a thumbnail.
45
-     *
46
-     * @param string $result
47
-     * @return string
48
-     */
49
-    public function renderTagImage($result);
43
+	/**
44
+	 * Render the tag image which is the main one for a thumbnail.
45
+	 *
46
+	 * @param string $result
47
+	 * @return string
48
+	 */
49
+	public function renderTagImage($result);
50 50
 
51
-    /**
52
-     * Render a wrapping anchor around the thumbnail.
53
-     *
54
-     * @param string $result
55
-     * @return string
56
-     */
57
-    public function renderTagAnchor($result);
51
+	/**
52
+	 * Render a wrapping anchor around the thumbnail.
53
+	 *
54
+	 * @param string $result
55
+	 * @return string
56
+	 */
57
+	public function renderTagAnchor($result);
58 58
 }
Please login to merge, or discard this patch.
Classes/Thumbnail/ThumbnailInterface.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -21,29 +21,29 @@
 block discarded – undo
21 21
 interface ThumbnailInterface
22 22
 {
23 23
 
24
-    /**
25
-     * The thumbnail of the asset (default value).
26
-     */
27
-    const OUTPUT_IMAGE = 'image';
28
-
29
-    /**
30
-     * The thumbnail will be wrapped with an anchor.
31
-     */
32
-    const OUTPUT_IMAGE_WRAPPED = 'imageWrapped';
33
-
34
-    /**
35
-     * Output the URI of the thumbnail.
36
-     */
37
-    const OUTPUT_URI = 'uri';
38
-
39
-    /**
40
-     * Open thumbnail in a new window.
41
-     */
42
-    const TARGET_BLANK = '_blank';
43
-
44
-    /**
45
-     * Open thumbnail in the same window.
46
-     */
47
-    const TARGET_SELF = '_self';
24
+	/**
25
+	 * The thumbnail of the asset (default value).
26
+	 */
27
+	const OUTPUT_IMAGE = 'image';
28
+
29
+	/**
30
+	 * The thumbnail will be wrapped with an anchor.
31
+	 */
32
+	const OUTPUT_IMAGE_WRAPPED = 'imageWrapped';
33
+
34
+	/**
35
+	 * Output the URI of the thumbnail.
36
+	 */
37
+	const OUTPUT_URI = 'uri';
38
+
39
+	/**
40
+	 * Open thumbnail in a new window.
41
+	 */
42
+	const TARGET_BLANK = '_blank';
43
+
44
+	/**
45
+	 * Open thumbnail in the same window.
46
+	 */
47
+	const TARGET_SELF = '_self';
48 48
 
49 49
 }
Please login to merge, or discard this patch.
Classes/ViewHelpers/Uri/MoveViewHelper.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -24,35 +24,35 @@
 block discarded – undo
24 24
 class MoveViewHelper extends AbstractViewHelper
25 25
 {
26 26
 
27
-    /**
28
-     * Render a move storage URI.
29
-     *
30
-     * @return string
31
-     */
32
-    public function render()
33
-    {
34
-
35
-        $urlParameters = array(
36
-            VidiModule::getParameterPrefix() => array(
37
-                'controller' => 'Content',
38
-                'action' => 'move',
39
-                'fieldNameAndPath' => $this->templateVariableContainer->get('fieldNameAndPath'),
40
-                'matches' => $this->templateVariableContainer->get('matches'),
41
-            ),
42
-        );
43
-
44
-        $moduleUrl = BackendUtility::getModuleUrl(
45
-            VidiModule::getSignature(),
46
-            $urlParameters
47
-        );
48
-
49
-        // Work around a bug in BackendUtility::getModuleUrl if matches is empty getModuleUrl() will not return the parameter.
50
-        $matches = $this->templateVariableContainer->get('matches');
51
-        if (empty($matches)) {
52
-            $moduleUrl .= '&' . urlencode(VidiModule::getParameterPrefix() . '[matches]=');
53
-        }
54
-
55
-        return $moduleUrl;
56
-    }
27
+	/**
28
+	 * Render a move storage URI.
29
+	 *
30
+	 * @return string
31
+	 */
32
+	public function render()
33
+	{
34
+
35
+		$urlParameters = array(
36
+			VidiModule::getParameterPrefix() => array(
37
+				'controller' => 'Content',
38
+				'action' => 'move',
39
+				'fieldNameAndPath' => $this->templateVariableContainer->get('fieldNameAndPath'),
40
+				'matches' => $this->templateVariableContainer->get('matches'),
41
+			),
42
+		);
43
+
44
+		$moduleUrl = BackendUtility::getModuleUrl(
45
+			VidiModule::getSignature(),
46
+			$urlParameters
47
+		);
48
+
49
+		// Work around a bug in BackendUtility::getModuleUrl if matches is empty getModuleUrl() will not return the parameter.
50
+		$matches = $this->templateVariableContainer->get('matches');
51
+		if (empty($matches)) {
52
+			$moduleUrl .= '&' . urlencode(VidiModule::getParameterPrefix() . '[matches]=');
53
+		}
54
+
55
+		return $moduleUrl;
56
+	}
57 57
 
58 58
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         // Work around a bug in BackendUtility::getModuleUrl if matches is empty getModuleUrl() will not return the parameter.
50 50
         $matches = $this->templateVariableContainer->get('matches');
51 51
         if (empty($matches)) {
52
-            $moduleUrl .= '&' . urlencode(VidiModule::getParameterPrefix() . '[matches]=');
52
+            $moduleUrl .= '&'.urlencode(VidiModule::getParameterPrefix().'[matches]=');
53 53
         }
54 54
 
55 55
         return $moduleUrl;
Please login to merge, or discard this patch.
Classes/ViewHelpers/ModuleSignatureViewHelper.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@
 block discarded – undo
23 23
 class ModuleSignatureViewHelper extends AbstractViewHelper
24 24
 {
25 25
 
26
-    /**
27
-     * Returns the BE module signature.
28
-     *
29
-     * @return string
30
-     */
31
-    public function render()
32
-    {
33
-        return VidiModule::getSignature();
34
-    }
26
+	/**
27
+	 * Returns the BE module signature.
28
+	 *
29
+	 * @return string
30
+	 */
31
+	public function render()
32
+	{
33
+		return VidiModule::getSignature();
34
+	}
35 35
 }
Please login to merge, or discard this patch.
Classes/FileUpload/ImageOptimizerInterface.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
 interface ImageOptimizerInterface
21 21
 {
22 22
 
23
-    /**
24
-     * Optimize the given uploaded image
25
-     *
26
-     * @param \Fab\Media\FileUpload\UploadedFileInterface $uploadedFile
27
-     * @return \Fab\Media\FileUpload\UploadedFileInterface
28
-     */
29
-    public function optimize($uploadedFile);
23
+	/**
24
+	 * Optimize the given uploaded image
25
+	 *
26
+	 * @param \Fab\Media\FileUpload\UploadedFileInterface $uploadedFile
27
+	 * @return \Fab\Media\FileUpload\UploadedFileInterface
28
+	 */
29
+	public function optimize($uploadedFile);
30 30
 }
Please login to merge, or discard this patch.