Passed
Pull Request — master (#168)
by
unknown
20:44
created
Configuration/TCA/tx_dpf_domain_model_storedsearch.php 2 patches
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     die('Access denied.');
17 17
 }
18 18
 
19
-return array(
20
-    'ctrl' => array(
19
+return array (
20
+    'ctrl' => array (
21 21
         'title'                    => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_storedsearch',
22 22
         'label'                    => 'name',
23 23
         'tstamp'                   => 'tstamp',
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         'transOrigPointerField'    => 'l10n_parent',
29 29
         'transOrigDiffSourceField' => 'l10n_diffsource',
30 30
         'delete'                   => 'deleted',
31
-        'enablecolumns'            => array(
31
+        'enablecolumns'            => array (
32 32
             'disabled'  => 'hidden',
33 33
             'starttime' => 'starttime',
34 34
             'endtime'   => 'endtime',
@@ -36,97 +36,97 @@  discard block
 block discarded – undo
36 36
         'searchFields'             => 'title',
37 37
         'iconfile'                 => 'EXT:dpf/Resources/Public/Icons/tx_dpf_domain_model_editinglock.gif',
38 38
     ),
39
-    'interface' => array(
39
+    'interface' => array (
40 40
         'showRecordFieldList' => 'name, query',
41 41
     ),
42
-    'types'     => array(
43
-        '1' => array('showitem' => ',--palette--;;1, 
42
+    'types'     => array (
43
+        '1' => array ('showitem' => ',--palette--;;1, 
44 44
         name, query,      
45 45
         --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access'),
46 46
     ),
47
-    'palettes'  => array(
48
-        '1' => array('showitem' => ''),
47
+    'palettes'  => array (
48
+        '1' => array ('showitem' => ''),
49 49
     ),
50
-    'columns'   => array(
50
+    'columns'   => array (
51 51
 
52
-        'sys_language_uid'           => array(
52
+        'sys_language_uid'           => array (
53 53
             'exclude' => 1,
54 54
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.language',
55
-            'config'  => array(
55
+            'config'  => array (
56 56
                 'type'                => 'select',
57 57
                 'renderType'          => 'selectSingle',
58 58
                 'foreign_table'       => 'sys_language',
59 59
                 'foreign_table_where' => 'ORDER BY sys_language.title',
60
-                'items'               => array(
61
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
62
-                    array('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
60
+                'items'               => array (
61
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.allLanguages', -1),
62
+                    array ('LLL:EXT:lang/locallang_general.xlf:LGL.default_value', 0),
63 63
                 ),
64 64
             ),
65 65
         ),
66
-        'l10n_parent'                => array(
66
+        'l10n_parent'                => array (
67 67
             'displayCond' => 'FIELD:sys_language_uid:>:0',
68 68
             'exclude'     => 1,
69 69
             'label'       => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
70
-            'config'      => array(
70
+            'config'      => array (
71 71
                 'type'                => 'select',
72 72
                 'renderType'          => 'selectSingle',
73
-                'items'               => array(
74
-                    array('', 0),
73
+                'items'               => array (
74
+                    array ('', 0),
75 75
                 ),
76 76
                 'foreign_table'       => 'tx_dpf_domain_model_storedsearch',
77 77
                 'foreign_table_where' => 'AND tx_dpf_domain_model_storedsearch.pid=###CURRENT_PID### AND tx_dpf_domain_model_storedsearch.sys_language_uid IN (-1,0)',
78 78
             ),
79 79
         ),
80
-        'l10n_diffsource'            => array(
81
-            'config' => array(
80
+        'l10n_diffsource'            => array (
81
+            'config' => array (
82 82
                 'type' => 'passthrough',
83 83
             ),
84 84
         ),
85 85
 
86
-        't3ver_label'                => array(
86
+        't3ver_label'                => array (
87 87
             'label'  => 'LLL:EXT:lang/locallang_general.xlf:LGL.versionLabel',
88
-            'config' => array(
88
+            'config' => array (
89 89
                 'type' => 'input',
90 90
                 'size' => 30,
91 91
                 'max'  => 255,
92 92
             ),
93 93
         ),
94 94
 
95
-        'hidden'                     => array(
95
+        'hidden'                     => array (
96 96
             'exclude' => 1,
97 97
             'label'   => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
98
-            'config'  => array(
98
+            'config'  => array (
99 99
                 'type' => 'check',
100 100
             ),
101 101
         ),
102
-        'starttime'                  => array(
102
+        'starttime'                  => array (
103 103
             'exclude'   => 1,
104 104
             'l10n_mode' => 'mergeIfNotBlank',
105 105
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.starttime',
106
-            'config'    => array(
106
+            'config'    => array (
107 107
                 'type'     => 'input',
108 108
                 'renderType' => 'inputDateTime',
109 109
                 'size'     => 13,
110 110
                 'eval'     => 'datetime',
111 111
                 'checkbox' => 0,
112 112
                 'default'  => 0,
113
-                'range'    => array(
113
+                'range'    => array (
114 114
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
115 115
                 ),
116 116
             ),
117 117
         ),
118
-        'endtime'                    => array(
118
+        'endtime'                    => array (
119 119
             'exclude'   => 1,
120 120
             'l10n_mode' => 'mergeIfNotBlank',
121 121
             'label'     => 'LLL:EXT:lang/locallang_general.xlf:LGL.endtime',
122
-            'config'    => array(
122
+            'config'    => array (
123 123
                 'type'     => 'input',
124 124
                 'renderType' => 'inputDateTime',
125 125
                 'size'     => 13,
126 126
                 'eval'     => 'datetime',
127 127
                 'checkbox' => 0,
128 128
                 'default'  => 0,
129
-                'range'    => array(
129
+                'range'    => array (
130 130
                     'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')),
131 131
                 ),
132 132
             ),
@@ -138,20 +138,20 @@  discard block
 block discarded – undo
138 138
             ],
139 139
         ],
140 140
 
141
-        'name'                      => array(
141
+        'name'                      => array (
142 142
             'exclude' => 1,
143 143
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_storedsearch.name',
144
-            'config'  => array(
144
+            'config'  => array (
145 145
                 'type' => 'input',
146 146
                 'size' => 30,
147 147
                 'eval' => 'trim',
148 148
             ),
149 149
         ),
150 150
 
151
-        'query'                      => array(
151
+        'query'                      => array (
152 152
             'exclude' => 1,
153 153
             'label'   => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_storedsearch.query',
154
-            'config'  => array(
154
+            'config'  => array (
155 155
                 'type' => 'text',
156 156
                 'cols' => 40,
157 157
                 'rows' => 15,
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         'tstamp'                   => 'tstamp',
23 23
         'crdate'                   => 'crdate',
24 24
         'cruser_id'                => 'cruser_id',
25
-        'versioningWS'             => true,
25
+        'versioningWS'             => TRUE,
26 26
         'languageField'            => 'sys_language_uid',
27 27
         'transOrigPointerField'    => 'l10n_parent',
28 28
         'transOrigDiffSourceField' => 'l10n_diffsource',
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
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     ],
31 31
 */
32 32
     'stored_searches' => [
33
-        'exclude' => true,
33
+        'exclude' => TRUE,
34 34
         'label' => 'stored_searches',
35 35
         'config' => [
36 36
             'type' => 'inline',
Please login to merge, or discard this patch.
Classes/ViewHelpers/Security/KitodoRoleViewHelper.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class KitodoRoleViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
18
-{
17
+class KitodoRoleViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
19 18
     /**
20 19
      * security
21 20
      *
@@ -29,8 +28,7 @@  discard block
 block discarded – undo
29 28
      *
30 29
      * @return string
31 30
      */
32
-    public function render()
33
-    {
31
+    public function render() {
34 32
         return $this->security->getUser()->getUserRole();
35 33
     }
36 34
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * @var \EWW\Dpf\Security\Security
23 23
      * @inject
24 24
      */
25
-    protected $security = null;
25
+    protected $security = NULL;
26 26
 
27 27
     /**
28 28
      * Shows the frontend user name of the given frontenduser user id.
Please login to merge, or discard this patch.
Classes/Session/Session.php 2 patches
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class Session
18
-{
17
+class Session {
19 18
     const ROOT_KEY = "tx_dpf";
20 19
     const LIST_ACTION_KEY = "list_action";
21 20
     const WORKSPACE = "workspace";
@@ -24,8 +23,7 @@  discard block
 block discarded – undo
24 23
     /**
25 24
      * @return SearchSessionData $data
26 25
      */
27
-    public function getWorkspaceData()
28
-    {
26
+    public function getWorkspaceData() {
29 27
         $sessionData = $this->getData(self::ROOT_KEY);
30 28
         if (array_key_exists(self::WORKSPACE, $sessionData)) {
31 29
             return unserialize($sessionData[self::WORKSPACE]);
@@ -37,8 +35,7 @@  discard block
 block discarded – undo
37 35
     /**
38 36
      * @param SearchSessionData $data
39 37
      */
40
-    public function setWorkspaceData(SearchSessionData $data)
41
-    {
38
+    public function setWorkspaceData(SearchSessionData $data) {
42 39
         $sessionData[self::WORKSPACE] = serialize($data);
43 40
         $this->setData($sessionData);
44 41
     }
@@ -50,8 +47,7 @@  discard block
 block discarded – undo
50 47
      * @param $action
51 48
      * @param $controller
52 49
      */
53
-    public function setListAction($action, $controller, $uri = null)
54
-    {
50
+    public function setListAction($action, $controller, $uri = null) {
55 51
         $sessionData = $this->getData(self::ROOT_KEY);
56 52
         $sessionData[self::LIST_ACTION_KEY] = [$action, $controller, $uri];
57 53
         $this->setData($sessionData);
@@ -63,8 +59,7 @@  discard block
 block discarded – undo
63 59
      *
64 60
      * @return array|mixed
65 61
      */
66
-    public function getListAction()
67
-    {
62
+    public function getListAction() {
68 63
         $sessionData = $this->getData();
69 64
         if (is_array($sessionData) && array_key_exists(self::LIST_ACTION_KEY, $sessionData)) {
70 65
             return $sessionData[self::LIST_ACTION_KEY];
@@ -78,8 +73,7 @@  discard block
 block discarded – undo
78 73
      *
79 74
      * @param array $data
80 75
      */
81
-    public function setData($data)
82
-    {
76
+    public function setData($data) {
83 77
         $userGlobals = $this->getUserGlobals();
84 78
 
85 79
         if ($userGlobals) {
@@ -94,8 +88,7 @@  discard block
 block discarded – undo
94 88
      *
95 89
      * @return array
96 90
      */
97
-    public function getData()
98
-    {
91
+    public function getData() {
99 92
         $userGlobals = $this->getUserGlobals();
100 93
 
101 94
         $sessionData = null;
@@ -116,8 +109,7 @@  discard block
 block discarded – undo
116 109
      *
117 110
      * @return mixed|null
118 111
      */
119
-    protected function getUserGlobals()
120
-    {
112
+    protected function getUserGlobals() {
121 113
         $userGlobals = null;
122 114
 
123 115
         if (!empty($GLOBALS['TSFE']) && is_object($GLOBALS['TSFE'])) {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      * @param $action
51 51
      * @param $controller
52 52
      */
53
-    public function setListAction($action, $controller, $uri = null)
53
+    public function setListAction($action, $controller, $uri = NULL)
54 54
     {
55 55
         $sessionData = $this->getData(self::ROOT_KEY);
56 56
         $sessionData[self::LIST_ACTION_KEY] = [$action, $controller, $uri];
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $userGlobals = $this->getUserGlobals();
100 100
 
101
-        $sessionData = null;
101
+        $sessionData = NULL;
102 102
 
103 103
         if ($userGlobals) {
104 104
             $sessionData = $userGlobals->getSessionData(self::ROOT_KEY);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     protected function getUserGlobals()
120 120
     {
121
-        $userGlobals = null;
121
+        $userGlobals = NULL;
122 122
 
123 123
         if (!empty($GLOBALS['TSFE']) && is_object($GLOBALS['TSFE'])) {
124 124
 
Please login to merge, or discard this patch.
Classes/Session/SearchSessionData.php 2 patches
Braces   +16 added lines, -32 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 use EWW\Dpf\Domain\Workflow\DocumentWorkflow;
18 18
 
19
-class SearchSessionData
20
-{
19
+class SearchSessionData {
21 20
     /**
22 21
      * @var array
23 22
      */
@@ -54,8 +53,7 @@  discard block
 block discarded – undo
54 53
      *
55 54
      * @return array
56 55
      */
57
-    public function getExcludeFilters()
58
-    {
56
+    public function getExcludeFilters() {
59 57
         return $this->excludeFilters;
60 58
     }
61 59
 
@@ -64,8 +62,7 @@  discard block
 block discarded – undo
64 62
      * Toggles the discarded documents filter.
65 63
      *
66 64
      */
67
-    public function toggleExcludeDiscardedFilter()
68
-    {
65
+    public function toggleExcludeDiscardedFilter() {
69 66
         if (array_key_exists('aliasState', $this->excludeFilters)) {
70 67
             unset($this->excludeFilters['aliasState']);
71 68
         } else {
@@ -78,8 +75,7 @@  discard block
 block discarded – undo
78 75
      * Toggles the hide bookmarks filter.
79 76
      *
80 77
      */
81
-    public function toggleBookmarksOnlyFilter()
82
-    {
78
+    public function toggleBookmarksOnlyFilter() {
83 79
         if (array_key_exists('bookmarks', $this->excludeFilters)) {
84 80
             unset($this->excludeFilters['bookmarks']);
85 81
         } else {
@@ -93,8 +89,7 @@  discard block
 block discarded – undo
93 89
      * @param $name
94 90
      * @param array $values
95 91
      */
96
-    public function setFilter($name, $values = [])
97
-    {
92
+    public function setFilter($name, $values = []) {
98 93
         if ($name && $values && is_array($values)) {
99 94
             $this->filters[$name] = $values;
100 95
         } elseif ($name) {
@@ -108,8 +103,7 @@  discard block
 block discarded – undo
108 103
      *
109 104
      * @return array
110 105
      */
111
-    public function clearFilters()
112
-    {
106
+    public function clearFilters() {
113 107
         $this->filters = [];
114 108
     }
115 109
 
@@ -119,8 +113,7 @@  discard block
 block discarded – undo
119 113
      *
120 114
      * @return array
121 115
      */
122
-    public function getFilters()
123
-    {
116
+    public function getFilters() {
124 117
         return $this->filters;
125 118
     }
126 119
 
@@ -129,8 +122,7 @@  discard block
 block discarded – undo
129 122
      * Removes the sort information
130 123
      *
131 124
      */
132
-    public function clearSort()
133
-    {
125
+    public function clearSort() {
134 126
         $this->sortField = '';
135 127
         $this->sortOrder = '';
136 128
     }
@@ -140,8 +132,7 @@  discard block
 block discarded – undo
140 132
      *
141 133
      * @return string
142 134
      */
143
-    public function getSortField()
144
-    {
135
+    public function getSortField() {
145 136
         return $this->sortField;
146 137
     }
147 138
 
@@ -150,8 +141,7 @@  discard block
 block discarded – undo
150 141
      *
151 142
      * @param string $fieldName
152 143
      */
153
-    public function setSortField($fieldName)
154
-    {
144
+    public function setSortField($fieldName) {
155 145
         $this->sortField = $fieldName;
156 146
     }
157 147
 
@@ -160,8 +150,7 @@  discard block
 block discarded – undo
160 150
      *
161 151
      * @return string
162 152
      */
163
-    public function getSortOrder()
164
-    {
153
+    public function getSortOrder() {
165 154
         return $this->sortOrder;
166 155
     }
167 156
 
@@ -170,8 +159,7 @@  discard block
 block discarded – undo
170 159
      *
171 160
      * @param string $order
172 161
      */
173
-    public function setSortOrder($order)
174
-    {
162
+    public function setSortOrder($order) {
175 163
         $this->sortOrder = $order;
176 164
     }
177 165
 
@@ -180,8 +168,7 @@  discard block
 block discarded – undo
180 168
      *
181 169
      * @return string
182 170
      */
183
-    public function getSimpleQuery()
184
-    {
171
+    public function getSimpleQuery() {
185 172
         return $this->simpleQuery;
186 173
     }
187 174
 
@@ -190,8 +177,7 @@  discard block
 block discarded – undo
190 177
      *
191 178
      * @param string $query
192 179
      */
193
-    public function setSimpleQuery($query)
194
-    {
180
+    public function setSimpleQuery($query) {
195 181
         $this->simpleQuery = $query;
196 182
     }
197 183
 
@@ -200,8 +186,7 @@  discard block
 block discarded – undo
200 186
      *
201 187
      * @return int
202 188
      */
203
-    public function getItemsPerPage()
204
-    {
189
+    public function getItemsPerPage() {
205 190
         return $this->itemsPerPage;
206 191
     }
207 192
 
@@ -210,8 +195,7 @@  discard block
 block discarded – undo
210 195
      *
211 196
      * @param int $itemsPerPage
212 197
      */
213
-    public function setItemsPerPage($itemsPerPage)
214
-    {
198
+    public function setItemsPerPage($itemsPerPage) {
215 199
         $this->itemsPerPage = $itemsPerPage;
216 200
     }
217 201
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * @var string
43 43
      */
44
-    protected $simpleQuery = null;
44
+    protected $simpleQuery = NULL;
45 45
 
46 46
     /**
47 47
      * @var int
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         if (array_key_exists('bookmarks', $this->excludeFilters)) {
84 84
             unset($this->excludeFilters['bookmarks']);
85 85
         } else {
86
-            $this->excludeFilters['bookmarks'] = true;
86
+            $this->excludeFilters['bookmarks'] = TRUE;
87 87
         }
88 88
     }
89 89
 
Please login to merge, or discard this patch.
Classes/Helper/Mods.php 2 patches
Braces   +19 added lines, -38 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
  */
16 16
 
17 17
 
18
-class Mods
19
-{
18
+class Mods {
20 19
     /**
21 20
      * metadataObjectRepository
22 21
      *
@@ -36,13 +35,11 @@  discard block
 block discarded – undo
36 35
 
37 36
     protected $modsDom;
38 37
 
39
-    public function __construct($modsXml)
40
-    {
38
+    public function __construct($modsXml) {
41 39
         $this->setModsXml($modsXml);
42 40
     }
43 41
 
44
-    public function setModsXml($modsXml)
45
-    {
42
+    public function setModsXml($modsXml) {
46 43
         $modsDom = new \DOMDocument();
47 44
         if (!empty($modsXml)) {
48 45
             if (is_null(@$modsDom->loadXML($modsXml))) {
@@ -52,19 +49,16 @@  discard block
 block discarded – undo
52 49
         $this->modsDom = $modsDom;
53 50
     }
54 51
 
55
-    public function getModsXml()
56
-    {
52
+    public function getModsXml() {
57 53
         return $this->modsDom->saveXML();
58 54
     }
59 55
 
60
-    public function getModsXpath()
61
-    {
56
+    public function getModsXpath() {
62 57
         $xpath = \EWW\Dpf\Helper\XPath::create($this->modsDom);
63 58
         return $xpath;
64 59
     }
65 60
 
66
-    public function getTitle()
67
-    {
61
+    public function getTitle() {
68 62
         $titleNode = $this->getModsXpath()->query('/mods:mods/mods:titleInfo[@usage="primary"]/mods:title');
69 63
 
70 64
         if ($titleNode->length == 0) {
@@ -73,13 +67,11 @@  discard block
 block discarded – undo
73 67
         return $titleNode->item(0)->nodeValue;
74 68
     }
75 69
 
76
-    public function getAuthors()
77
-    {
70
+    public function getAuthors() {
78 71
         return $this->getPersons("aut");
79 72
     }
80 73
 
81
-    public function getPublishers()
82
-    {
74
+    public function getPublishers() {
83 75
         return $this->getPersons("edt");
84 76
     }
85 77
 
@@ -89,8 +81,7 @@  discard block
 block discarded – undo
89 81
      * @param $role
90 82
      * @return array
91 83
      */
92
-    protected function getPersons($role)
93
-    {
84
+    protected function getPersons($role) {
94 85
         $xpath = $this->getModsXpath();
95 86
 
96 87
         $authorNode = $xpath->query('/mods:mods/mods:name[mods:role/mods:roleTerm[@type="code"]="'.$role.'"]');
@@ -119,8 +110,7 @@  discard block
 block discarded – undo
119 110
         return $authors;
120 111
     }
121 112
 
122
-    public function setDateIssued($date)
123
-    {
113
+    public function setDateIssued($date) {
124 114
 
125 115
         $originInfo = $this->getModsXpath()->query('/mods:mods/mods:originInfo[@eventType="distribution"]');
126 116
 
@@ -160,8 +150,7 @@  discard block
 block discarded – undo
160 150
     }
161 151
 
162 152
 
163
-    public function getPublishingYear()
164
-    {
153
+    public function getPublishingYear() {
165 154
         $year = $this->getModsXpath()->query('/mods:mods/mods:originInfo[@eventType="publication"]/mods:dateIssued[@encoding="iso8601"]');
166 155
         if ($year->length > 0) {
167 156
             return $year->item(0)->nodeValue;
@@ -170,8 +159,7 @@  discard block
 block discarded – undo
170 159
         return null;
171 160
     }
172 161
 
173
-    public function getOriginalSourceTitle()
174
-    {
162
+    public function getOriginalSourceTitle() {
175 163
         $node= $this->getModsXpath()->query('/mods:mods/mods:relatedItem[@type="original"]/mods:titleInfo/mods:title');
176 164
         if ($node->length > 0) {
177 165
             return $node->item(0)->nodeValue;
@@ -180,8 +168,7 @@  discard block
 block discarded – undo
180 168
         return null;
181 169
     }
182 170
 
183
-    public function getDateIssued()
184
-    {
171
+    public function getDateIssued() {
185 172
 
186 173
         $dateIssued = $this->getModsXpath()->query('/mods:mods/mods:originInfo[@eventType="distribution"]/mods:dateIssued[@encoding="iso8601"][@keyDate="yes"]');
187 174
         if ($dateIssued->length > 0) {
@@ -191,8 +178,7 @@  discard block
 block discarded – undo
191 178
         return null;
192 179
     }
193 180
 
194
-    public function removeDateIssued()
195
-    {
181
+    public function removeDateIssued() {
196 182
 
197 183
         $dateIssued = $this->getModsXpath()->query('/mods:mods/mods:originInfo[@eventType="distribution"]/mods:dateIssued[@encoding="iso8601"][@keyDate="yes"]');
198 184
         if ($dateIssued->length > 0) {
@@ -201,8 +187,7 @@  discard block
 block discarded – undo
201 187
 
202 188
     }
203 189
 
204
-    public function hasQucosaUrn()
205
-    {
190
+    public function hasQucosaUrn() {
206 191
         $urnNodeList = $this->getModsXpath()->query('/mods:mods/mods:identifier[@type="qucosa:urn"]');
207 192
 
208 193
         $hasUrn = false;
@@ -215,8 +200,7 @@  discard block
 block discarded – undo
215 200
         return $hasUrn;
216 201
     }
217 202
 
218
-    public function getQucosaUrn()
219
-    {
203
+    public function getQucosaUrn() {
220 204
         $urnNodeList = $this->getModsXpath()->query('/mods:mods/mods:identifier[@type="qucosa:urn"]');
221 205
         $urnList     = '';
222 206
 
@@ -228,8 +212,7 @@  discard block
 block discarded – undo
228 212
         return $urnList;
229 213
     }
230 214
 
231
-    public function addQucosaUrn($urn)
232
-    {
215
+    public function addQucosaUrn($urn) {
233 216
         $rootNode = $this->getModsXpath()->query('/mods:mods');
234 217
 
235 218
         if ($rootNode->length == 1) {
@@ -243,8 +226,7 @@  discard block
 block discarded – undo
243 226
 
244 227
     }
245 228
 
246
-    public function clearAllUrn()
247
-    {
229
+    public function clearAllUrn() {
248 230
         $urnNodeList = $this->getModsXpath()->query('/mods:mods/mods:identifier[@type="urn"]');
249 231
 
250 232
         foreach ($urnNodeList as $urnNode) {
@@ -260,8 +242,7 @@  discard block
 block discarded – undo
260 242
     /**
261 243
      * @return string
262 244
      */
263
-    public function getSourceDetails()
264
-    {
245
+    public function getSourceDetails() {
265 246
         $data = [];
266 247
 
267 248
         $dataNodes[] = $this->getModsXpath()->query('/mods:mods/mods:relatedItem[@type="original"]');
Please login to merge, or discard this patch.
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @var \EWW\Dpf\Domain\Repository\MetadataObjectRepository
24 24
      * @inject
25 25
      */
26
-    protected $metadataObjectRepository = null;
26
+    protected $metadataObjectRepository = NULL;
27 27
 
28 28
     /**
29 29
      * metadatGroupRepository
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * @var \EWW\Dpf\Domain\Repository\MetadataGroupRepository
32 32
      * @inject
33 33
      */
34
-    protected $metadataGroupRepository = null;
34
+    protected $metadataGroupRepository = NULL;
35 35
 
36 36
 
37 37
     protected $modsDom;
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
             return $year->item(0)->nodeValue;
168 168
         }
169 169
 
170
-        return null;
170
+        return NULL;
171 171
     }
172 172
 
173 173
     public function getOriginalSourceTitle()
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
             return $node->item(0)->nodeValue;
178 178
         }
179 179
 
180
-        return null;
180
+        return NULL;
181 181
     }
182 182
 
183 183
     public function getDateIssued()
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             return $dateIssued->item(0)->nodeValue;
189 189
         }
190 190
 
191
-        return null;
191
+        return NULL;
192 192
     }
193 193
 
194 194
     public function removeDateIssued()
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     {
206 206
         $urnNodeList = $this->getModsXpath()->query('/mods:mods/mods:identifier[@type="qucosa:urn"]');
207 207
 
208
-        $hasUrn = false;
208
+        $hasUrn = FALSE;
209 209
 
210 210
         foreach ($urnNodeList as $urnNode) {
211 211
             $value  = $urnNode->nodeValue;
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         $urnNodeList = $this->getModsXpath()->query('/mods:mods/mods:identifier[@type="qucosa:urn"]');
221 221
         $urnList     = '';
222 222
 
223
-        if ($urnNodeList != null) {
223
+        if ($urnNodeList != NULL) {
224 224
             foreach ($urnNodeList as $urnNode) {
225 225
                 $urnList = $urnNode->nodeValue;
226 226
             }
Please login to merge, or discard this patch.
Classes/Domain/Repository/BookmarkRepository.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -22,15 +22,13 @@  discard block
 block discarded – undo
22 22
 /**
23 23
  * The repository for Bookmarks
24 24
  */
25
-class BookmarkRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository
26
-{
25
+class BookmarkRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository {
27 26
     /**
28 27
      * @param int $feUserUid
29 28
      * @param string $identifier
30 29
      * @return object
31 30
      */
32
-    public function findBookmark($feUserUid, $identifier)
33
-    {
31
+    public function findBookmark($feUserUid, $identifier) {
34 32
         $query = $this->createQuery();
35 33
 
36 34
         $query->matching(
@@ -49,8 +47,7 @@  discard block
 block discarded – undo
49 47
      * @return bool
50 48
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
51 49
      */
52
-    public function removeBookmark($document, $feUserUid)
53
-    {
50
+    public function removeBookmark($document, $feUserUid) {
54 51
         $query = $this->createQuery();
55 52
 
56 53
         if ($document instanceof Document) {
@@ -82,8 +79,7 @@  discard block
 block discarded – undo
82 79
      * @return bool
83 80
      * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
84 81
      */
85
-    public function addBookmark($feUserUid, $document)
86
-    {
82
+    public function addBookmark($feUserUid, $document) {
87 83
         if ($document instanceof Document) {
88 84
             $identifier = $document->getDocumentIdentifier();
89 85
         } else {
Please login to merge, or discard this patch.
Classes/Domain/Repository/StoredSearchRepository.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace EWW\Dpf\Domain\Repository;
3 3
 
4
-class StoredSearchRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
5
-{
4
+class StoredSearchRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
6 5
 }
Please login to merge, or discard this patch.
Classes/Domain/Model/FrontendUser.php 2 patches
Braces   +7 added lines, -14 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
      *
@@ -40,8 +39,7 @@  discard block
 block discarded – undo
40 39
     /**
41 40
      * __construct
42 41
      */
43
-    public function __construct()
44
-    {
42
+    public function __construct() {
45 43
         parent::__construct();
46 44
 
47 45
         //Do not remove the next line: It would break the functionality
@@ -53,8 +51,7 @@  discard block
 block discarded – undo
53 51
      *
54 52
      * @return void
55 53
      */
56
-    protected function initStorageObjects()
57
-    {
54
+    protected function initStorageObjects() {
58 55
         $this->storedSearches = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
59 56
     }
60 57
 
@@ -64,8 +61,7 @@  discard block
 block discarded – undo
64 61
      *
65 62
      * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\StoredSearch>
66 63
      */
67
-    public function getStoredSearches()
68
-    {
64
+    public function getStoredSearches() {
69 65
         return $this->storedSearches;
70 66
     }
71 67
 
@@ -75,16 +71,14 @@  discard block
 block discarded – undo
75 71
      * @param  \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EWW\Dpf\Domain\Model\StoredSearch> $storedSearches
76 72
      * @return void
77 73
      */
78
-    public function setStoredSearches(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $storedSearches)
79
-    {
74
+    public function setStoredSearches(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $storedSearches) {
80 75
         $this->storedSearches = $storedSearches;
81 76
     }
82 77
 
83 78
     /**
84 79
      * @param \EWW\Dpf\Domain\Model\StoredSearch $storedSearch
85 80
      */
86
-    public function addStoredSearch(\EWW\Dpf\Domain\Model\StoredSearch $storedSearch)
87
-    {
81
+    public function addStoredSearch(\EWW\Dpf\Domain\Model\StoredSearch $storedSearch) {
88 82
         $this->storedSearches->attach($storedSearch);
89 83
     }
90 84
 
@@ -93,8 +87,7 @@  discard block
 block discarded – undo
93 87
      *
94 88
      * @return string
95 89
      */
96
-    public function getUserRole()
97
-    {
90
+    public function getUserRole() {
98 91
         // Get frontend user groups of the client.
99 92
         $clientFrontendGroups = array();
100 93
         foreach ($this->frontendUserGroupRepository->findAll() as $clientGroup) {
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
      * __construct
Please login to merge, or discard this patch.