Passed
Pull Request — master (#177)
by
unknown
06:56
created
Classes/Controller/UserController.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
         $this->frontendUserRepository->update($frontendUser);
42 42
         $severity = \TYPO3\CMS\Core\Messaging\AbstractMessage::OK;
43
-        $this->addFlashMessage("Success", '', $severity,false);
43
+        $this->addFlashMessage("Success", '', $severity, false);
44 44
 
45 45
         $this->forward('settings');
46 46
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
 /**
20 20
  * Controller for the "workspace"/"my publications" area.
21 21
  */
22
-class UserController  extends AbstractController
23
-{
22
+class UserController  extends AbstractController {
24 23
     /**
25 24
      * benutzerRepository
26 25
      *
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
         $this->frontendUserRepository->update($frontendUser);
42 42
         $severity = \TYPO3\CMS\Core\Messaging\AbstractMessage::OK;
43
-        $this->addFlashMessage("Success", '', $severity,false);
43
+        $this->addFlashMessage("Success", '', $severity,FALSE);
44 44
 
45 45
         $this->forward('settings');
46 46
     }
Please login to merge, or discard this patch.
Classes/Domain/Model/FrontendUser.php 2 patches
Braces   +11 added lines, -22 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@  discard block
 block discarded – undo
19 19
 /**
20 20
 * Frontend user
21 21
 */
22
-class FrontendUser extends \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
23
-{
22
+class FrontendUser extends \TYPO3\CMS\Extbase\Domain\Model\FrontendUser {
24 23
     /**
25 24
      * storedSearches
26 25
      *
@@ -60,8 +59,7 @@  discard block
 block discarded – undo
60 59
     /**
61 60
      * __construct
62 61
      */
63
-    public function __construct()
64
-    {
62
+    public function __construct() {
65 63
         parent::__construct();
66 64
 
67 65
         //Do not remove the next line: It would break the functionality
@@ -73,8 +71,7 @@  discard block
 block discarded – undo
73 71
      *
74 72
      * @return void
75 73
      */
76
-    protected function initStorageObjects()
77
-    {
74
+    protected function initStorageObjects() {
78 75
         $this->storedSearches = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
79 76
     }
80 77
 
@@ -84,8 +81,7 @@  discard block
 block discarded – undo
84 81
      *
85 82
      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\StoredSearch>
86 83
      */
87
-    public function getStoredSearches()
88
-    {
84
+    public function getStoredSearches() {
89 85
         return $this->storedSearches;
90 86
     }
91 87
 
@@ -95,16 +91,14 @@  discard block
 block discarded – undo
95 91
      * @param  \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\StoredSearch> $storedSearches
96 92
      * @return void
97 93
      */
98
-    public function setStoredSearches(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $storedSearches)
99
-    {
94
+    public function setStoredSearches(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $storedSearches) {
100 95
         $this->storedSearches = $storedSearches;
101 96
     }
102 97
 
103 98
     /**
104 99
      * @param \EWW\Dpf\Domain\Model\StoredSearch $storedSearch
105 100
      */
106
-    public function addStoredSearch(\EWW\Dpf\Domain\Model\StoredSearch $storedSearch)
107
-    {
101
+    public function addStoredSearch(\EWW\Dpf\Domain\Model\StoredSearch $storedSearch) {
108 102
         $this->storedSearches->attach($storedSearch);
109 103
     }
110 104
 
@@ -113,8 +107,7 @@  discard block
 block discarded – undo
113 107
      *
114 108
      * @return string
115 109
      */
116
-    public function getUserRole()
117
-    {
110
+    public function getUserRole() {
118 111
         // Get frontend user groups of the client.
119 112
         $clientFrontendGroups = array();
120 113
         foreach ($this->frontendUserGroupRepository->findAll() as $clientGroup) {
@@ -162,8 +155,7 @@  discard block
 block discarded – undo
162 155
     /**
163 156
      * @param bool $notifyPersonalLink
164 157
      */
165
-    public function setNotifyPersonalLink(bool $notifyPersonalLink)
166
-    {
158
+    public function setNotifyPersonalLink(bool $notifyPersonalLink) {
167 159
         $this->notifyPersonalLink = $notifyPersonalLink;
168 160
     }
169 161
 
@@ -178,8 +170,7 @@  discard block
 block discarded – undo
178 170
     /**
179 171
      * @param bool $notifyStatusChange
180 172
      */
181
-    public function setNotifyStatusChange(bool $notifyStatusChange)
182
-    {
173
+    public function setNotifyStatusChange(bool $notifyStatusChange) {
183 174
         $this->notifyStatusChange = $notifyStatusChange;
184 175
     }
185 176
 
@@ -194,8 +185,7 @@  discard block
 block discarded – undo
194 185
     /**
195 186
      * @param bool $notifyFulltextPublished
196 187
      */
197
-    public function setNotifyFulltextPublished(bool $notifyFulltextPublished)
198
-    {
188
+    public function setNotifyFulltextPublished(bool $notifyFulltextPublished) {
199 189
         $this->notifyFulltextPublished = $notifyFulltextPublished;
200 190
     }
201 191
 
@@ -210,8 +200,7 @@  discard block
 block discarded – undo
210 200
     /**
211 201
      * @param bool $notifyNewPublicationMypublication
212 202
      */
213
-    public function setNotifyNewPublicationMypublication(bool $notifyNewPublicationMypublication)
214
-    {
203
+    public function setNotifyNewPublicationMypublication(bool $notifyNewPublicationMypublication) {
215 204
         $this->notifyNewPublicationMypublication = $notifyNewPublicationMypublication;
216 205
     }
217 206
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\StoredSearch>
28 28
      * @cascade remove
29 29
      */
30
-    protected $storedSearches = null;
30
+    protected $storedSearches = NULL;
31 31
 
32 32
     /**
33 33
      * frontendUserGroupRepository
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @var \EWW\Dpf\Domain\Repository\FrontendUserGroupRepository
36 36
      * @inject
37 37
      */
38
-    protected $frontendUserGroupRepository = null;
38
+    protected $frontendUserGroupRepository = NULL;
39 39
     
40 40
     /**
41 41
      * @var boolean
Please login to merge, or discard this patch.
Configuration/TCA/Overrides/fe_users.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
 $temporaryColumns = array (
20 20
     'stored_searches' => [
21
-        'exclude' => true,
21
+        'exclude' => TRUE,
22 22
         'label' => 'stored_searches',
23 23
         'config' => [
24 24
             'type' => 'inline',
Please login to merge, or discard this patch.
ext_localconf.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@  discard block
 block discarded – undo
22 22
     require_once $composerAutoloadFile;
23 23
 }
24 24
 
25
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\TransferTask'] = array(
25
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\TransferTask'] = array (
26 26
     'extension'   => $_EXTKEY,
27 27
     'title'       => 'Qucosa-Dokumente ans Repository übertragen.',
28 28
     'description' => '',
29 29
 );
30 30
 
31
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\EmbargoTask'] = array(
31
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['EWW\Dpf\Tasks\EmbargoTask'] = array (
32 32
     'extension' => $_EXTKEY,
33 33
     'title' => 'Kitodo.Publication Embargo Task',
34 34
     'description' => 'Embargo task for sending information to admins or publish files automatically if the embargo date is expired',
@@ -36,20 +36,20 @@  discard block
 block discarded – undo
36 36
 
37 37
 
38 38
 if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers']) == false) {
39
-    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array();
39
+    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'] = array ();
40 40
 }
41 41
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'EWW\Dpf\Command\TransferCommandController';
42 42
 
43 43
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
44 44
     'EWW.' . $_EXTKEY,
45 45
     'Qucosaform',
46
-    array(
46
+    array (
47 47
         'DocumentForm'     => 'list,new,create,edit,update,delete,cancel',
48 48
         'AjaxDocumentForm' => 'group,fileGroup,field,deleteFile,primaryUpload,secondaryUpload,fillOut',
49 49
         'Gnd'              => 'search',
50 50
     ),
51 51
     // non-cacheable actions
52
-    array(
52
+    array (
53 53
         'DocumentForm'     => 'list,new,create,edit,update,delete,cancel,ajaxGroup,ajaxFileGroup,ajaxField',
54 54
         'AjaxDocumentForm' => 'group,fileGroup,field,deleteFile,primaryUpload,secondaryUpload,fillOut',
55 55
         'Gnd'              => 'search',
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
62 62
     'EWW.' . $_EXTKEY,
63 63
     'Frontendsearch',
64
-    array(
64
+    array (
65 65
         'SearchFE' => 'search,extendedSearch,showSearchForm',
66 66
     ),
67 67
     // non-cacheable actions
68
-    array(
68
+    array (
69 69
         'SearchFE' => 'search,extendedSearch'
70 70
     )
71 71
 );
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
74 74
     'EWW.' . $_EXTKEY,
75 75
     'Getfile',
76
-    array(
76
+    array (
77 77
         'GetFile'     => 'attachment',
78 78
     ),
79 79
     // non-cacheable actions
80
-    array(
80
+    array (
81 81
         'GetFile'     => 'attachment',
82 82
     )
83 83
 );
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
87 87
     'EWW.' . $_EXTKEY,
88 88
     'Backoffice',
89
-    array(
89
+    array (
90 90
         'Workspace'        => 'listWorkspace, initIndex, '
91 91
             .'batch, batchRegister, batchRemove, batchReleaseValidated, batchReleaseUnvalidated, uploadFiles',
92 92
         'Document'         => 'logout, showDetails, discard, postpone, deleteLocally, register, releasePublish, '
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         'User'             => 'settings, saveSettings',
104 104
     ),
105 105
     // non-cacheable actions
106
-    array(
106
+    array (
107 107
         'Workspace'        => 'listWorkspace, initIndex, '
108 108
             .'batch, batchRegister, batchRemove, batchReleaseValidated, batchReleaseUnvalidated, uploadFiles',
109 109
         'Document'         => 'logout, showDetails, discard, postpone, deleteLocally, register, releasePublish, '
Please login to merge, or discard this patch.