Passed
Push — master ( 1991ec...391449 )
by Ralf
09:39
created
Classes/Services/Identifier/UrnBuilder.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,13 +150,13 @@
 block discarded – undo
150 150
         $nbn = strtolower($urn);
151 151
 
152 152
         // array of characters to match
153
-        $search_pattern = array('/9/', '/8/', '/7/', '/6/', '/5/', '/4/', '/3/', '/2/', '/1/', '/0/', '/a/', '/b/', '/c/',
153
+        $search_pattern = array ('/9/', '/8/', '/7/', '/6/', '/5/', '/4/', '/3/', '/2/', '/1/', '/0/', '/a/', '/b/', '/c/',
154 154
             '/d/', '/e/', '/f/', '/g/', '/h/', '/i/', '/j/', '/k/', '/l/', '/m/', '/n/', '/o/', '/p/', '/q/', '/r/', '/s/',
155 155
             '/t/', '/u/', '/v/', '/w/', '/x/', '/y/', '/z/', '/-/', '/:/');
156 156
 
157 157
         // array of corresponding replacements, '9' will be temporarily replaced with placeholder '_' to prevent
158 158
         // replacement of '41' with '52'
159
-        $replacements = array('_', 9, 8, 7, 6, 5, 4, 3, 2, 1, 18, 14, 19, 15, 16, 21, 22, 23, 24, 25, 42, 26, 27, 13, 28, 29,
159
+        $replacements = array ('_', 9, 8, 7, 6, 5, 4, 3, 2, 1, 18, 14, 19, 15, 16, 21, 22, 23, 24, 25, 42, 26, 27, 13, 28, 29,
160 160
             31, 12, 32, 33, 11, 34, 35, 36, 37, 38, 39, 17);
161 161
 
162 162
         // replace matching pattern in given nbn with corresponding replacement
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 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 UrnBuilder
18
-{
17
+class UrnBuilder {
19 18
 
20 19
     /**
21 20
      * Standard prefix of the URN for DNB (Deutsche Nationalbibliothek).
@@ -46,8 +45,7 @@  discard block
 block discarded – undo
46 45
      * @throws InvalidArgumentException Thrown if at least one of the subnamespace parts contain other
47 46
      *                                  characters than characters.
48 47
      */
49
-    public function __construct($snid1, $snid2)
50
-    {
48
+    public function __construct($snid1, $snid2) {
51 49
 
52 50
         if (0 === preg_match('/^[a-zA-Z]+$/', $snid1)) {
53 51
             throw new \InvalidArgumentException('Used invalid first subnamespace identifier.');
@@ -67,8 +65,7 @@  discard block
 block discarded – undo
67 65
      * @throws InvalidArgumentException Thrown if the niss contains invalid characters.
68 66
      * @return string The URN.
69 67
      */
70
-    public function getUrn($niss)
71
-    {
68
+    public function getUrn($niss) {
72 69
 
73 70
         // regexp pattern for valid niss
74 71
         if (0 === preg_match('/^[a-zA-Z0-9\-]+$/', $niss)) {
@@ -89,8 +86,7 @@  discard block
 block discarded – undo
89 86
      * @throws InvalidArgumentException Thrown if the niss contains invalid characters.
90 87
      * @return integer Check digit.
91 88
      */
92
-    public function getCheckDigit($niss)
93
-    {
89
+    public function getCheckDigit($niss) {
94 90
 
95 91
         // regexp pattern for valid niss
96 92
         if (0 === preg_match('/^[a-zA-Z0-9\-]+$/', $niss)) {
@@ -140,8 +136,7 @@  discard block
 block discarded – undo
140 136
      * @param string $urn A partial URN with the checkdigit missing.
141 137
      * @return string The given URN with all characters replaced by numbers.
142 138
      */
143
-    private function replaceUrnChars($urn)
144
-    {
139
+    private function replaceUrnChars($urn) {
145 140
         // However, the preg_replace function calls itself on the result of a previos run. In order to get
146 141
         // the replacement right, characters and numbers in the arrays below have got a specific order to make
147 142
         // it work. Be careful when changing those numbers! Tests may help ;)
Please login to merge, or discard this patch.
Classes/ViewHelpers/Widget/Controller/PaginateController.php 3 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     /**
35 35
      * @var array
36 36
      */
37
-    protected $configuration = array(
37
+    protected $configuration = array (
38 38
         'itemsPerPage'         => 10,
39 39
         'insertAbove'          => false,
40 40
         'insertBelow'          => true,
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     public function indexAction($currentPage = 1)
93 93
     {
94 94
         // set current page
95
-        if(!empty($this->widgetConfiguration['currentPage'])) {
95
+        if (!empty($this->widgetConfiguration['currentPage'])) {
96 96
             $currentPage = $this->widgetConfiguration['currentPage'];
97 97
         };
98 98
         $this->currentPage = (int) $currentPage;
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 $offset = ((int) ($itemsPerPage * ($this->currentPage - 1)));
111 111
             }
112 112
         }
113
-        $this->view->assign('contentArguments', array(
113
+        $this->view->assign('contentArguments', array (
114 114
             $this->widgetConfiguration['as'] => $this->objects,
115 115
         ));
116 116
         $this->view->assign('configuration', $this->configuration);
@@ -151,11 +151,11 @@  discard block
 block discarded – undo
151 151
     protected function buildPagination()
152 152
     {
153 153
         $this->calculateDisplayRange();
154
-        $pages = array();
154
+        $pages = array ();
155 155
         for ($i = $this->displayRangeStart; $i <= $this->displayRangeEnd; $i++) {
156
-            $pages[] = array('number' => $i, 'isCurrent' => $i === $this->currentPage);
156
+            $pages[] = array ('number' => $i, 'isCurrent' => $i === $this->currentPage);
157 157
         }
158
-        $pagination = array(
158
+        $pagination = array (
159 159
             'pages'             => $pages,
160 160
             'current'           => $this->currentPage,
161 161
             'numberOfPages'     => $this->numberOfPages,
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
 /*
30 30
  * Class PaginateController
31 31
  */
32
-class PaginateController extends AbstractWidgetController
33
-{
32
+class PaginateController extends AbstractWidgetController {
34 33
     /**
35 34
      * @var array
36 35
      */
@@ -76,8 +75,7 @@  discard block
 block discarded – undo
76 75
     /**
77 76
      * @return void
78 77
      */
79
-    public function initializeAction()
80
-    {
78
+    public function initializeAction() {
81 79
         $this->objects = $this->widgetConfiguration['objects'];
82 80
         ArrayUtility::mergeRecursiveWithOverrule($this->configuration, $this->widgetConfiguration['configuration'], false);
83 81
         $itemsPerPage               = (int) $this->configuration['itemsPerPage'];
@@ -89,8 +87,7 @@  discard block
 block discarded – undo
89 87
      * @param int $currentPage
90 88
      * @return void
91 89
      */
92
-    public function indexAction($currentPage = 1)
93
-    {
90
+    public function indexAction($currentPage = 1) {
94 91
         // set current page
95 92
         if(!empty($this->widgetConfiguration['currentPage'])) {
96 93
             $currentPage = $this->widgetConfiguration['currentPage'];
@@ -123,8 +120,7 @@  discard block
 block discarded – undo
123 120
      *
124 121
      * @return void
125 122
      */
126
-    protected function calculateDisplayRange()
127
-    {
123
+    protected function calculateDisplayRange() {
128 124
         $maximumNumberOfLinks = $this->maximumNumberOfLinks;
129 125
         if ($maximumNumberOfLinks > $this->numberOfPages) {
130 126
             $maximumNumberOfLinks = $this->numberOfPages;
@@ -148,8 +144,7 @@  discard block
 block discarded – undo
148 144
      *
149 145
      * @return array
150 146
      */
151
-    protected function buildPagination()
152
-    {
147
+    protected function buildPagination() {
153 148
         $this->calculateDisplayRange();
154 149
         $pages = array();
155 150
         for ($i = $this->displayRangeStart; $i <= $this->displayRangeEnd; $i++) {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
      */
37 37
     protected $configuration = array(
38 38
         'itemsPerPage'         => 10,
39
-        'insertAbove'          => false,
40
-        'insertBelow'          => true,
39
+        'insertAbove'          => FALSE,
40
+        'insertBelow'          => TRUE,
41 41
         'maximumNumberOfLinks' => 99,
42 42
         'addQueryStringMethod' => '',
43 43
         'section'              => '',
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
     /**
67 67
      * @var int
68 68
      */
69
-    protected $displayRangeStart = null;
69
+    protected $displayRangeStart = NULL;
70 70
 
71 71
     /**
72 72
      * @var int
73 73
      */
74
-    protected $displayRangeEnd = null;
74
+    protected $displayRangeEnd = NULL;
75 75
 
76 76
     /**
77 77
      * @return void
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     public function initializeAction()
80 80
     {
81 81
         $this->objects = $this->widgetConfiguration['objects'];
82
-        ArrayUtility::mergeRecursiveWithOverrule($this->configuration, $this->widgetConfiguration['configuration'], false);
82
+        ArrayUtility::mergeRecursiveWithOverrule($this->configuration, $this->widgetConfiguration['configuration'], FALSE);
83 83
         $itemsPerPage               = (int) $this->configuration['itemsPerPage'];
84 84
         $this->numberOfPages        = $itemsPerPage > 0 ? ceil($this->widgetConfiguration['total'] / $itemsPerPage) : 0;
85 85
         $this->maximumNumberOfLinks = (int) $this->configuration['maximumNumberOfLinks'];
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         }
102 102
         if ($this->currentPage > $this->numberOfPages) {
103 103
             // set $modifiedObjects to NULL if the page does not exist
104
-            $modifiedObjects = null;
104
+            $modifiedObjects = NULL;
105 105
         } else {
106 106
             // modify query
107 107
             $itemsPerPage = (int) $this->configuration['itemsPerPage'];
Please login to merge, or discard this patch.
Classes/Domain/Repository/DocumentTransferLogRepository.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 /**
18 18
  * The repository for DocumentTransferLogs
19 19
  */
20
-class DocumentTransferLogRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
21
-{
20
+class DocumentTransferLogRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
22 21
 
23 22
 }
Please login to merge, or discard this patch.
Classes/Domain/Repository/InputOptionListRepository.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 /**
18 18
  * The repository for InputOptionLists
19 19
  */
20
-class InputOptionListRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
21
-{
20
+class InputOptionListRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
22 21
 
23 22
 }
Please login to merge, or discard this patch.
Classes/Domain/Repository/ClientRepository.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,16 +17,14 @@
 block discarded – undo
17 17
 /**
18 18
  * The repository for Clients
19 19
  */
20
-class ClientRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
21
-{
20
+class ClientRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
22 21
 
23 22
     /**
24 23
      * findAllByPid
25 24
      *
26 25
      * @return
27 26
      */
28
-    public function findAllByPid($pid)
29
-    {
27
+    public function findAllByPid($pid) {
30 28
         $query = $this->createQuery();
31 29
         $query->getQuerySettings()->setRespectStoragePage(false);
32 30
         $query->matching($query->equals('pid', $pid));
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function findAllByPid($pid)
29 29
     {
30 30
         $query = $this->createQuery();
31
-        $query->getQuerySettings()->setRespectStoragePage(false);
31
+        $query->getQuerySettings()->setRespectStoragePage(FALSE);
32 32
         $query->matching($query->equals('pid', $pid));
33 33
         return $query->execute();
34 34
     }
Please login to merge, or discard this patch.
Classes/Domain/Repository/FileRepository.php 2 patches
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             $query->logicalAnd(
29 29
                 $query->equals("document", $document),
30 30
                 $query->logicalNot($query->equals("status", \EWW\Dpf\Domain\Model\File::STATUS_DELETED)),
31
-                $query->logicalNot($query->equals("primary_file", true))
31
+                $query->logicalNot($query->equals("primary_file", TRUE))
32 32
             ));
33 33
 
34 34
         return $query->execute();
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $query->matching(
42 42
             $query->logicalAnd(
43 43
                 $query->equals("document", $document),
44
-                $query->equals("primary_file", true),
44
+                $query->equals("primary_file", TRUE),
45 45
                 $query->logicalNot($query->equals("status", \EWW\Dpf\Domain\Model\File::STATUS_DELETED))
46 46
             ));
47 47
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             return $file->current();
52 52
         }
53 53
 
54
-        return null;
54
+        return NULL;
55 55
 
56 56
     }
57 57
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,11 +17,9 @@  discard block
 block discarded – undo
17 17
 /**
18 18
  * The repository for Files
19 19
  */
20
-class FileRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
21
-{
20
+class FileRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
22 21
 
23
-    public function getSecondaryFilesByDocument(\EWW\Dpf\Domain\Model\Document $document)
24
-    {
22
+    public function getSecondaryFilesByDocument(\EWW\Dpf\Domain\Model\Document $document) {
25 23
 
26 24
         $query = $this->createQuery();
27 25
         $query->matching(
@@ -34,8 +32,7 @@  discard block
 block discarded – undo
34 32
         return $query->execute();
35 33
     }
36 34
 
37
-    public function getPrimaryFileByDocument(\EWW\Dpf\Domain\Model\Document $document)
38
-    {
35
+    public function getPrimaryFileByDocument(\EWW\Dpf\Domain\Model\Document $document) {
39 36
 
40 37
         $query = $this->createQuery();
41 38
         $query->matching(
Please login to merge, or discard this patch.
Classes/Domain/Repository/ProcessNumberRepository.php 3 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,12 +33,12 @@  discard block
 block discarded – undo
33 33
      * @var string ownerId
34 34
      * @return array The found ProcessNumber Object
35 35
      */
36
-    public function getHighestProcessNumberByOwnerIdAndYear($ownerId,$year)
36
+    public function getHighestProcessNumberByOwnerIdAndYear($ownerId, $year)
37 37
     {
38 38
 
39 39
         $query = $this->createQuery();
40 40
 
41
-        $constraints = array();
41
+        $constraints = array ();
42 42
         $constraints[] = $query->equals('owner_id', $ownerId, false);
43 43
 
44 44
         $constraints[] = $query->equals('year', $year);
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             $query->matching($query->logicalAnd($constraints));
48 48
         }
49 49
 
50
-        $query->setOrderings(array("counter" => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING));
50
+        $query->setOrderings(array ("counter" => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING));
51 51
 
52 52
         $result = $query->execute();
53 53
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $query = $this->createQuery();
40 40
 
41 41
         $constraints = array();
42
-        $constraints[] = $query->equals('owner_id', $ownerId, false);
42
+        $constraints[] = $query->equals('owner_id', $ownerId, FALSE);
43 43
 
44 44
         $constraints[] = $query->equals('year', $year);
45 45
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@  discard block
 block discarded – undo
22 22
 /**
23 23
  * The repository for ProcessNumbers
24 24
  */
25
-class ProcessNumberRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
26
-{
25
+class ProcessNumberRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
27 26
 
28 27
     public function initializeObject() {
29 28
         $querySettings = $this->objectManager->get(Typo3QuerySettings::class);
@@ -38,8 +37,7 @@  discard block
 block discarded – undo
38 37
      * @var string ownerId
39 38
      * @return array The found ProcessNumber Object
40 39
      */
41
-    public function getHighestProcessNumberByOwnerIdAndYear($ownerId,$year)
42
-    {
40
+    public function getHighestProcessNumberByOwnerIdAndYear($ownerId,$year) {
43 41
 
44 42
         $query = $this->createQuery();
45 43
 
@@ -68,8 +66,7 @@  discard block
 block discarded – undo
68 66
      *
69 67
      * @return Connection
70 68
      */
71
-    protected function getConnection()
72
-    {
69
+    protected function getConnection() {
73 70
         return GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable(
74 71
             "tx_dpf_domain_model_processnumber"
75 72
         );
Please login to merge, or discard this patch.
Classes/Domain/Model/DocumentForm.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
247 247
 
248 248
     public function getNewFileNames()
249 249
     {
250
-        $fileNames = array();
250
+        $fileNames = array ();
251 251
         foreach ($this->getNewFiles() as $file) {
252 252
             $fileNames[] = $file->getTitle();
253 253
         }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
      *
88 88
      * @var boolean
89 89
      */
90
-    protected $valid = false;
90
+    protected $valid = FALSE;
91 91
 
92 92
     /**
93 93
      *
Please login to merge, or discard this patch.
Braces   +29 added lines, -58 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
  * The TYPO3 project - inspiring people to share!
21 21
  */
22 22
 
23
-class DocumentForm extends AbstractFormElement
24
-{
23
+class DocumentForm extends AbstractFormElement {
25 24
 
26 25
     /**
27 26
      * @var string CSRF token for this form
@@ -103,8 +102,7 @@  discard block
 block discarded – undo
103 102
      *
104 103
      * @param string $csrfToken
105 104
      */
106
-    public function generateCsrfToken()
107
-    {
105
+    public function generateCsrfToken() {
108 106
         $formProtection = FormProtectionFactory::get();
109 107
         $this->csrfToken = $formProtection->generateToken('DocumentForm', 'construct', 'DocumentForm');
110 108
         $formProtection->persistSessionToken();
@@ -119,10 +117,8 @@  discard block
 block discarded – undo
119 117
      * @throws Exception if the given string is empty.
120 118
      * @throws TypeError if the given string is null
121 119
      */
122
-    public function setCsrfToken(string $csrfToken)
123
-    {
124
-        if ($csrfToken === "")
125
-        {
120
+    public function setCsrfToken(string $csrfToken) {
121
+        if ($csrfToken === "") {
126 122
             throw new Exception("A forms CSRF token cannot be empty");
127 123
         }
128 124
         $this->csrfToken = $csrfToken;
@@ -134,8 +130,7 @@  discard block
 block discarded – undo
134 130
      *
135 131
      * @return string CSRF token for this form
136 132
      */
137
-    public function getCsrfToken()
138
-    {
133
+    public function getCsrfToken() {
139 134
         return $this->csrfToken;
140 135
     }
141 136
 
@@ -145,8 +140,7 @@  discard block
 block discarded – undo
145 140
      *
146 141
      * @return bool True, is CSRF token is considered valid. False if the token is invalid or missing.
147 142
      */
148
-    public function hasValidCsrfToken()
149
-    {
143
+    public function hasValidCsrfToken() {
150 144
         $formProtection = FormProtectionFactory::get();
151 145
         return $formProtection->validateToken($this->csrfToken, 'DocumentForm', 'construct', 'DocumentForm');
152 146
     }
@@ -155,8 +149,7 @@  discard block
 block discarded – undo
155 149
      *
156 150
      * @return integer
157 151
      */
158
-    public function getDocumentUid()
159
-    {
152
+    public function getDocumentUid() {
160 153
         return $this->documentUid;
161 154
     }
162 155
 
@@ -164,8 +157,7 @@  discard block
 block discarded – undo
164 157
      *
165 158
      * @param integer $documentUid
166 159
      */
167
-    public function setDocumentUid($documentUid)
168
-    {
160
+    public function setDocumentUid($documentUid) {
169 161
         $this->documentUid = $documentUid;
170 162
     }
171 163
 
@@ -173,8 +165,7 @@  discard block
 block discarded – undo
173 165
      *
174 166
      * @return boolean
175 167
      */
176
-    public function getPrimaryFileMandatory()
177
-    {
168
+    public function getPrimaryFileMandatory() {
178 169
         return $this->primaryFileMandatory;
179 170
     }
180 171
 
@@ -182,8 +173,7 @@  discard block
 block discarded – undo
182 173
      *
183 174
      * @param boolean $primaryFileMandatory
184 175
      */
185
-    public function setPrimaryFileMandatory($primaryFileMandatory)
186
-    {
176
+    public function setPrimaryFileMandatory($primaryFileMandatory) {
187 177
         $this->primaryFileMandatory = boolval($primaryFileMandatory);
188 178
     }
189 179
 
@@ -191,8 +181,7 @@  discard block
 block discarded – undo
191 181
      *
192 182
      * @return string
193 183
      */
194
-    public function getFedoraPid()
195
-    {
184
+    public function getFedoraPid() {
196 185
         return $this->fedoraPid;
197 186
     }
198 187
 
@@ -200,8 +189,7 @@  discard block
 block discarded – undo
200 189
      *
201 190
      * @param string $fedoraPid
202 191
      */
203
-    public function setFedoraPid($fedoraPid)
204
-    {
192
+    public function setFedoraPid($fedoraPid) {
205 193
         $this->fedoraPid = $fedoraPid;
206 194
     }
207 195
 
@@ -209,8 +197,7 @@  discard block
 block discarded – undo
209 197
      *
210 198
      * @param type \EWW\Dpf\Domain\Model\File $primaryFile
211 199
      */
212
-    public function setPrimaryFile($primaryFile)
213
-    {
200
+    public function setPrimaryFile($primaryFile) {
214 201
         $this->primaryFile = $primaryFile;
215 202
     }
216 203
 
@@ -218,59 +205,49 @@  discard block
 block discarded – undo
218 205
      *
219 206
      * @return \EWW\Dpf\Domain\Model\File
220 207
      */
221
-    public function getPrimaryFile()
222
-    {
208
+    public function getPrimaryFile() {
223 209
         return $this->primaryFile;
224 210
     }
225 211
 
226
-    public function setSecondaryFiles($secondaryFiles)
227
-    {
212
+    public function setSecondaryFiles($secondaryFiles) {
228 213
         $this->secondaryFiles = $secondaryFiles;
229 214
     }
230 215
 
231
-    public function getSecondaryFiles()
232
-    {
216
+    public function getSecondaryFiles() {
233 217
         return $this->secondaryFiles;
234 218
     }
235 219
 
236
-    public function getDeletedFiles()
237
-    {
220
+    public function getDeletedFiles() {
238 221
         return $this->deletedFiles;
239 222
     }
240 223
 
241
-    public function setDeletedFiles($deletedFiles)
242
-    {
224
+    public function setDeletedFiles($deletedFiles) {
243 225
         $this->deletedFiles = $deletedFiles;
244 226
     }
245 227
 
246
-    public function getNewFiles()
247
-    {
228
+    public function getNewFiles() {
248 229
         return $this->newFiles;
249 230
     }
250 231
 
251
-    public function setNewFiles($newFiles)
252
-    {
232
+    public function setNewFiles($newFiles) {
253 233
         $this->newFiles = $newFiles;
254 234
     }
255 235
 
256 236
     /**
257 237
      * @return bool
258 238
      */
259
-    public function getValid()
260
-    {
239
+    public function getValid() {
261 240
         return $this->valid;
262 241
     }
263 242
 
264 243
     /**
265 244
      * @param bool $valid
266 245
      */
267
-    public function setValid($valid)
268
-    {
246
+    public function setValid($valid) {
269 247
         $this->valid = boolval($valid);
270 248
     }
271 249
 
272
-    public function getNewFileNames()
273
-    {
250
+    public function getNewFileNames() {
274 251
         $fileNames = array();
275 252
         foreach ($this->getNewFiles() as $file) {
276 253
             $fileNames[] = $file->getTitle();
@@ -283,8 +260,7 @@  discard block
 block discarded – undo
283 260
      *
284 261
      * @return string
285 262
      */
286
-    public function getProcessNumber()
287
-    {
263
+    public function getProcessNumber() {
288 264
         return $this->processNumber;
289 265
     }
290 266
 
@@ -293,8 +269,7 @@  discard block
 block discarded – undo
293 269
      *
294 270
      * @param string $processNumber
295 271
      */
296
-    public function setProcessNumber($processNumber)
297
-    {
272
+    public function setProcessNumber($processNumber) {
298 273
         $this->processNumber = $processNumber;
299 274
     }
300 275
 
@@ -303,8 +278,7 @@  discard block
 block discarded – undo
303 278
      *
304 279
      * @return bool
305 280
      */
306
-    public function isTemporary()
307
-    {
281
+    public function isTemporary() {
308 282
         return $this->temporary;
309 283
     }
310 284
 
@@ -312,24 +286,21 @@  discard block
 block discarded – undo
312 286
      * Sets if a document is a temporary document or not.
313 287
      * @param bool $temporary
314 288
      */
315
-    public function setTemporary($temporary)
316
-    {
289
+    public function setTemporary($temporary) {
317 290
         $this->temporary = boolval($temporary);
318 291
     }
319 292
 
320 293
     /**
321 294
      * @return string
322 295
      */
323
-    public function getComment()
324
-    {
296
+    public function getComment() {
325 297
         return $this->comment;
326 298
     }
327 299
 
328 300
     /**
329 301
      * @param string $comment
330 302
      */
331
-    public function setComment($comment)
332
-    {
303
+    public function setComment($comment) {
333 304
         $this->comment = $comment;
334 305
     }
335 306
 }
Please login to merge, or discard this patch.
Classes/Domain/Model/DocumentFormPage.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class DocumentFormPage extends AbstractFormElement
18
-{
17
+class DocumentFormPage extends AbstractFormElement {
19 18
 
20 19
 }
Please login to merge, or discard this patch.