Completed
Push — master ( 892a3f...068784 )
by Fabien
50:28
created
Classes/View/Button/NewButton.php 1 patch
Indentation   +94 added lines, -94 removed lines patch added patch discarded remove patch
@@ -22,109 +22,109 @@
 block discarded – undo
22 22
 class NewButton extends AbstractComponentView
23 23
 {
24 24
 
25
-    /**
26
-     * Renders a "new" button to be placed in the doc header.
27
-     *
28
-     * @return string
29
-     */
30
-    public function render(): string
31
-    {
32
-        $output = '';
25
+	/**
26
+	 * Renders a "new" button to be placed in the doc header.
27
+	 *
28
+	 * @return string
29
+	 */
30
+	public function render(): string
31
+	{
32
+		$output = '';
33 33
 
34
-        // New button only for the current data type.
35
-        if ($this->getModulePidService()->isConfiguredPidValid()) {
36
-            $output = $this->makeLinkButton()->setHref($this->getNewUri())
37
-                ->setTitle($this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:newRecordGeneral'))
38
-                ->setIcon($this->getIconFactory()->getIcon('actions-document-new', Icon::SIZE_SMALL))
39
-                ->render();
40
-        }
41
-        return $output;
42
-    }
34
+		// New button only for the current data type.
35
+		if ($this->getModulePidService()->isConfiguredPidValid()) {
36
+			$output = $this->makeLinkButton()->setHref($this->getNewUri())
37
+				->setTitle($this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:newRecordGeneral'))
38
+				->setIcon($this->getIconFactory()->getIcon('actions-document-new', Icon::SIZE_SMALL))
39
+				->render();
40
+		}
41
+		return $output;
42
+	}
43 43
 
44
-    /**
45
-     * Render a create URI given a data type.
46
-     *
47
-     * @return string
48
-     */
49
-    protected function getUriWizardNew(): string
50
-    {
51
-        // Return URL in any case.
52
-        $arguments['returnUrl'] = $this->getModuleLoader()->getModuleUrl();
44
+	/**
45
+	 * Render a create URI given a data type.
46
+	 *
47
+	 * @return string
48
+	 */
49
+	protected function getUriWizardNew(): string
50
+	{
51
+		// Return URL in any case.
52
+		$arguments['returnUrl'] = $this->getModuleLoader()->getModuleUrl();
53 53
 
54
-        // Add possible id parameter
55
-        if (GeneralUtility::_GP(Parameter::PID)) {
56
-            $arguments['id'] = GeneralUtility::_GP(Parameter::PID);
57
-        }
54
+		// Add possible id parameter
55
+		if (GeneralUtility::_GP(Parameter::PID)) {
56
+			$arguments['id'] = GeneralUtility::_GP(Parameter::PID);
57
+		}
58 58
 
59
-        $uri = BackendUtility::getModuleUrl(
60
-            'db_new',
61
-            $arguments
62
-        );
59
+		$uri = BackendUtility::getModuleUrl(
60
+			'db_new',
61
+			$arguments
62
+		);
63 63
 
64
-        return $uri;
65
-    }
64
+		return $uri;
65
+	}
66 66
 
67
-    /**
68
-     * Render a create URI given a data type.
69
-     *
70
-     * @return string
71
-     */
72
-    protected function getNewUri(): string
73
-    {
74
-        $uri = BackendUtility::getModuleUrl(
75
-            'record_edit',
76
-            array(
77
-                $this->getNewParameterName() => 'new',
78
-                'returnUrl' => $this->getModuleLoader()->getModuleUrl()
79
-            )
80
-        );
81
-        return $uri;
82
-    }
67
+	/**
68
+	 * Render a create URI given a data type.
69
+	 *
70
+	 * @return string
71
+	 */
72
+	protected function getNewUri(): string
73
+	{
74
+		$uri = BackendUtility::getModuleUrl(
75
+			'record_edit',
76
+			array(
77
+				$this->getNewParameterName() => 'new',
78
+				'returnUrl' => $this->getModuleLoader()->getModuleUrl()
79
+			)
80
+		);
81
+		return $uri;
82
+	}
83 83
 
84
-    /**
85
-     * @return string
86
-     */
87
-    protected function getNewParameterName(): string
88
-    {
89
-        return sprintf(
90
-            'edit[%s][%s]',
91
-            $this->getModuleLoader()->getDataType(),
92
-            $this->getStoragePid()
93
-        );
94
-    }
84
+	/**
85
+	 * @return string
86
+	 */
87
+	protected function getNewParameterName(): string
88
+	{
89
+		return sprintf(
90
+			'edit[%s][%s]',
91
+			$this->getModuleLoader()->getDataType(),
92
+			$this->getStoragePid()
93
+		);
94
+	}
95 95
 
96
-    /**
97
-     * Return the default configured pid.
98
-     *
99
-     * @return int
100
-     */
101
-    protected function getStoragePid(): int
102
-    {
103
-        if (GeneralUtility::_GP(Parameter::PID)) {
104
-            $pid = GeneralUtility::_GP(Parameter::PID);
105
-        } elseif ((int)Tca::table()->get('rootLevel') === 1) {
106
-            $pid = 0;
107
-        } else {
108
-            // Get configuration from User TSConfig if any
109
-            $tsConfigPath = sprintf('tx_vidi.dataType.%s.storagePid', $this->getModuleLoader()->getDataType());
110
-            $tsConfig = $this->getBackendUser()->getTSConfig($tsConfigPath);
111
-            $pid = $tsConfig['value'];
96
+	/**
97
+	 * Return the default configured pid.
98
+	 *
99
+	 * @return int
100
+	 */
101
+	protected function getStoragePid(): int
102
+	{
103
+		if (GeneralUtility::_GP(Parameter::PID)) {
104
+			$pid = GeneralUtility::_GP(Parameter::PID);
105
+		} elseif ((int)Tca::table()->get('rootLevel') === 1) {
106
+			$pid = 0;
107
+		} else {
108
+			// Get configuration from User TSConfig if any
109
+			$tsConfigPath = sprintf('tx_vidi.dataType.%s.storagePid', $this->getModuleLoader()->getDataType());
110
+			$tsConfig = $this->getBackendUser()->getTSConfig($tsConfigPath);
111
+			$pid = $tsConfig['value'];
112 112
 
113
-            // Get pid from Module Loader
114
-            if (null === $pid) {
115
-                $pid = $this->getModuleLoader()->getDefaultPid();
116
-            }
117
-        }
118
-        return (int)$pid;
119
-    }
113
+			// Get pid from Module Loader
114
+			if (null === $pid) {
115
+				$pid = $this->getModuleLoader()->getDefaultPid();
116
+			}
117
+		}
118
+		return (int)$pid;
119
+	}
120 120
 
121
-    /**
122
-     * @return ModulePidService|object
123
-     */
124
-    public function getModulePidService()
125
-    {
126
-        /** @var ModulePidService $modulePidService */
127
-        return GeneralUtility::makeInstance(ModulePidService::class);
128
-    }
121
+	/**
122
+	 * @return ModulePidService|object
123
+	 */
124
+	public function getModulePidService()
125
+	{
126
+		/** @var ModulePidService $modulePidService */
127
+		return GeneralUtility::makeInstance(ModulePidService::class);
128
+	}
129 129
 
130 130
 }
Please login to merge, or discard this patch.
Classes/View/MenuItem/MassEditMenuItem.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -17,17 +17,17 @@
 block discarded – undo
17 17
 class MassEditMenuItem extends AbstractComponentView
18 18
 {
19 19
 
20
-    /**
21
-     * Renders a "mass edit" menu item to be placed in the grid menu.
22
-     *
23
-     * @return string
24
-     * @throws \InvalidArgumentException
25
-     */
26
-    public function render()
27
-    {
28
-        return sprintf('<li><a href="#" class="dropdown-item mass-edit">%s %s (not implemented)</a></li>',
29
-            $this->getIconFactory()->getIcon('actions-document-open', Icon::SIZE_SMALL),
30
-            $this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:edit')
31
-        );
32
-    }
20
+	/**
21
+	 * Renders a "mass edit" menu item to be placed in the grid menu.
22
+	 *
23
+	 * @return string
24
+	 * @throws \InvalidArgumentException
25
+	 */
26
+	public function render()
27
+	{
28
+		return sprintf('<li><a href="#" class="dropdown-item mass-edit">%s %s (not implemented)</a></li>',
29
+			$this->getIconFactory()->getIcon('actions-document-open', Icon::SIZE_SMALL),
30
+			$this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:edit')
31
+		);
32
+	}
33 33
 }
Please login to merge, or discard this patch.
Classes/View/AbstractComponentView.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -20,48 +20,48 @@
 block discarded – undo
20 20
 abstract class AbstractComponentView implements ViewComponentInterface
21 21
 {
22 22
 
23
-    /**
24
-     * Get the Vidi Module Loader.
25
-     *
26
-     * @return ModuleLoader|object
27
-     */
28
-    protected function getModuleLoader()
29
-    {
30
-        return GeneralUtility::makeInstance(ModuleLoader::class);
31
-    }
23
+	/**
24
+	 * Get the Vidi Module Loader.
25
+	 *
26
+	 * @return ModuleLoader|object
27
+	 */
28
+	protected function getModuleLoader()
29
+	{
30
+		return GeneralUtility::makeInstance(ModuleLoader::class);
31
+	}
32 32
 
33
-    /**
34
-     * Returns an instance of the current Backend User.
35
-     *
36
-     * @return BackendUserAuthentication
37
-     */
38
-    protected function getBackendUser()
39
-    {
40
-        return $GLOBALS['BE_USER'];
41
-    }
33
+	/**
34
+	 * Returns an instance of the current Backend User.
35
+	 *
36
+	 * @return BackendUserAuthentication
37
+	 */
38
+	protected function getBackendUser()
39
+	{
40
+		return $GLOBALS['BE_USER'];
41
+	}
42 42
 
43
-    /**
44
-     * @return LanguageService|object
45
-     */
46
-    protected function getLanguageService()
47
-    {
48
-        return GeneralUtility::makeInstance(LanguageService::class);
49
-    }
43
+	/**
44
+	 * @return LanguageService|object
45
+	 */
46
+	protected function getLanguageService()
47
+	{
48
+		return GeneralUtility::makeInstance(LanguageService::class);
49
+	}
50 50
 
51
-    /**
52
-     * @return IconFactory|object
53
-     */
54
-    protected function getIconFactory()
55
-    {
56
-        return GeneralUtility::makeInstance(IconFactory::class);
57
-    }
51
+	/**
52
+	 * @return IconFactory|object
53
+	 */
54
+	protected function getIconFactory()
55
+	{
56
+		return GeneralUtility::makeInstance(IconFactory::class);
57
+	}
58 58
 
59
-    /**
60
-     * @return LinkButton|object
61
-     */
62
-    protected function makeLinkButton()
63
-    {
64
-        return GeneralUtility::makeInstance(LinkButton::class);
65
-    }
59
+	/**
60
+	 * @return LinkButton|object
61
+	 */
62
+	protected function makeLinkButton()
63
+	{
64
+		return GeneralUtility::makeInstance(LinkButton::class);
65
+	}
66 66
 
67 67
 }
Please login to merge, or discard this patch.
Classes/Resolver/ContentObjectResolver.php 1 patch
Indentation   +83 added lines, -83 removed lines patch added patch discarded remove patch
@@ -20,87 +20,87 @@
 block discarded – undo
20 20
 class ContentObjectResolver implements SingletonInterface
21 21
 {
22 22
 
23
-    /**
24
-     * @param Content $object
25
-     * @param string $fieldNameAndPath
26
-     * @return string
27
-     */
28
-    public function getDataType(Content $object, $fieldNameAndPath)
29
-    {
30
-
31
-        // Important to notice the field name can contains a path, e.g. metadata.title and must be sanitized.
32
-        $relationalFieldName = $this->getFieldPathResolver()->stripFieldName($fieldNameAndPath); // ex: metadata.title -> metadata
33
-
34
-        // Handle case when field name leads to a relation.
35
-        if ($object[$relationalFieldName] instanceof Content) {
36
-            $resolvedDataType = $object[$relationalFieldName]->getDataType();
37
-        } else {
38
-            $resolvedDataType = $object->getDataType();
39
-        }
40
-
41
-        return $resolvedDataType;
42
-    }
43
-
44
-    /**
45
-     * Fetch the value of an object according to a field path.
46
-     * The returned value can be a string, int or array of Content objects.
47
-     *
48
-     * @param Content $object
49
-     * @param string $fieldNameAndPath
50
-     * @param string $fieldName
51
-     * @param int $language
52
-     * @return mixed
53
-     */
54
-    public function getValue(Content $object, $fieldNameAndPath, $fieldName, $language = 0)
55
-    {
56
-
57
-        $resolvedContentObject = $this->getObject($object, $fieldNameAndPath);
58
-        $resolvedValue = $resolvedContentObject[$fieldName];
59
-
60
-        if (is_scalar($resolvedValue) && $language > 0) {
61
-            $resolvedValue = $this->getLanguageService()->getLocalizedFieldName($resolvedContentObject, $language, $fieldName);
62
-        }
63
-
64
-        return $resolvedValue;
65
-    }
66
-
67
-    /**
68
-     * Fetch the value of an object according to a field name and path.
69
-     * The returned value is a Content object.
70
-     *
71
-     * @param Content $object
72
-     * @param string $fieldNameAndPath
73
-     * @return Content
74
-     */
75
-    public function getObject(Content $object, $fieldNameAndPath)
76
-    {
77
-
78
-        // Important to notice the field name can contains a path, e.g. metadata.title and must be sanitized.
79
-        $fieldPath = $this->getFieldPathResolver()->stripFieldName($fieldNameAndPath); // ex: metadata.title -> metadata
80
-
81
-        // Handle case when field name leads to a relation.
82
-        if ($object[$fieldPath] instanceof Content) {
83
-            $resolvedObject = $object[$fieldPath];
84
-        } else {
85
-            $resolvedObject = $object;
86
-        }
87
-
88
-        return $resolvedObject;
89
-    }
90
-
91
-    /**
92
-     * @return FieldPathResolver|object
93
-     */
94
-    protected function getFieldPathResolver()
95
-    {
96
-        return GeneralUtility::makeInstance(FieldPathResolver::class);
97
-    }
98
-
99
-    /**
100
-     * @return LanguageService|object
101
-     */
102
-    protected function getLanguageService()
103
-    {
104
-        return GeneralUtility::makeInstance(LanguageService::class);
105
-    }
23
+	/**
24
+	 * @param Content $object
25
+	 * @param string $fieldNameAndPath
26
+	 * @return string
27
+	 */
28
+	public function getDataType(Content $object, $fieldNameAndPath)
29
+	{
30
+
31
+		// Important to notice the field name can contains a path, e.g. metadata.title and must be sanitized.
32
+		$relationalFieldName = $this->getFieldPathResolver()->stripFieldName($fieldNameAndPath); // ex: metadata.title -> metadata
33
+
34
+		// Handle case when field name leads to a relation.
35
+		if ($object[$relationalFieldName] instanceof Content) {
36
+			$resolvedDataType = $object[$relationalFieldName]->getDataType();
37
+		} else {
38
+			$resolvedDataType = $object->getDataType();
39
+		}
40
+
41
+		return $resolvedDataType;
42
+	}
43
+
44
+	/**
45
+	 * Fetch the value of an object according to a field path.
46
+	 * The returned value can be a string, int or array of Content objects.
47
+	 *
48
+	 * @param Content $object
49
+	 * @param string $fieldNameAndPath
50
+	 * @param string $fieldName
51
+	 * @param int $language
52
+	 * @return mixed
53
+	 */
54
+	public function getValue(Content $object, $fieldNameAndPath, $fieldName, $language = 0)
55
+	{
56
+
57
+		$resolvedContentObject = $this->getObject($object, $fieldNameAndPath);
58
+		$resolvedValue = $resolvedContentObject[$fieldName];
59
+
60
+		if (is_scalar($resolvedValue) && $language > 0) {
61
+			$resolvedValue = $this->getLanguageService()->getLocalizedFieldName($resolvedContentObject, $language, $fieldName);
62
+		}
63
+
64
+		return $resolvedValue;
65
+	}
66
+
67
+	/**
68
+	 * Fetch the value of an object according to a field name and path.
69
+	 * The returned value is a Content object.
70
+	 *
71
+	 * @param Content $object
72
+	 * @param string $fieldNameAndPath
73
+	 * @return Content
74
+	 */
75
+	public function getObject(Content $object, $fieldNameAndPath)
76
+	{
77
+
78
+		// Important to notice the field name can contains a path, e.g. metadata.title and must be sanitized.
79
+		$fieldPath = $this->getFieldPathResolver()->stripFieldName($fieldNameAndPath); // ex: metadata.title -> metadata
80
+
81
+		// Handle case when field name leads to a relation.
82
+		if ($object[$fieldPath] instanceof Content) {
83
+			$resolvedObject = $object[$fieldPath];
84
+		} else {
85
+			$resolvedObject = $object;
86
+		}
87
+
88
+		return $resolvedObject;
89
+	}
90
+
91
+	/**
92
+	 * @return FieldPathResolver|object
93
+	 */
94
+	protected function getFieldPathResolver()
95
+	{
96
+		return GeneralUtility::makeInstance(FieldPathResolver::class);
97
+	}
98
+
99
+	/**
100
+	 * @return LanguageService|object
101
+	 */
102
+	protected function getLanguageService()
103
+	{
104
+		return GeneralUtility::makeInstance(LanguageService::class);
105
+	}
106 106
 }
Please login to merge, or discard this patch.
Classes/TypeConverter/CsvToArrayConverter.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -18,36 +18,36 @@
 block discarded – undo
18 18
 class CsvToArrayConverter extends AbstractTypeConverter
19 19
 {
20 20
 
21
-    /**
22
-     * @var array<string>
23
-     */
24
-    protected $sourceTypes = array('string');
21
+	/**
22
+	 * @var array<string>
23
+	 */
24
+	protected $sourceTypes = array('string');
25 25
 
26
-    /**
27
-     * @var string
28
-     */
29
-    protected $targetType = 'array';
26
+	/**
27
+	 * @var string
28
+	 */
29
+	protected $targetType = 'array';
30 30
 
31
-    /**
32
-     * @var integer
33
-     */
34
-    protected $priority = 1;
31
+	/**
32
+	 * @var integer
33
+	 */
34
+	protected $priority = 1;
35 35
 
36
-    /**
37
-     * Actually convert from $source to $targetType
38
-     *
39
-     * @param string $source
40
-     * @param string $targetType
41
-     * @param array $convertedChildProperties
42
-     * @param PropertyMappingConfigurationInterface $configuration
43
-     * @return array
44
-     * @throws \Exception
45
-     * @throws FileDoesNotExistException
46
-     * @api
47
-     */
48
-    public function convertFrom($source, $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)
49
-    {
50
-        return GeneralUtility::trimExplode(',', $source, true);
51
-    }
36
+	/**
37
+	 * Actually convert from $source to $targetType
38
+	 *
39
+	 * @param string $source
40
+	 * @param string $targetType
41
+	 * @param array $convertedChildProperties
42
+	 * @param PropertyMappingConfigurationInterface $configuration
43
+	 * @return array
44
+	 * @throws \Exception
45
+	 * @throws FileDoesNotExistException
46
+	 * @api
47
+	 */
48
+	public function convertFrom($source, $targetType, array $convertedChildProperties = [], PropertyMappingConfigurationInterface $configuration = null)
49
+	{
50
+		return GeneralUtility::trimExplode(',', $source, true);
51
+	}
52 52
 
53 53
 }
54 54
\ No newline at end of file
Please login to merge, or discard this patch.
Classes/Signal/ProcessContentDataSignalArguments.php 1 patch
Indentation   +137 added lines, -137 removed lines patch added patch discarded remove patch
@@ -16,143 +16,143 @@
 block discarded – undo
16 16
 class ProcessContentDataSignalArguments
17 17
 {
18 18
 
19
-    /**
20
-     * @var Content
21
-     */
22
-    protected $contentObject;
23
-
24
-    /**
25
-     * @var array
26
-     */
27
-    protected $contentData;
28
-
29
-    /**
30
-     * @var string
31
-     */
32
-    protected $fieldNameAndPath;
33
-
34
-    /**
35
-     * @var int
36
-     */
37
-    protected $counter;
38
-
39
-    /**
40
-     * @var int
41
-     */
42
-    protected $savingBehavior;
43
-
44
-    /**
45
-     * @var int
46
-     */
47
-    protected $language;
48
-
49
-    /**
50
-     * @param array $contentData
51
-     * @return $this
52
-     */
53
-    public function setContentData($contentData)
54
-    {
55
-        $this->contentData = $contentData;
56
-        return $this;
57
-    }
58
-
59
-    /**
60
-     * @return array
61
-     */
62
-    public function getContentData()
63
-    {
64
-        return $this->contentData;
65
-    }
66
-
67
-    /**
68
-     * @param Content $contentObject
69
-     * @return $this
70
-     */
71
-    public function setContentObject($contentObject)
72
-    {
73
-        $this->contentObject = $contentObject;
74
-        return $this;
75
-    }
76
-
77
-    /**
78
-     * @return Content
79
-     */
80
-    public function getContentObject()
81
-    {
82
-        return $this->contentObject;
83
-    }
84
-
85
-    /**
86
-     * @param string $fieldNameAndPath
87
-     * @return $this
88
-     */
89
-    public function setFieldNameAndPath($fieldNameAndPath)
90
-    {
91
-        $this->fieldNameAndPath = $fieldNameAndPath;
92
-        return $this;
93
-    }
94
-
95
-    /**
96
-     * @return string
97
-     */
98
-    public function getFieldNameAndPath()
99
-    {
100
-        return $this->fieldNameAndPath;
101
-    }
102
-
103
-    /**
104
-     * @param int $counter
105
-     * @return $this
106
-     */
107
-    public function setCounter($counter)
108
-    {
109
-        $this->counter = $counter;
110
-        return $this;
111
-    }
112
-
113
-    /**
114
-     * @return int
115
-     */
116
-    public function getCounter()
117
-    {
118
-        return $this->counter;
119
-    }
120
-
121
-    /**
122
-     * @param int $savingBehavior
123
-     * @return $this
124
-     */
125
-    public function setSavingBehavior($savingBehavior)
126
-    {
127
-        $this->savingBehavior = $savingBehavior;
128
-        return $this;
129
-    }
130
-
131
-    /**
132
-     * @return int
133
-     */
134
-    public function getSavingBehavior()
135
-    {
136
-        return $this->savingBehavior;
137
-    }
138
-
139
-    /**
140
-     * @return int
141
-     */
142
-    public function getLanguage()
143
-    {
144
-        return $this->language;
145
-    }
146
-
147
-    /**
148
-     * @param int $language
149
-     * @return $this
150
-     */
151
-    public function setLanguage($language)
152
-    {
153
-        $this->language = $language;
154
-        return $this;
155
-    }
19
+	/**
20
+	 * @var Content
21
+	 */
22
+	protected $contentObject;
23
+
24
+	/**
25
+	 * @var array
26
+	 */
27
+	protected $contentData;
28
+
29
+	/**
30
+	 * @var string
31
+	 */
32
+	protected $fieldNameAndPath;
33
+
34
+	/**
35
+	 * @var int
36
+	 */
37
+	protected $counter;
38
+
39
+	/**
40
+	 * @var int
41
+	 */
42
+	protected $savingBehavior;
43
+
44
+	/**
45
+	 * @var int
46
+	 */
47
+	protected $language;
48
+
49
+	/**
50
+	 * @param array $contentData
51
+	 * @return $this
52
+	 */
53
+	public function setContentData($contentData)
54
+	{
55
+		$this->contentData = $contentData;
56
+		return $this;
57
+	}
58
+
59
+	/**
60
+	 * @return array
61
+	 */
62
+	public function getContentData()
63
+	{
64
+		return $this->contentData;
65
+	}
66
+
67
+	/**
68
+	 * @param Content $contentObject
69
+	 * @return $this
70
+	 */
71
+	public function setContentObject($contentObject)
72
+	{
73
+		$this->contentObject = $contentObject;
74
+		return $this;
75
+	}
76
+
77
+	/**
78
+	 * @return Content
79
+	 */
80
+	public function getContentObject()
81
+	{
82
+		return $this->contentObject;
83
+	}
84
+
85
+	/**
86
+	 * @param string $fieldNameAndPath
87
+	 * @return $this
88
+	 */
89
+	public function setFieldNameAndPath($fieldNameAndPath)
90
+	{
91
+		$this->fieldNameAndPath = $fieldNameAndPath;
92
+		return $this;
93
+	}
94
+
95
+	/**
96
+	 * @return string
97
+	 */
98
+	public function getFieldNameAndPath()
99
+	{
100
+		return $this->fieldNameAndPath;
101
+	}
102
+
103
+	/**
104
+	 * @param int $counter
105
+	 * @return $this
106
+	 */
107
+	public function setCounter($counter)
108
+	{
109
+		$this->counter = $counter;
110
+		return $this;
111
+	}
112
+
113
+	/**
114
+	 * @return int
115
+	 */
116
+	public function getCounter()
117
+	{
118
+		return $this->counter;
119
+	}
120
+
121
+	/**
122
+	 * @param int $savingBehavior
123
+	 * @return $this
124
+	 */
125
+	public function setSavingBehavior($savingBehavior)
126
+	{
127
+		$this->savingBehavior = $savingBehavior;
128
+		return $this;
129
+	}
130
+
131
+	/**
132
+	 * @return int
133
+	 */
134
+	public function getSavingBehavior()
135
+	{
136
+		return $this->savingBehavior;
137
+	}
138
+
139
+	/**
140
+	 * @return int
141
+	 */
142
+	public function getLanguage()
143
+	{
144
+		return $this->language;
145
+	}
146
+
147
+	/**
148
+	 * @param int $language
149
+	 * @return $this
150
+	 */
151
+	public function setLanguage($language)
152
+	{
153
+		$this->language = $language;
154
+		return $this;
155
+	}
156 156
 
157 157
 
158 158
 }
Please login to merge, or discard this patch.
Classes/Signal/AfterFindContentObjectsSignalArguments.php 1 patch
Indentation   +183 added lines, -183 removed lines patch added patch discarded remove patch
@@ -17,188 +17,188 @@
 block discarded – undo
17 17
 class AfterFindContentObjectsSignalArguments
18 18
 {
19 19
 
20
-    /**
21
-     * @var string
22
-     */
23
-    protected $dataType;
24
-
25
-    /**
26
-     * @var array
27
-     */
28
-    protected $contentObjects;
29
-
30
-    /**
31
-     * @var Matcher
32
-     */
33
-    protected $matcher;
34
-
35
-    /**
36
-     * @var Order
37
-     */
38
-    protected $order;
39
-
40
-    /**
41
-     * @var int
42
-     */
43
-    protected $limit;
44
-
45
-    /**
46
-     * @var int
47
-     */
48
-    protected $offset;
49
-
50
-    /**
51
-     * @var bool
52
-     */
53
-    protected $hasBeenProcessed;
54
-
55
-    /**
56
-     * @var int
57
-     */
58
-    protected $numberOfObjects = 0;
59
-
60
-    /**
61
-     * @param array $contentObjects
62
-     * @return $this
63
-     */
64
-    public function setContentObjects($contentObjects)
65
-    {
66
-        $this->contentObjects = $contentObjects;
67
-        return $this;
68
-    }
69
-
70
-    /**
71
-     * @return array
72
-     */
73
-    public function getContentObjects()
74
-    {
75
-        return $this->contentObjects;
76
-    }
77
-
78
-    /**
79
-     * @param string $dataType
80
-     * @return $this
81
-     */
82
-    public function setDataType($dataType)
83
-    {
84
-        $this->dataType = $dataType;
85
-        return $this;
86
-    }
87
-
88
-    /**
89
-     * @return string
90
-     */
91
-    public function getDataType()
92
-    {
93
-        return $this->dataType;
94
-    }
95
-
96
-    /**
97
-     * @param boolean $hasBeenProcessed
98
-     * @return $this
99
-     */
100
-    public function setHasBeenProcessed($hasBeenProcessed)
101
-    {
102
-        $this->hasBeenProcessed = $hasBeenProcessed;
103
-        return $this;
104
-    }
105
-
106
-    /**
107
-     * @return boolean
108
-     */
109
-    public function getHasBeenProcessed()
110
-    {
111
-        return $this->hasBeenProcessed;
112
-    }
113
-
114
-    /**
115
-     * @param int $limit
116
-     * @return $this
117
-     */
118
-    public function setLimit($limit)
119
-    {
120
-        $this->limit = $limit;
121
-        return $this;
122
-    }
123
-
124
-    /**
125
-     * @return int
126
-     */
127
-    public function getLimit()
128
-    {
129
-        return $this->limit;
130
-    }
131
-
132
-    /**
133
-     * @param Matcher $matcher
134
-     * @return $this
135
-     */
136
-    public function setMatcher($matcher)
137
-    {
138
-        $this->matcher = $matcher;
139
-        return $this;
140
-    }
141
-
142
-    /**
143
-     * @return Matcher
144
-     */
145
-    public function getMatcher()
146
-    {
147
-        return $this->matcher;
148
-    }
149
-
150
-    /**
151
-     * @return Order
152
-     */
153
-    public function getOrder()
154
-    {
155
-        return $this->order;
156
-    }
157
-
158
-    /**
159
-     * @param Order $order
160
-     * @return $this
161
-     */
162
-    public function setOrder($order)
163
-    {
164
-        $this->order = $order;
165
-        return $this;
166
-    }
167
-
168
-    /**
169
-     * @param int $numberOfObjects
170
-     * @return $this
171
-     */
172
-    public function setNumberOfObjects($numberOfObjects)
173
-    {
174
-        $this->numberOfObjects = $numberOfObjects;
175
-        return $this;
176
-    }
177
-
178
-    /**
179
-     * @return int
180
-     */
181
-    public function getNumberOfObjects()
182
-    {
183
-        return $this->numberOfObjects;
184
-    }
185
-
186
-    /**
187
-     * @param int $offset
188
-     * @return $this
189
-     */
190
-    public function setOffset($offset)
191
-    {
192
-        $this->offset = $offset;
193
-        return $this;
194
-    }
195
-
196
-    /**
197
-     * @return int
198
-     */
199
-    public function getOffset()
200
-    {
201
-        return $this->offset;
202
-    }
20
+	/**
21
+	 * @var string
22
+	 */
23
+	protected $dataType;
24
+
25
+	/**
26
+	 * @var array
27
+	 */
28
+	protected $contentObjects;
29
+
30
+	/**
31
+	 * @var Matcher
32
+	 */
33
+	protected $matcher;
34
+
35
+	/**
36
+	 * @var Order
37
+	 */
38
+	protected $order;
39
+
40
+	/**
41
+	 * @var int
42
+	 */
43
+	protected $limit;
44
+
45
+	/**
46
+	 * @var int
47
+	 */
48
+	protected $offset;
49
+
50
+	/**
51
+	 * @var bool
52
+	 */
53
+	protected $hasBeenProcessed;
54
+
55
+	/**
56
+	 * @var int
57
+	 */
58
+	protected $numberOfObjects = 0;
59
+
60
+	/**
61
+	 * @param array $contentObjects
62
+	 * @return $this
63
+	 */
64
+	public function setContentObjects($contentObjects)
65
+	{
66
+		$this->contentObjects = $contentObjects;
67
+		return $this;
68
+	}
69
+
70
+	/**
71
+	 * @return array
72
+	 */
73
+	public function getContentObjects()
74
+	{
75
+		return $this->contentObjects;
76
+	}
77
+
78
+	/**
79
+	 * @param string $dataType
80
+	 * @return $this
81
+	 */
82
+	public function setDataType($dataType)
83
+	{
84
+		$this->dataType = $dataType;
85
+		return $this;
86
+	}
87
+
88
+	/**
89
+	 * @return string
90
+	 */
91
+	public function getDataType()
92
+	{
93
+		return $this->dataType;
94
+	}
95
+
96
+	/**
97
+	 * @param boolean $hasBeenProcessed
98
+	 * @return $this
99
+	 */
100
+	public function setHasBeenProcessed($hasBeenProcessed)
101
+	{
102
+		$this->hasBeenProcessed = $hasBeenProcessed;
103
+		return $this;
104
+	}
105
+
106
+	/**
107
+	 * @return boolean
108
+	 */
109
+	public function getHasBeenProcessed()
110
+	{
111
+		return $this->hasBeenProcessed;
112
+	}
113
+
114
+	/**
115
+	 * @param int $limit
116
+	 * @return $this
117
+	 */
118
+	public function setLimit($limit)
119
+	{
120
+		$this->limit = $limit;
121
+		return $this;
122
+	}
123
+
124
+	/**
125
+	 * @return int
126
+	 */
127
+	public function getLimit()
128
+	{
129
+		return $this->limit;
130
+	}
131
+
132
+	/**
133
+	 * @param Matcher $matcher
134
+	 * @return $this
135
+	 */
136
+	public function setMatcher($matcher)
137
+	{
138
+		$this->matcher = $matcher;
139
+		return $this;
140
+	}
141
+
142
+	/**
143
+	 * @return Matcher
144
+	 */
145
+	public function getMatcher()
146
+	{
147
+		return $this->matcher;
148
+	}
149
+
150
+	/**
151
+	 * @return Order
152
+	 */
153
+	public function getOrder()
154
+	{
155
+		return $this->order;
156
+	}
157
+
158
+	/**
159
+	 * @param Order $order
160
+	 * @return $this
161
+	 */
162
+	public function setOrder($order)
163
+	{
164
+		$this->order = $order;
165
+		return $this;
166
+	}
167
+
168
+	/**
169
+	 * @param int $numberOfObjects
170
+	 * @return $this
171
+	 */
172
+	public function setNumberOfObjects($numberOfObjects)
173
+	{
174
+		$this->numberOfObjects = $numberOfObjects;
175
+		return $this;
176
+	}
177
+
178
+	/**
179
+	 * @return int
180
+	 */
181
+	public function getNumberOfObjects()
182
+	{
183
+		return $this->numberOfObjects;
184
+	}
185
+
186
+	/**
187
+	 * @param int $offset
188
+	 * @return $this
189
+	 */
190
+	public function setOffset($offset)
191
+	{
192
+		$this->offset = $offset;
193
+		return $this;
194
+	}
195
+
196
+	/**
197
+	 * @return int
198
+	 */
199
+	public function getOffset()
200
+	{
201
+		return $this->offset;
202
+	}
203 203
 
204 204
 }
Please login to merge, or discard this patch.
Classes/ViewHelpers/Selection/VisibilityOptionsViewHelper.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -18,31 +18,31 @@
 block discarded – undo
18 18
 class VisibilityOptionsViewHelper extends AbstractViewHelper
19 19
 {
20 20
 
21
-    /**
22
-     * Returns the options for the visibility field of a Selection.
23
-     *
24
-     * @return array
25
-     */
26
-    public function render()
27
-    {
28
-        $options[Selection::VISIBILITY_PRIVATE] = LocalizationUtility::translate('LLL:EXT:vidi/Resources/Private/Language/tx_vidi_selection.xlf:visibility.private', 'vidi');
29
-        $options[Selection::VISIBILITY_EVERYONE] = LocalizationUtility::translate('LLL:EXT:vidi/Resources/Private/Language/tx_vidi_selection.xlf:visibility.everyone', 'vidi');
21
+	/**
22
+	 * Returns the options for the visibility field of a Selection.
23
+	 *
24
+	 * @return array
25
+	 */
26
+	public function render()
27
+	{
28
+		$options[Selection::VISIBILITY_PRIVATE] = LocalizationUtility::translate('LLL:EXT:vidi/Resources/Private/Language/tx_vidi_selection.xlf:visibility.private', 'vidi');
29
+		$options[Selection::VISIBILITY_EVERYONE] = LocalizationUtility::translate('LLL:EXT:vidi/Resources/Private/Language/tx_vidi_selection.xlf:visibility.everyone', 'vidi');
30 30
 
31
-        if ($this->getBackendUser()->isAdmin()) {
32
-            $options[Selection::VISIBILITY_ADMIN_ONLY] = LocalizationUtility::translate('LLL:EXT:vidi/Resources/Private/Language/tx_vidi_selection.xlf:visibility.admin_only', 'vidi');
33
-        }
34
-        return $options;
35
-    }
31
+		if ($this->getBackendUser()->isAdmin()) {
32
+			$options[Selection::VISIBILITY_ADMIN_ONLY] = LocalizationUtility::translate('LLL:EXT:vidi/Resources/Private/Language/tx_vidi_selection.xlf:visibility.admin_only', 'vidi');
33
+		}
34
+		return $options;
35
+	}
36 36
 
37 37
 
38
-    /**
39
-     * Returns an instance of the current Backend User.
40
-     *
41
-     * @return BackendUserAuthentication
42
-     */
43
-    protected function getBackendUser()
44
-    {
45
-        return $GLOBALS['BE_USER'];
46
-    }
38
+	/**
39
+	 * Returns an instance of the current Backend User.
40
+	 *
41
+	 * @return BackendUserAuthentication
42
+	 */
43
+	protected function getBackendUser()
44
+	{
45
+		return $GLOBALS['BE_USER'];
46
+	}
47 47
 
48 48
 }
49 49
\ No newline at end of file
Please login to merge, or discard this patch.
Classes/ViewHelpers/Button/ToolWorkViewHelper.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -17,58 +17,58 @@
 block discarded – undo
17 17
 class ToolWorkViewHelper extends AbstractViewHelper
18 18
 {
19 19
 
20
-    /**
21
-     * @return void
22
-     */
23
-    public function initializeArguments()
24
-    {
25
-        $this->registerArgument('tool', 'string', '', true);
26
-        $this->registerArgument('label', 'string', '', true);
27
-        $this->registerArgument('arguments', 'array', '', false, []);
28
-    }
20
+	/**
21
+	 * @return void
22
+	 */
23
+	public function initializeArguments()
24
+	{
25
+		$this->registerArgument('tool', 'string', '', true);
26
+		$this->registerArgument('label', 'string', '', true);
27
+		$this->registerArgument('arguments', 'array', '', false, []);
28
+	}
29 29
 
30
-    /**
31
-     * Renders a button for "work" for a Tool.
32
-     *
33
-     * @return string
34
-     */
35
-    public function render()
36
-    {
37
-        $tool = $this->arguments['tool'];
38
-        $label = $this->arguments['label'];
39
-        $arguments = $this->arguments['arguments'];
30
+	/**
31
+	 * Renders a button for "work" for a Tool.
32
+	 *
33
+	 * @return string
34
+	 */
35
+	public function render()
36
+	{
37
+		$tool = $this->arguments['tool'];
38
+		$label = $this->arguments['label'];
39
+		$arguments = $this->arguments['arguments'];
40 40
 
41
-        $parameterPrefix = $this->getModuleLoader()->getParameterPrefix();
41
+		$parameterPrefix = $this->getModuleLoader()->getParameterPrefix();
42 42
 
43
-        // Compute the additional parameters.
44
-        $additionalParameters = array(
45
-            $parameterPrefix => array(
46
-                'controller' => 'Tool',
47
-                'action' => 'work',
48
-                'tool' => $tool,
49
-            ),
50
-        );
43
+		// Compute the additional parameters.
44
+		$additionalParameters = array(
45
+			$parameterPrefix => array(
46
+				'controller' => 'Tool',
47
+				'action' => 'work',
48
+				'tool' => $tool,
49
+			),
50
+		);
51 51
 
52
-        // Add possible additional arguments.
53
-        if (!empty($arguments)) {
54
-            $additionalParameters[$parameterPrefix]['arguments'] = $arguments;
55
-        }
52
+		// Add possible additional arguments.
53
+		if (!empty($arguments)) {
54
+			$additionalParameters[$parameterPrefix]['arguments'] = $arguments;
55
+		}
56 56
 
57
-        $result = sprintf('<a href="%s&returnUrl=%s" class="btn btn-default">%s</a>',
58
-            $this->getModuleLoader()->getModuleUrl($additionalParameters),
59
-            urlencode($GLOBALS['_SERVER']['REQUEST_URI']),
60
-            $label
61
-        );
62
-        return $result;
63
-    }
57
+		$result = sprintf('<a href="%s&returnUrl=%s" class="btn btn-default">%s</a>',
58
+			$this->getModuleLoader()->getModuleUrl($additionalParameters),
59
+			urlencode($GLOBALS['_SERVER']['REQUEST_URI']),
60
+			$label
61
+		);
62
+		return $result;
63
+	}
64 64
 
65
-    /**
66
-     * Get the Vidi Module Loader.
67
-     *
68
-     * @return ModuleLoader|object
69
-     */
70
-    protected function getModuleLoader()
71
-    {
72
-        return GeneralUtility::makeInstance(ModuleLoader::class);
73
-    }
65
+	/**
66
+	 * Get the Vidi Module Loader.
67
+	 *
68
+	 * @return ModuleLoader|object
69
+	 */
70
+	protected function getModuleLoader()
71
+	{
72
+		return GeneralUtility::makeInstance(ModuleLoader::class);
73
+	}
74 74
 }
Please login to merge, or discard this patch.