@@ -86,28 +86,28 @@ |
||
| 86 | 86 | ), |
| 87 | 87 | ) |
| 88 | 88 | ), |
| 89 | - 'fis_pers_id' => array( |
|
| 89 | + 'fis_pers_id' => array ( |
|
| 90 | 90 | 'exclude' => 0, |
| 91 | 91 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feuser.fis_pers_id', |
| 92 | - 'config' => array( |
|
| 92 | + 'config' => array ( |
|
| 93 | 93 | 'type' => 'input', |
| 94 | 94 | 'size' => '30', |
| 95 | 95 | 'eval' => 'trim', |
| 96 | 96 | ), |
| 97 | 97 | ), |
| 98 | - 'orga_name' => array( |
|
| 98 | + 'orga_name' => array ( |
|
| 99 | 99 | 'exclude' => 0, |
| 100 | 100 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feuser.orga_name', |
| 101 | - 'config' => array( |
|
| 101 | + 'config' => array ( |
|
| 102 | 102 | 'type' => 'input', |
| 103 | 103 | 'size' => '30', |
| 104 | 104 | 'eval' => 'trim', |
| 105 | 105 | ), |
| 106 | 106 | ), |
| 107 | - 'api_token' => array( |
|
| 107 | + 'api_token' => array ( |
|
| 108 | 108 | 'exclude' => 0, |
| 109 | 109 | 'label' => 'LLL:EXT:dpf/Resources/Private/Language/locallang_db.xlf:tx_dpf_domain_model_feuser.api_token', |
| 110 | - 'config' => array( |
|
| 110 | + 'config' => array ( |
|
| 111 | 111 | 'type' => 'input', |
| 112 | 112 | 'size' => '30', |
| 113 | 113 | 'eval' => 'trim', |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * |
| 44 | 44 | * @var array |
| 45 | 45 | */ |
| 46 | - protected $settings = array(); |
|
| 46 | + protected $settings = array (); |
|
| 47 | 47 | |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * |
| 59 | 59 | * @var array |
| 60 | 60 | */ |
| 61 | - protected $extensionConfiguration = array(); |
|
| 61 | + protected $extensionConfiguration = array (); |
|
| 62 | 62 | |
| 63 | 63 | public function __construct() |
| 64 | 64 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $clientRepository = $objectManager->get(ClientRepository::class); |
| 67 | 67 | |
| 68 | 68 | if (TYPO3_MODE === 'BE') { |
| 69 | - $selectedPageId = (int)\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id'); |
|
| 69 | + $selectedPageId = (int) \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id'); |
|
| 70 | 70 | if ($selectedPageId) { |
| 71 | 71 | $this->client = $clientRepository->findAll()->current(); |
| 72 | 72 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class); |
| 42 | 42 | $clientConfigurationManager = $objectManager->get(ClientConfigurationManager::class); |
| 43 | 43 | |
| 44 | - $namespaceConfiguration = explode(";",$clientConfigurationManager->getNamespaces()); |
|
| 44 | + $namespaceConfiguration = explode(";", $clientConfigurationManager->getNamespaces()); |
|
| 45 | 45 | |
| 46 | 46 | $xpath = new \DOMXPath($dom); |
| 47 | 47 | |
@@ -135,8 +135,8 @@ discard block |
||
| 135 | 135 | |
| 136 | 136 | $identifierNode = $xpath->query('mods:nameIdentifier[@type="FOBID"]', $personNode); |
| 137 | 137 | |
| 138 | - $affiliationNodes = $xpath->query('mods:affiliation', $personNode); |
|
| 139 | - $affiliationIdentifierNodes = $xpath->query( |
|
| 138 | + $affiliationNodes = $xpath->query('mods:affiliation', $personNode); |
|
| 139 | + $affiliationIdentifierNodes = $xpath->query( |
|
| 140 | 140 | 'mods:nameIdentifier[@type="ScopusAuthorID"][@typeURI="http://www.scopus.com/authid"]', |
| 141 | 141 | $personNode |
| 142 | 142 | ); |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | |
| 283 | 283 | public function getOriginalSourceTitle() |
| 284 | 284 | { |
| 285 | - $node= $this->getModsXpath()->query('/mods:mods/mods:relatedItem[@type="original"]/mods:titleInfo/mods:title'); |
|
| 285 | + $node = $this->getModsXpath()->query('/mods:mods/mods:relatedItem[@type="original"]/mods:titleInfo/mods:title'); |
|
| 286 | 286 | if ($node->length > 0) { |
| 287 | 287 | return $node->item(0)->nodeValue; |
| 288 | 288 | } |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | public function setRepositoryState($state) |
| 87 | 87 | { |
| 88 | 88 | $stateXpath = $this->clientConfigurationManager->getStateXpath(); |
| 89 | - $this->setValue($stateXpath,$state); |
|
| 89 | + $this->setValue($stateXpath, $state); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | public function getProcessNumber() |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | $xpath = $this->getXpath(); |
| 315 | 315 | $data = []; |
| 316 | 316 | $sourceDetailsXpaths = $this->clientConfigurationManager->getSourceDetailsXpaths(); |
| 317 | - $sourceDetailsXpathList = explode(";", trim($sourceDetailsXpaths," ;")); |
|
| 317 | + $sourceDetailsXpathList = explode(";", trim($sourceDetailsXpaths, " ;")); |
|
| 318 | 318 | $dataNodes = []; |
| 319 | 319 | |
| 320 | 320 | foreach ($sourceDetailsXpathList as $sourceDetailsXpathItem) { |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | { |
| 348 | 348 | $xpath = $this->getXpath(); |
| 349 | 349 | $personXpath = $this->clientConfigurationManager->getPersonXpath(); |
| 350 | - $fisIdentifierXpath = $this->clientConfigurationManager->getPersonFisIdentifierXpath(); |
|
| 350 | + $fisIdentifierXpath = $this->clientConfigurationManager->getPersonFisIdentifierXpath(); |
|
| 351 | 351 | $personNodes = $xpath->query(self::rootNode . $personXpath); |
| 352 | 352 | $identifiers = []; |
| 353 | 353 | foreach ($personNodes as $key => $node) { |
@@ -379,9 +379,9 @@ discard block |
||
| 379 | 379 | $xpath = $this->getXpath(); |
| 380 | 380 | $notesNodes = $xpath->query(self::rootNode . $notesXpath); |
| 381 | 381 | |
| 382 | - $notes = array(); |
|
| 382 | + $notes = array (); |
|
| 383 | 383 | |
| 384 | - for ($i=0; $i < $notesNodes->length; $i++) |
|
| 384 | + for ($i = 0; $i < $notesNodes->length; $i++) |
|
| 385 | 385 | { |
| 386 | 386 | $notes[] = $notesNodes->item($i)->nodeValue; |
| 387 | 387 | } |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | |
| 396 | 396 | $parserGenerator = new ParserGenerator(); |
| 397 | 397 | $parserGenerator->setXml($this->xml->saveXML()); |
| 398 | - $parserGenerator->customXPath($notesXpath,true, $noteContent); |
|
| 398 | + $parserGenerator->customXPath($notesXpath, true, $noteContent); |
|
| 399 | 399 | $this->xml = new \DOMDocument(); |
| 400 | 400 | $this->xml->loadXML($parserGenerator->getXMLData()); |
| 401 | 401 | } |
@@ -422,9 +422,9 @@ discard block |
||
| 422 | 422 | $familyXpath = $this->clientConfigurationManager->getPersonFamilyXpath(); |
| 423 | 423 | $givenXpath = $this->clientConfigurationManager->getPersonGivenXpath(); |
| 424 | 424 | $roleXpath = $this->clientConfigurationManager->getPersonRoleXpath(); |
| 425 | - $fisIdentifierXpath = $this->clientConfigurationManager->getPersonFisIdentifierXpath(); |
|
| 426 | - $affiliationXpath = $this->clientConfigurationManager->getPersonAffiliationXpath(); |
|
| 427 | - $affiliationIdentifierXpath = $this->clientConfigurationManager->getPersonAffiliationIdentifierXpath(); |
|
| 425 | + $fisIdentifierXpath = $this->clientConfigurationManager->getPersonFisIdentifierXpath(); |
|
| 426 | + $affiliationXpath = $this->clientConfigurationManager->getPersonAffiliationXpath(); |
|
| 427 | + $affiliationIdentifierXpath = $this->clientConfigurationManager->getPersonAffiliationIdentifierXpath(); |
|
| 428 | 428 | |
| 429 | 429 | $xpath = $this->getXpath(); |
| 430 | 430 | $personNodes = $xpath->query(self::rootNode . $personXpath); |
@@ -504,9 +504,9 @@ discard block |
||
| 504 | 504 | */ |
| 505 | 505 | public function getValidation() |
| 506 | 506 | { |
| 507 | - $validationXpath = $this->clientConfigurationManager->getValidationXpath(); |
|
| 507 | + $validationXpath = $this->clientConfigurationManager->getValidationXpath(); |
|
| 508 | 508 | $validation = $this->getValue($validationXpath); |
| 509 | - return (strtolower($validation) === 'true')? true : false; |
|
| 509 | + return (strtolower($validation) === 'true') ? true : false; |
|
| 510 | 510 | } |
| 511 | 511 | |
| 512 | 512 | /** |
@@ -514,8 +514,8 @@ discard block |
||
| 514 | 514 | */ |
| 515 | 515 | public function setValidation($validated) |
| 516 | 516 | { |
| 517 | - $validationXpath = $this->clientConfigurationManager->getValidationXpath(); |
|
| 518 | - $this->setValue($validationXpath, ($validated? 'true' : 'false')); |
|
| 517 | + $validationXpath = $this->clientConfigurationManager->getValidationXpath(); |
|
| 518 | + $this->setValue($validationXpath, ($validated ? 'true' : 'false')); |
|
| 519 | 519 | } |
| 520 | 520 | |
| 521 | 521 | /** |
@@ -523,7 +523,7 @@ discard block |
||
| 523 | 523 | */ |
| 524 | 524 | public function setFisId($fisId) |
| 525 | 525 | { |
| 526 | - $fisIdXpath = $this->clientConfigurationManager->getFisIdXpath(); |
|
| 526 | + $fisIdXpath = $this->clientConfigurationManager->getFisIdXpath(); |
|
| 527 | 527 | $this->setValue($fisIdXpath, $fisId); |
| 528 | 528 | } |
| 529 | 529 | |
@@ -548,10 +548,10 @@ discard block |
||
| 548 | 548 | $nodes = $xpath->query(self::rootNode . $xpathString); |
| 549 | 549 | if ($nodes->length > 0) { |
| 550 | 550 | $nodes->item(0)->nodeValue = $value; |
| 551 | - } elseif(!empty($value)) { |
|
| 551 | + } elseif (!empty($value)) { |
|
| 552 | 552 | $parserGenerator = new ParserGenerator(); |
| 553 | 553 | $parserGenerator->setXml($this->xml->saveXML()); |
| 554 | - $parserGenerator->customXPath($xpathString,true, $value); |
|
| 554 | + $parserGenerator->customXPath($xpathString, true, $value); |
|
| 555 | 555 | $this->xml = new \DOMDocument(); |
| 556 | 556 | $this->xml->loadXML($parserGenerator->getXMLData()); |
| 557 | 557 | } |
@@ -44,13 +44,13 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * @var array |
| 46 | 46 | */ |
| 47 | - protected $formData = array(); |
|
| 47 | + protected $formData = array (); |
|
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * files from form |
| 51 | 51 | * @var array |
| 52 | 52 | */ |
| 53 | - protected $files = array(); |
|
| 53 | + protected $files = array (); |
|
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * metsData |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | $this->documentTypeRepository = $objectManager->get(DocumentTypeRepository::class); |
| 107 | 107 | |
| 108 | - $namespaceConfiguration = explode(";",$this->clientConfigurationManager->getNamespaces()); |
|
| 108 | + $namespaceConfiguration = explode(";", $this->clientConfigurationManager->getNamespaces()); |
|
| 109 | 109 | |
| 110 | 110 | |
| 111 | 111 | foreach ($namespaceConfiguration as $key => $value) { |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | |
| 116 | 116 | $this->xmlHeader = '<data' . $this->namespaceString . '></data>'; |
| 117 | 117 | |
| 118 | - $this->xmlData = new \DOMDocument(); |
|
| 118 | + $this->xmlData = new \DOMDocument(); |
|
| 119 | 119 | $this->xmlData->loadXML($this->xmlHeader); |
| 120 | 120 | |
| 121 | 121 | // Parser |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | $values = $group['values']; |
| 207 | 207 | $attributes = $group['attributes']; |
| 208 | 208 | |
| 209 | - $attributeXPath = ''; |
|
| 209 | + $attributeXPath = ''; |
|
| 210 | 210 | foreach ($attributes as $attribute) { |
| 211 | 211 | $attributeXPath .= '[' . $attribute['mapping'] . '="' . $attribute['value'] . '"]'; |
| 212 | 212 | } |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | $nestedXml = $this->parseXPath($nested); |
| 315 | 315 | |
| 316 | 316 | // object xpath without nested element [] |
| 317 | - $newPath[1] = str_replace('['.$match[2].']', '', $newPath[1]); |
|
| 317 | + $newPath[1] = str_replace('[' . $match[2] . ']', '', $newPath[1]); |
|
| 318 | 318 | |
| 319 | 319 | $xml = $this->parseXPath($newPath[1]); |
| 320 | 320 | |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | $nestedXml = $this->parseXPathWrapped($nested); |
| 374 | 374 | |
| 375 | 375 | // object xpath without nested element [] |
| 376 | - $newPath[1] = str_replace('['.$match[2].']', '', $newPath[1]); |
|
| 376 | + $newPath[1] = str_replace('[' . $match[2] . ']', '', $newPath[1]); |
|
| 377 | 377 | |
| 378 | 378 | $xml2 = $this->parseXPathWrapped($path . $newPath[1]); |
| 379 | 379 | } |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $query = [ |
| 139 | 139 | 'bool' => [ |
| 140 | 140 | 'must' => [ |
| 141 | - 'match_all' => (object)[] |
|
| 141 | + 'match_all' => (object) [] |
|
| 142 | 142 | ], |
| 143 | 143 | 'filter' => $queryFilter |
| 144 | 144 | ] |
@@ -180,11 +180,11 @@ discard block |
||
| 180 | 180 | 'script' => [ |
| 181 | 181 | 'lang' => 'painless', |
| 182 | 182 | 'source' => |
| 183 | - "for (int i = 0; i < doc['collections'].length; ++i) {". |
|
| 184 | - " if(doc['collections'][i] =='".$this->getSettings()['universityCollection']."') {". |
|
| 185 | - " return 'true';". |
|
| 186 | - " }". |
|
| 187 | - "}". |
|
| 183 | + "for (int i = 0; i < doc['collections'].length; ++i) {" . |
|
| 184 | + " if(doc['collections'][i] =='" . $this->getSettings()['universityCollection'] . "') {" . |
|
| 185 | + " return 'true';" . |
|
| 186 | + " }" . |
|
| 187 | + "}" . |
|
| 188 | 188 | "return 'false';" |
| 189 | 189 | ] |
| 190 | 190 | ] |
@@ -200,23 +200,23 @@ discard block |
||
| 200 | 200 | 'script' => [ |
| 201 | 201 | 'lang' => 'painless', |
| 202 | 202 | 'source' => |
| 203 | - "if (". |
|
| 204 | - " doc['creator'].size() > 0 &&". |
|
| 205 | - " doc['creator'].value == '".$this->security->getUser()->getUid()."') {". |
|
| 206 | - " return 'self';". |
|
| 207 | - "}". |
|
| 208 | - "if (". |
|
| 209 | - " doc['creatorRole'].size() > 0 &&". |
|
| 210 | - " doc['creatorRole'].value == '".Security::ROLE_LIBRARIAN."'". |
|
| 211 | - ") {". |
|
| 212 | - " return 'librarian';". |
|
| 213 | - "}". |
|
| 214 | - "if (". |
|
| 215 | - " doc['creatorRole'].size() > 0 &&". |
|
| 216 | - " doc['creatorRole'].value == '".Security::ROLE_RESEARCHER."'". |
|
| 217 | - ") {". |
|
| 218 | - " return 'user';". |
|
| 219 | - "}". |
|
| 203 | + "if (" . |
|
| 204 | + " doc['creator'].size() > 0 &&" . |
|
| 205 | + " doc['creator'].value == '" . $this->security->getUser()->getUid() . "') {" . |
|
| 206 | + " return 'self';" . |
|
| 207 | + "}" . |
|
| 208 | + "if (" . |
|
| 209 | + " doc['creatorRole'].size() > 0 &&" . |
|
| 210 | + " doc['creatorRole'].value == '" . Security::ROLE_LIBRARIAN . "'" . |
|
| 211 | + ") {" . |
|
| 212 | + " return 'librarian';" . |
|
| 213 | + "}" . |
|
| 214 | + "if (" . |
|
| 215 | + " doc['creatorRole'].size() > 0 &&" . |
|
| 216 | + " doc['creatorRole'].value == '" . Security::ROLE_RESEARCHER . "'" . |
|
| 217 | + ") {" . |
|
| 218 | + " return 'user';" . |
|
| 219 | + "}" . |
|
| 220 | 220 | "return 'unknown';" |
| 221 | 221 | ] |
| 222 | 222 | ] |
@@ -429,8 +429,8 @@ discard block |
||
| 429 | 429 | */ |
| 430 | 430 | protected function buildSortQueryPart($sortField, $sortOrder) { |
| 431 | 431 | |
| 432 | - $sortField = ($sortField)? $sortField : 'title'; |
|
| 433 | - $sortOrder = ($sortOrder)? $sortOrder : 'asc'; |
|
| 432 | + $sortField = ($sortField) ? $sortField : 'title'; |
|
| 433 | + $sortOrder = ($sortOrder) ? $sortOrder : 'asc'; |
|
| 434 | 434 | |
| 435 | 435 | // Build the sorting part. |
| 436 | 436 | $script = ""; |
@@ -460,11 +460,11 @@ discard block |
||
| 460 | 460 | ]; |
| 461 | 461 | } else { |
| 462 | 462 | if ($sortField == 'title') { |
| 463 | - $sortField.= ".keyword"; |
|
| 463 | + $sortField .= ".keyword"; |
|
| 464 | 464 | } |
| 465 | 465 | |
| 466 | 466 | if ($sortField == 'personsSort') { |
| 467 | - $sortField.= ".keyword"; |
|
| 467 | + $sortField .= ".keyword"; |
|
| 468 | 468 | } |
| 469 | 469 | |
| 470 | 470 | $sort = [ |
@@ -481,7 +481,7 @@ discard block |
||
| 481 | 481 | protected function getSortScriptUniversityCollection($collection) |
| 482 | 482 | { |
| 483 | 483 | $script = "for (int i = 0; i < doc['collections'].length; ++i) {"; |
| 484 | - $script .= " if (doc['collections'][i] == '".$collection."') {"; |
|
| 484 | + $script .= " if (doc['collections'][i] == '" . $collection . "') {"; |
|
| 485 | 485 | $script .= " return '1';"; |
| 486 | 486 | $script .= " }"; |
| 487 | 487 | $script .= "}"; |
@@ -502,13 +502,13 @@ discard block |
||
| 502 | 502 | |
| 503 | 503 | protected function getSortScriptCreatorRole($feUserUid) |
| 504 | 504 | { |
| 505 | - $script = "if (doc['creator'].value == '".$feUserUid."') {"; |
|
| 505 | + $script = "if (doc['creator'].value == '" . $feUserUid . "') {"; |
|
| 506 | 506 | $script .= " return '1';"; |
| 507 | 507 | $script .= "}"; |
| 508 | - $script .= "if (doc['creatorRole'].value == '".Security::ROLE_LIBRARIAN."') {"; |
|
| 508 | + $script .= "if (doc['creatorRole'].value == '" . Security::ROLE_LIBRARIAN . "') {"; |
|
| 509 | 509 | $script .= "return '2';"; |
| 510 | 510 | $script .= "}"; |
| 511 | - $script .= "if (doc['creatorRole'].value == '".Security::ROLE_RESEARCHER."') {"; |
|
| 511 | + $script .= "if (doc['creatorRole'].value == '" . Security::ROLE_RESEARCHER . "') {"; |
|
| 512 | 512 | $script .= " return '3';"; |
| 513 | 513 | $script .= "}"; |
| 514 | 514 | $script .= "return '4';"; |
@@ -523,15 +523,15 @@ discard block |
||
| 523 | 523 | foreach (DocumentWorkflow::PLACES as $state) { |
| 524 | 524 | if (array_key_exists($state, DocumentWorkflow::STATE_TO_ALIASSTATE_MAPPING)) { |
| 525 | 525 | $aliasState = DocumentWorkflow::STATE_TO_ALIASSTATE_MAPPING[$state]; |
| 526 | - $key = 'LLL:EXT:dpf/Resources/Private/Language/locallang.xlf:manager.documentList.state.'.$aliasState; |
|
| 526 | + $key = 'LLL:EXT:dpf/Resources/Private/Language/locallang.xlf:manager.documentList.state.' . $aliasState; |
|
| 527 | 527 | $stateName = LocalizationUtility::translate($key, 'dpf'); |
| 528 | - $sortStates[] = "if (doc['state'].value == '".$state."') return '".$stateName."';"; |
|
| 528 | + $sortStates[] = "if (doc['state'].value == '" . $state . "') return '" . $stateName . "';"; |
|
| 529 | 529 | } |
| 530 | 530 | } |
| 531 | 531 | |
| 532 | 532 | $sortStates = implode(" ", $sortStates); |
| 533 | 533 | |
| 534 | - return $sortStates." return '';"; |
|
| 534 | + return $sortStates . " return '';"; |
|
| 535 | 535 | } |
| 536 | 536 | |
| 537 | 537 | |
@@ -540,14 +540,14 @@ discard block |
||
| 540 | 540 | $sortDoctypes = []; |
| 541 | 541 | foreach ($this->documentTypeRepository->findAll() as $documentType) { |
| 542 | 542 | if ($documentType->getName() && $documentType->getDisplayname()) { |
| 543 | - $sortDoctypes[] = "if (doc['doctype'].value == '".$documentType->getName()."')" |
|
| 544 | - ." return '".$documentType->getDisplayname()."';"; |
|
| 543 | + $sortDoctypes[] = "if (doc['doctype'].value == '" . $documentType->getName() . "')" |
|
| 544 | + ." return '" . $documentType->getDisplayname() . "';"; |
|
| 545 | 545 | } |
| 546 | 546 | } |
| 547 | 547 | |
| 548 | 548 | $sortDoctypes = implode(" ", $sortDoctypes); |
| 549 | 549 | |
| 550 | - return $sortDoctypes." return '';"; |
|
| 550 | + return $sortDoctypes . " return '';"; |
|
| 551 | 551 | } |
| 552 | 552 | |
| 553 | 553 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | public function searchRequest($searchTerm) { |
| 26 | 26 | $mail = $this->clientConfigurationManager->getSetting("adminEmail"); |
| 27 | - $response = Request::get($this->apiUrl . '' . $searchTerm .'?email=' . $mail) |
|
| 27 | + $response = Request::get($this->apiUrl . '' . $searchTerm . '?email=' . $mail) |
|
| 28 | 28 | ->send(); |
| 29 | 29 | if ($response->body->HTTP_status_code == 404) { |
| 30 | 30 | return ['entries' => '']; |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | public function getDataRequest($id) { |
| 39 | 39 | $mail = $this->clientConfigurationManager->getSetting("adminEmail"); |
| 40 | - $response = Request::get($this->apiUrl . '' . $id .'?email=' . $mail) |
|
| 40 | + $response = Request::get($this->apiUrl . '' . $id . '?email=' . $mail) |
|
| 41 | 41 | ->send(); |
| 42 | 42 | |
| 43 | 43 | if ($response->body->HTTP_status_code == 404) { |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | protected function getPersonRequestBody($id) { |
| 48 | 48 | $graphQl = '{ |
| 49 | - person (id:"'.$id.'") |
|
| 49 | + person (id:"'.$id . '") |
|
| 50 | 50 | { |
| 51 | 51 | _createDate |
| 52 | 52 | _createUser |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | protected function getSearchPersonBody($searchTerm) { |
| 74 | 74 | $graphQl = '{ |
| 75 | - staff(filter: {fullName: "'.$searchTerm.'"}, pageSize: 100) |
|
| 75 | + staff(filter: {fullName: "'.$searchTerm . '"}, pageSize: 100) |
|
| 76 | 76 | { |
| 77 | 77 | entries |
| 78 | 78 | { |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | protected function getOrgaRequestBody($id) { |
| 99 | 99 | $graphQl = '{ |
| 100 | - organisationalUnit(id:'.$id.') { |
|
| 100 | + organisationalUnit(id:'.$id . ') { |
|
| 101 | 101 | titleDe |
| 102 | 102 | id |
| 103 | 103 | } |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | protected function getSearchOrgaBody($searchTerm) { |
| 110 | 110 | $graphQl = '{ |
| 111 | - organisationalUnits(filter: {text: "'.$searchTerm.'"}) |
|
| 111 | + organisationalUnits(filter: {text: "'.$searchTerm . '"}) |
|
| 112 | 112 | { |
| 113 | 113 | entries |
| 114 | 114 | { |