@@ -197,9 +197,9 @@ discard block |
||
197 | 197 | |
198 | 198 | $urnNodes = $xpath->query(self::rootNode . $primaryUrnXpath); |
199 | 199 | if ($urnNodes->length > 0) { |
200 | - return true; |
|
200 | + return TRUE; |
|
201 | 201 | } else { |
202 | - return false; |
|
202 | + return FALSE; |
|
203 | 203 | } |
204 | 204 | } |
205 | 205 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | if ($urnNodes->length > 0) { |
213 | 213 | return $urnNodes->item(0)->nodeValue; |
214 | 214 | } else { |
215 | - return false; |
|
215 | + return FALSE; |
|
216 | 216 | } |
217 | 217 | } |
218 | 218 | |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | |
422 | 422 | $parserGenerator = new ParserGenerator($this->clientPid); |
423 | 423 | $parserGenerator->setXml($this->xml->saveXML()); |
424 | - $parserGenerator->customXPath($notesXpath,true, $noteContent); |
|
424 | + $parserGenerator->customXPath($notesXpath,TRUE, $noteContent); |
|
425 | 425 | $this->xml = new \DOMDocument(); |
426 | 426 | $this->xml->loadXML($parserGenerator->getXMLData()); |
427 | 427 | } |
@@ -532,7 +532,7 @@ discard block |
||
532 | 532 | { |
533 | 533 | $validationXpath = $this->clientConfigurationManager->getValidationXpath(); |
534 | 534 | $validation = $this->getValue($validationXpath); |
535 | - return (strtolower($validation) === 'true')? true : false; |
|
535 | + return (strtolower($validation) === 'true')? TRUE : FALSE; |
|
536 | 536 | } |
537 | 537 | |
538 | 538 | /** |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | } elseif(!empty($value)) { |
581 | 581 | $parserGenerator = new ParserGenerator($this->clientPid); |
582 | 582 | $parserGenerator->setXml($this->xml->saveXML()); |
583 | - $parserGenerator->customXPath($xpathString,true, $value); |
|
583 | + $parserGenerator->customXPath($xpathString,TRUE, $value); |
|
584 | 584 | $this->xml = new \DOMDocument(); |
585 | 585 | $this->xml->loadXML($parserGenerator->getXMLData()); |
586 | 586 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * @var \EWW\Dpf\Domain\Repository\MetadataGroupRepository |
45 | 45 | * @TYPO3\CMS\Extbase\Annotation\Inject |
46 | 46 | */ |
47 | - protected $metadataGroupRepository = null; |
|
47 | + protected $metadataGroupRepository = NULL; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * metadataObjectRepository |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @var \EWW\Dpf\Domain\Repository\MetadataObjectRepository |
53 | 53 | * @TYPO3\CMS\Extbase\Annotation\Inject |
54 | 54 | */ |
55 | - protected $metadataObjectRepository = null; |
|
55 | + protected $metadataObjectRepository = NULL; |
|
56 | 56 | |
57 | 57 | /** |
58 | 58 | * documentTypeRepository |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * @var \EWW\Dpf\Domain\Repository\DocumentTypeRepository |
61 | 61 | * @TYPO3\CMS\Extbase\Annotation\Inject |
62 | 62 | */ |
63 | - protected $documentTypeRepository = null; |
|
63 | + protected $documentTypeRepository = NULL; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * documentRepository |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * @var \EWW\Dpf\Domain\Repository\DocumentRepository |
69 | 69 | * @TYPO3\CMS\Extbase\Annotation\Inject |
70 | 70 | */ |
71 | - protected $documentRepository = null; |
|
71 | + protected $documentRepository = NULL; |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * fileRepository |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @var \EWW\Dpf\Domain\Repository\FileRepository |
77 | 77 | * @TYPO3\CMS\Extbase\Annotation\Inject |
78 | 78 | */ |
79 | - protected $fileRepository = null; |
|
79 | + protected $fileRepository = NULL; |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * depositLicenseRepository |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @var \EWW\Dpf\Domain\Repository\DepositLicenseRepository |
85 | 85 | * @TYPO3\CMS\Extbase\Annotation\Inject |
86 | 86 | */ |
87 | - protected $depositLicenseRepository = null; |
|
87 | + protected $depositLicenseRepository = NULL; |
|
88 | 88 | |
89 | 89 | /** |
90 | 90 | * clientPid |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | /** |
97 | 97 | * @var bool |
98 | 98 | */ |
99 | - protected $customClientPid = false; |
|
99 | + protected $customClientPid = FALSE; |
|
100 | 100 | |
101 | 101 | /** |
102 | 102 | * Get typoscript settings |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * @param bool $generateEmptyFields |
119 | 119 | * @return \EWW\Dpf\Domain\Model\DocumentForm |
120 | 120 | */ |
121 | - public function getDocumentForm(Document $document, $generateEmptyFields = true) |
|
121 | + public function getDocumentForm(Document $document, $generateEmptyFields = TRUE) |
|
122 | 122 | { |
123 | 123 | $documentForm = new \EWW\Dpf\Domain\Model\DocumentForm(); |
124 | 124 | $documentForm->generateCsrfToken(); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | ( |
133 | 133 | $this->getSettings()['deactivatePrimaryFileMandatoryCheck'] || |
134 | 134 | $document->getDocumentType()->getVirtualType() |
135 | - )? false : true |
|
135 | + )? FALSE : TRUE |
|
136 | 136 | ) |
137 | 137 | ); |
138 | 138 | |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | // build mapping path, previous fixed attributes which are differ from |
196 | 196 | // the own fixed attributes are excluded |
197 | 197 | $queryGroupMapping = $metadataGroup->getAbsoluteMapping(); |
198 | - if (strpos($queryGroupMapping, "@displayLabel") === false && is_array($excludeGroupAttributes[$groupMappingName])) { |
|
198 | + if (strpos($queryGroupMapping, "@displayLabel") === FALSE && is_array($excludeGroupAttributes[$groupMappingName])) { |
|
199 | 199 | foreach ($excludeGroupAttributes[$groupMappingName] as $excludeAttr => $excludeAttrValue) { |
200 | 200 | if (!in_array($excludeAttr, $fixedGroupAttributes)) { |
201 | 201 | $queryGroupMapping .= $excludeAttrValue; |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | |
254 | 254 | // ensure that e.g. <mods:detail> and <mods:detail type="volume"> |
255 | 255 | // are not recognized as the same node |
256 | - if ((strpos($value, "@") === false) && ($value != '.')) { |
|
256 | + if ((strpos($value, "@") === FALSE) && ($value != '.')) { |
|
257 | 257 | $objectMappingPath[$key] .= "[not(@*)]"; |
258 | 258 | } |
259 | 259 | } |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | } |
311 | 311 | } else { |
312 | 312 | |
313 | - $documentFormGroup->setEmptyGroup(true); |
|
313 | + $documentFormGroup->setEmptyGroup(TRUE); |
|
314 | 314 | |
315 | 315 | foreach ($metadataGroup->getMetadataObject() as $metadataObject) { |
316 | 316 | $documentFormField = new \EWW\Dpf\Domain\Model\DocumentFormField(); |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | |
363 | 363 | if ($documentForm->getDocumentUid()) { |
364 | 364 | if ($this->isCustomClientPid()) { |
365 | - $this->documentRepository->crossClient(true); |
|
365 | + $this->documentRepository->crossClient(TRUE); |
|
366 | 366 | } |
367 | 367 | $document = $this->documentRepository->findByUid($documentForm->getDocumentUid()); |
368 | 368 | $tempInternalFormat = new \EWW\Dpf\Helper\InternalFormat($document->getXmlData(), $this->clientPid); |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | */ |
529 | 529 | public function setClientPid(int $clientPid): void |
530 | 530 | { |
531 | - $this->customClientPid = true; |
|
531 | + $this->customClientPid = TRUE; |
|
532 | 532 | $this->clientPid = $clientPid; |
533 | 533 | } |
534 | 534 |
@@ -105,10 +105,10 @@ |
||
105 | 105 | $bookmark->setDocumentIdentifier($identifier); |
106 | 106 | $bookmark->setFeUserUid($feUserUid); |
107 | 107 | $this->add($bookmark); |
108 | - return true; |
|
108 | + return TRUE; |
|
109 | 109 | } |
110 | 110 | |
111 | - return false; |
|
111 | + return FALSE; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | /** |
@@ -28,13 +28,13 @@ |
||
28 | 28 | public function crossClientFindAll($returnRawQueryResult = TRUE) { |
29 | 29 | /** @var $querySettings \TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings */ |
30 | 30 | $querySettings = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings'); |
31 | - $querySettings->setRespectStoragePage(false); |
|
31 | + $querySettings->setRespectStoragePage(FALSE); |
|
32 | 32 | $this->setDefaultQuerySettings($querySettings); |
33 | 33 | $query = $this->createQuery(); |
34 | 34 | return $query->execute($returnRawQueryResult); |
35 | 35 | } |
36 | 36 | |
37 | - public function crossClient($active = false) |
|
37 | + public function crossClient($active = FALSE) |
|
38 | 38 | { |
39 | 39 | /** @var $querySettings \TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings */ |
40 | 40 | $querySettings = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings'); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | /** @var $querySettings \TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings */ |
17 | 17 | $querySettings = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings'); |
18 | - $querySettings->setRespectStoragePage(false); |
|
18 | + $querySettings->setRespectStoragePage(FALSE); |
|
19 | 19 | $this->setDefaultQuerySettings($querySettings); |
20 | 20 | $query = $this->createQuery(); |
21 | 21 |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * @param int|null $clientPid |
62 | 62 | * @throws ElasticSearchMissingIndexNameException |
63 | 63 | */ |
64 | - public function __construct($clientPid = null) |
|
64 | + public function __construct($clientPid = NULL) |
|
65 | 65 | { |
66 | 66 | $objectManager = GeneralUtility::makeInstance(ObjectManager::class); |
67 | 67 | |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | ], |
153 | 153 | 'mappings' => [ |
154 | 154 | '_source' => [ |
155 | - 'enabled' => true |
|
155 | + 'enabled' => TRUE |
|
156 | 156 | ], |
157 | 157 | //'dynamic' => 'strict', |
158 | 158 | 'properties' => [ |
@@ -215,11 +215,11 @@ discard block |
||
215 | 215 | ], |
216 | 216 | 'fobId' => [ |
217 | 217 | //'type' => 'keyword' |
218 | - 'enabled' => false |
|
218 | + 'enabled' => FALSE |
|
219 | 219 | ], |
220 | 220 | 'index' => [ |
221 | 221 | //'type' => 'integer' |
222 | - 'enabled' => false |
|
222 | + 'enabled' => FALSE |
|
223 | 223 | ] |
224 | 224 | ] |
225 | 225 | ], |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | if ($document->getCreator()) { |
282 | 282 | $data->creator = $document->getCreator(); |
283 | 283 | } else { |
284 | - $data->creator = null; |
|
284 | + $data->creator = NULL; |
|
285 | 285 | } |
286 | 286 | |
287 | 287 | if ($document->getCreator()) { |
@@ -315,9 +315,9 @@ discard block |
||
315 | 315 | |
316 | 316 | $files = $document->getFile(); |
317 | 317 | if ($files->count() > 0) { |
318 | - $data->hasFiles = true; |
|
318 | + $data->hasFiles = TRUE; |
|
319 | 319 | } else { |
320 | - $data->hasFiles = false; |
|
320 | + $data->hasFiles = FALSE; |
|
321 | 321 | } |
322 | 322 | |
323 | 323 | $internalFormat = new \EWW\Dpf\Helper\InternalFormat($document->getXmlData(), $this->clientPid); |
@@ -353,11 +353,11 @@ discard block |
||
353 | 353 | |
354 | 354 | $data->source = $document->getSourceDetails(); |
355 | 355 | |
356 | - $data->universityCollection = false; |
|
356 | + $data->universityCollection = FALSE; |
|
357 | 357 | if ($data->collections && is_array($data->collections)) { |
358 | 358 | foreach ($data->collections as $collection) { |
359 | 359 | if ($collection == $this->clientConfigurationManager->getUniversityCollection()) { |
360 | - $data->universityCollection = true; |
|
360 | + $data->universityCollection = TRUE; |
|
361 | 361 | break; |
362 | 362 | } |
363 | 363 | } |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | if ($embargoDate instanceof \DateTime) { |
368 | 368 | $data->embargoDate = $embargoDate->format("Y-m-d"); |
369 | 369 | } else { |
370 | - $data->embargoDate = null; |
|
370 | + $data->embargoDate = NULL; |
|
371 | 371 | } |
372 | 372 | |
373 | 373 | $data->originalSourceTitle = $internalFormat->getOriginalSourceTitle(); |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | * @param array $query search query |
435 | 435 | * @return array result list |
436 | 436 | */ |
437 | - public function search($query, $type = null) |
|
437 | + public function search($query, $type = NULL) |
|
438 | 438 | { |
439 | 439 | try { |
440 | 440 | // define type and index |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * @var \EWW\Dpf\Domain\Repository\DocumentTypeRepository |
35 | 35 | * @TYPO3\CMS\Extbase\Annotation\Inject |
36 | 36 | */ |
37 | - protected $documentTypeRepository = null; |
|
37 | + protected $documentTypeRepository = NULL; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * security |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @var \EWW\Dpf\Security\Security |
43 | 43 | * @TYPO3\CMS\Extbase\Annotation\Inject |
44 | 44 | */ |
45 | - protected $security = null; |
|
45 | + protected $security = NULL; |
|
46 | 46 | |
47 | 47 | /** |
48 | 48 | * Builds the document list query. |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function buildQuery( |
63 | 63 | $itemsPerPage, $workspaceFilter, $from = 0, $bookmarkIdentifiers = [], $filters = [], |
64 | - $excludeFilters = [], $sortField = null, $sortOrder = null, $queryString = null |
|
64 | + $excludeFilters = [], $sortField = NULL, $sortOrder = NULL, $queryString = NULL |
|
65 | 65 | ) |
66 | 66 | { |
67 | 67 | |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | |
239 | 239 | foreach ($filters as $key => $filterValues) { |
240 | 240 | $queryFilterPart = []; |
241 | - if (in_array($key, $validKeys, true)) { |
|
241 | + if (in_array($key, $validKeys, TRUE)) { |
|
242 | 242 | if ($key == 'universityCollection') { |
243 | 243 | if ($filterValues && is_array($filterValues)) { |
244 | 244 | if (in_array("true", $filterValues)) { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | case Security::ROLE_LIBRARIAN: |
41 | 41 | $query->matching( |
42 | - $query->equals('suggestion', true) |
|
42 | + $query->equals('suggestion', TRUE) |
|
43 | 43 | ); |
44 | 44 | break; |
45 | 45 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $query->matching( |
48 | 48 | $query->logicalAnd( |
49 | 49 | array( |
50 | - $query->equals('suggestion', true), |
|
50 | + $query->equals('suggestion', TRUE), |
|
51 | 51 | $query->equals('creator', $creatorUid) |
52 | 52 | ) |
53 | 53 | ) |
@@ -61,21 +61,21 @@ discard block |
||
61 | 61 | * @param boolean $temporary |
62 | 62 | * @return array |
63 | 63 | */ |
64 | - public function getObjectIdentifiers($temporary = false) |
|
64 | + public function getObjectIdentifiers($temporary = FALSE) |
|
65 | 65 | { |
66 | 66 | $query = $this->createQuery(); |
67 | 67 | |
68 | 68 | $constraints = array( |
69 | 69 | $query->logicalNot($query->equals('object_identifier', '')), |
70 | - $query->logicalNot($query->equals('object_identifier', null)) |
|
70 | + $query->logicalNot($query->equals('object_identifier', NULL)) |
|
71 | 71 | ); |
72 | 72 | |
73 | 73 | if (count($constraints)) { |
74 | 74 | $constraints[] = $query->logicalAnd( |
75 | 75 | $query->logicalNot( |
76 | 76 | $query->logicalOr( |
77 | - $query->equals('temporary', true), |
|
78 | - $query->equals('suggestion', true) |
|
77 | + $query->equals('temporary', TRUE), |
|
78 | + $query->equals('suggestion', TRUE) |
|
79 | 79 | ) |
80 | 80 | ) |
81 | 81 | ); |
@@ -102,16 +102,16 @@ discard block |
||
102 | 102 | public function findDocumentsWithoutProcessNumber() |
103 | 103 | { |
104 | 104 | $query = $this->createQuery(); |
105 | - $query->getQuerySettings()->setRespectStoragePage(false); |
|
105 | + $query->getQuerySettings()->setRespectStoragePage(FALSE); |
|
106 | 106 | |
107 | 107 | $constraints = array(); |
108 | 108 | $constraints[] = $query->equals('process_number', ''); |
109 | - $constraints[] = $query->equals('process_number', null); |
|
109 | + $constraints[] = $query->equals('process_number', NULL); |
|
110 | 110 | |
111 | 111 | if (count($constraints)) { |
112 | 112 | $query->matching( |
113 | 113 | $query->logicalAnd( |
114 | - $query->equals('temporary', false), |
|
114 | + $query->equals('temporary', FALSE), |
|
115 | 115 | $query->logicalOr($constraints) |
116 | 116 | ) |
117 | 117 | ); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | |
139 | 139 | $query->matching( |
140 | 140 | $query->logicalAnd( |
141 | - $query->equals('temporary', true), |
|
141 | + $query->equals('temporary', TRUE), |
|
142 | 142 | $query->logicalOr($constraints) |
143 | 143 | ) |
144 | 144 | ); |
@@ -183,8 +183,8 @@ discard block |
||
183 | 183 | |
184 | 184 | $constraints = array( |
185 | 185 | $query->equals('object_identifier', $objectIdentifier), |
186 | - $query->logicalNot($query->equals('temporary', true)), |
|
187 | - $query->logicalNot($query->equals('suggestion', true)) |
|
186 | + $query->logicalNot($query->equals('temporary', TRUE)), |
|
187 | + $query->logicalNot($query->equals('suggestion', TRUE)) |
|
188 | 188 | ); |
189 | 189 | |
190 | 190 | $query->matching($query->logicalAnd($constraints)); |
@@ -208,18 +208,18 @@ discard block |
||
208 | 208 | $constraints = [ |
209 | 209 | $query->logicalAnd( |
210 | 210 | $query->equals('object_identifier', $identifier), |
211 | - $query->equals('suggestion', false) |
|
211 | + $query->equals('suggestion', FALSE) |
|
212 | 212 | ) |
213 | 213 | ]; |
214 | 214 | } elseif (Identifier::isProcessNumber($identifier)) { |
215 | 215 | $constraints = [ |
216 | 216 | $query->logicalAnd( |
217 | 217 | $query->equals('process_number', $identifier), |
218 | - $query->equals('suggestion', false) |
|
218 | + $query->equals('suggestion', FALSE) |
|
219 | 219 | ) |
220 | 220 | ]; |
221 | 221 | } else { |
222 | - return null; |
|
222 | + return NULL; |
|
223 | 223 | } |
224 | 224 | |
225 | 225 | $query->setOrderings(array("tstamp" => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING)); |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | * @param bool $includeSuggestion |
235 | 235 | * @return Document |
236 | 236 | */ |
237 | - public function findWorkingCopy($identifier, $includeTemporary = false, $includeSuggestion = false) |
|
237 | + public function findWorkingCopy($identifier, $includeTemporary = FALSE, $includeSuggestion = FALSE) |
|
238 | 238 | { |
239 | 239 | $query = $this->createQuery(); |
240 | 240 | |
@@ -269,8 +269,8 @@ discard block |
||
269 | 269 | if (trim($document->getObjectIdentifier()) && !$document->isTemporary() && !$document->isSuggestion()) { |
270 | 270 | $query = $this->createQuery(); |
271 | 271 | $constraints[] = $query->equals('object_identifier', trim($document->getObjectIdentifier())); |
272 | - $constraints[] = $query->equals('temporary', false); |
|
273 | - $constraints[] = $query->equals('suggestion', false); |
|
272 | + $constraints[] = $query->equals('temporary', FALSE); |
|
273 | + $constraints[] = $query->equals('suggestion', FALSE); |
|
274 | 274 | $query->matching($query->logicalAnd($constraints)); |
275 | 275 | |
276 | 276 | /** @var Document $workingCopy */ |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | { |
305 | 305 | /** @var $querySettings \TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings */ |
306 | 306 | $querySettings = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettings'); |
307 | - $querySettings->setRespectStoragePage(false); |
|
307 | + $querySettings->setRespectStoragePage(FALSE); |
|
308 | 308 | $this->setDefaultQuerySettings($querySettings); |
309 | 309 | $query = $this->createQuery(); |
310 | 310 | $query->matching( |
@@ -332,19 +332,19 @@ discard block |
||
332 | 332 | $constraints[] = |
333 | 333 | $query->logicalAnd( |
334 | 334 | $query->like('uid', $identifier), |
335 | - $query->equals('suggestion', false) |
|
335 | + $query->equals('suggestion', FALSE) |
|
336 | 336 | ); |
337 | 337 | |
338 | 338 | $constraints[] = |
339 | 339 | $query->logicalAnd( |
340 | 340 | $query->like('object_identifier', $identifier), |
341 | - $query->equals('suggestion', false) |
|
341 | + $query->equals('suggestion', FALSE) |
|
342 | 342 | ); |
343 | 343 | |
344 | 344 | $constraints[] = |
345 | 345 | $query->logicalAnd( |
346 | 346 | $query->like('process_number', $identifier), |
347 | - $query->equals('suggestion', false) |
|
347 | + $query->equals('suggestion', FALSE) |
|
348 | 348 | ); |
349 | 349 | |
350 | 350 | $query->setOrderings(array("tstamp" => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING)); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * @var \EWW\Dpf\Domain\Repository\DocumentRepository |
41 | 41 | * @TYPO3\CMS\Extbase\Annotation\Inject |
42 | 42 | */ |
43 | - protected $documentRepository = null; |
|
43 | + protected $documentRepository = NULL; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * fileRepository |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * @var \EWW\Dpf\Domain\Repository\FileRepository |
49 | 49 | * @TYPO3\CMS\Extbase\Annotation\Inject |
50 | 50 | */ |
51 | - protected $fileRepository = null; |
|
51 | + protected $fileRepository = NULL; |
|
52 | 52 | |
53 | 53 | /** |
54 | 54 | * documentTypeRepository |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * @var \EWW\Dpf\Domain\Repository\DocumentTypeRepository |
57 | 57 | * @TYPO3\CMS\Extbase\Annotation\Inject |
58 | 58 | */ |
59 | - protected $documentTypeRepository = null; |
|
59 | + protected $documentTypeRepository = NULL; |
|
60 | 60 | |
61 | 61 | /** |
62 | 62 | * bookmarkRepository |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * @var \EWW\Dpf\Domain\Repository\BookmarkRepository |
65 | 65 | * @TYPO3\CMS\Extbase\Annotation\Inject |
66 | 66 | */ |
67 | - protected $bookmarkRepository = null; |
|
67 | + protected $bookmarkRepository = NULL; |
|
68 | 68 | |
69 | 69 | /** |
70 | 70 | * frontendUserRepository |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * @var \EWW\Dpf\Domain\Repository\FrontendUserRepository |
73 | 73 | * @TYPO3\CMS\Extbase\Annotation\Inject |
74 | 74 | */ |
75 | - protected $frontendUserRepository = null; |
|
75 | + protected $frontendUserRepository = NULL; |
|
76 | 76 | |
77 | 77 | /** |
78 | 78 | * clientRepository |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * @var \EWW\Dpf\Domain\Repository\ClientRepository |
81 | 81 | * @TYPO3\CMS\Extbase\Annotation\Inject |
82 | 82 | */ |
83 | - protected $clientRepository = null; |
|
83 | + protected $clientRepository = NULL; |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Backend Template Container |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | |
122 | 122 | if ($identifier) { |
123 | 123 | |
124 | - $this->documentRepository->crossClient(true); |
|
124 | + $this->documentRepository->crossClient(TRUE); |
|
125 | 125 | |
126 | 126 | $documents = $this->documentRepository->searchForIdentifier($identifier); |
127 | 127 | |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** @var Client $currentClient */ |
161 | 161 | $currentClient = $this->clientRepository->findAllByPid($document->getPid())->current(); |
162 | 162 | |
163 | - $allClients = $this->clientRepository->crossClientFindAll(false); |
|
163 | + $allClients = $this->clientRepository->crossClientFindAll(FALSE); |
|
164 | 164 | |
165 | 165 | $documentTypes = []; |
166 | 166 | $clients = []; |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | foreach ($allClients as $client) { |
170 | 170 | if ($client->getUid() != $currentClient->getUid()) { |
171 | 171 | $clients[] = $client; |
172 | - $this->documentTypeRepository->crossClient(true); |
|
172 | + $this->documentTypeRepository->crossClient(TRUE); |
|
173 | 173 | $documentTypes[$client->getPid()] = $this->documentTypeRepository->findByPid($client->getPid()); |
174 | 174 | } |
175 | 175 | } |
@@ -191,8 +191,8 @@ discard block |
||
191 | 191 | |
192 | 192 | $this->forward( |
193 | 193 | 'searchDocument', |
194 | - null, |
|
195 | - null, |
|
194 | + NULL, |
|
195 | + NULL, |
|
196 | 196 | [ |
197 | 197 | 'identifier' => $identifier |
198 | 198 | ] |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * @param string $identifier |
208 | 208 | * @param DocumentType $documentType |
209 | 209 | */ |
210 | - public function changeClientAction(Document $document, Client $client, string $identifier, DocumentType $documentType = null) |
|
210 | + public function changeClientAction(Document $document, Client $client, string $identifier, DocumentType $documentType = NULL) |
|
211 | 211 | { |
212 | 212 | if ($documentType instanceof DocumentType) { |
213 | 213 | if ($document->isClientChangeable()) { |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | |
249 | 249 | // If there are bookmarks, they have to be adjusted, depending on the existence of the related user |
250 | 250 | // inside the target client, and either deleted or moved to the target client. |
251 | - $this->bookmarkRepository->crossClient(true); |
|
251 | + $this->bookmarkRepository->crossClient(TRUE); |
|
252 | 252 | $bookmarks = $this->bookmarkRepository->findDocumentBookmarks($document); |
253 | 253 | /** @var Bookmark $bookmark */ |
254 | 254 | foreach ($bookmarks as $bookmark) { |
@@ -296,8 +296,8 @@ discard block |
||
296 | 296 | |
297 | 297 | $this->forward( |
298 | 298 | 'chooseNewClient', |
299 | - null, |
|
300 | - null, |
|
299 | + NULL, |
|
300 | + NULL, |
|
301 | 301 | [ |
302 | 302 | 'document' => $document, |
303 | 303 | 'identifier' => $identifier |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | int $severity = AbstractMessage::INFO, |
323 | 323 | array $headerArguments, |
324 | 324 | array $bodyArguments, |
325 | - bool $storeInSession = false |
|
325 | + bool $storeInSession = FALSE |
|
326 | 326 | ) |
327 | 327 | { |
328 | 328 | $messageHeader = LocalizationUtility::translate( |