| Total Complexity | 102 |
| Total Lines | 686 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
Complex classes like InternalFormat often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use InternalFormat, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 26 | class InternalFormat |
||
| 27 | { |
||
| 28 | const rootNode = '//data/'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * clientConfigurationManager |
||
| 32 | * |
||
| 33 | * @var \EWW\Dpf\Configuration\ClientConfigurationManager |
||
| 34 | */ |
||
| 35 | protected $clientConfigurationManager; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * xml |
||
| 39 | * |
||
| 40 | * @var \DOMDocument |
||
| 41 | */ |
||
| 42 | protected $xml; |
||
| 43 | |||
| 44 | public function __construct($xml) |
||
| 50 | } |
||
| 51 | |||
| 52 | public function setXml($xml) |
||
| 53 | { |
||
| 54 | if (empty($xml)) { |
||
| 55 | $xml = "<data></data>"; |
||
| 56 | } |
||
| 57 | |||
| 58 | $dom = new \DOMDocument(); |
||
| 59 | $dom->loadXML($xml); |
||
| 60 | $this->xml = $dom; |
||
| 61 | } |
||
| 62 | |||
| 63 | public function getXml() |
||
| 64 | { |
||
| 65 | return $this->xml->saveXML(); |
||
| 66 | } |
||
| 67 | |||
| 68 | public function getDocument() { |
||
| 69 | return $this->xml; |
||
| 70 | } |
||
| 71 | |||
| 72 | public function getXpath() |
||
| 73 | { |
||
| 74 | return $domXPath = \EWW\Dpf\Helper\XPath::create($this->xml); |
||
|
|
|||
| 75 | } |
||
| 76 | |||
| 77 | public function getDocumentType() |
||
| 78 | { |
||
| 79 | $typeXpath = $this->clientConfigurationManager->getTypeXpath(); |
||
| 80 | return $this->getValue($typeXpath); |
||
| 81 | } |
||
| 82 | |||
| 83 | public function setDocumentType($type) |
||
| 84 | { |
||
| 85 | $typeXpath = $this->clientConfigurationManager->getTypeXpath(); |
||
| 86 | $this->setValue($typeXpath, $type); |
||
| 87 | } |
||
| 88 | |||
| 89 | public function getRepositoryState() |
||
| 90 | { |
||
| 91 | $stateXpath = $this->clientConfigurationManager->getStateXpath(); |
||
| 92 | return $this->getValue($stateXpath); |
||
| 93 | } |
||
| 94 | |||
| 95 | public function setRepositoryState($state) |
||
| 96 | { |
||
| 97 | $stateXpath = $this->clientConfigurationManager->getStateXpath(); |
||
| 98 | $this->setValue($stateXpath,$state); |
||
| 99 | } |
||
| 100 | |||
| 101 | public function getProcessNumber() |
||
| 102 | { |
||
| 103 | $processNumberXpath = $this->clientConfigurationManager->getProcessNumberXpath(); |
||
| 104 | if ($processNumberXpath) { |
||
| 105 | return $this->getValue($processNumberXpath); |
||
| 106 | } else { |
||
| 107 | return ""; |
||
| 108 | } |
||
| 109 | } |
||
| 110 | |||
| 111 | public function setProcessNumber($processNumber) |
||
| 112 | { |
||
| 113 | $processNumberXpath = $this->clientConfigurationManager->getProcessNumberXpath(); |
||
| 114 | $this->setValue($processNumberXpath, $processNumber); |
||
| 115 | } |
||
| 116 | |||
| 117 | public function getTitle() |
||
| 118 | { |
||
| 119 | $titleXpath = $this->clientConfigurationManager->getTitleXpath(); |
||
| 120 | $xpath = $this->getXpath(); |
||
| 121 | |||
| 122 | if (!$titleXpath) { |
||
| 123 | $titleXpath = "titleInfo/title"; |
||
| 124 | } |
||
| 125 | |||
| 126 | $stateList = $xpath->query(self::rootNode . $titleXpath); |
||
| 127 | return $stateList->item(0)->nodeValue; |
||
| 128 | } |
||
| 129 | |||
| 130 | /** |
||
| 131 | * @param string $title |
||
| 132 | */ |
||
| 133 | public function setTitle($title) |
||
| 134 | { |
||
| 135 | $titleXpath = $this->clientConfigurationManager->getTitleXpath(); |
||
| 136 | $this->setValue($titleXpath, $title); |
||
| 137 | } |
||
| 138 | |||
| 139 | public function getFiles() |
||
| 140 | { |
||
| 141 | $xpath = $this->getXpath(); |
||
| 142 | |||
| 143 | $fileXpath = $this->clientConfigurationManager->getFileXpath(); |
||
| 144 | $fileIdXpath = $this->clientConfigurationManager->getFileIdXpath(); |
||
| 145 | $fileMimetypeXpath = $this->clientConfigurationManager->getFileMimetypeXpath(); |
||
| 146 | $fileHrefXpath = $this->clientConfigurationManager->getFileHrefXpath(); |
||
| 147 | $fileDownloadXpath = $this->clientConfigurationManager->getFileDownloadXpath(); |
||
| 148 | $fileArchiveXpath = $this->clientConfigurationManager->getFileArchiveXpath(); |
||
| 149 | $fileDeletedXpath = $this->clientConfigurationManager->getFileDeletedXpath(); |
||
| 150 | $fileTitleXpath = $this->clientConfigurationManager->getFileTitleXpath(); |
||
| 151 | |||
| 152 | $fileNodes = $xpath->query(self::rootNode . $fileXpath); |
||
| 153 | $files = []; |
||
| 154 | |||
| 155 | foreach ($fileNodes as $file) { |
||
| 156 | $fileAttrArray = [ |
||
| 157 | 'id' => '', |
||
| 158 | 'mimetype' => '', |
||
| 159 | 'href' => '', |
||
| 160 | 'title' => '', |
||
| 161 | 'download' => false, |
||
| 162 | 'archive' => false, |
||
| 163 | 'deleted' => false |
||
| 164 | ]; |
||
| 165 | foreach ($file->childNodes as $fileAttributes) { |
||
| 166 | switch ($fileAttributes->tagName) { |
||
| 167 | case $fileIdXpath: |
||
| 168 | $fileAttrArray['id'] = $fileAttributes->nodeValue; |
||
| 169 | break; |
||
| 170 | |||
| 171 | case $fileMimetypeXpath: |
||
| 172 | $fileAttrArray['mimetype'] = $fileAttributes->nodeValue; |
||
| 173 | break; |
||
| 174 | |||
| 175 | case $fileHrefXpath: |
||
| 176 | $fileAttrArray['href'] = $fileAttributes->nodeValue; |
||
| 177 | break; |
||
| 178 | |||
| 179 | case $fileTitleXpath: |
||
| 180 | $fileAttrArray['title'] = $fileAttributes->nodeValue; |
||
| 181 | break; |
||
| 182 | |||
| 183 | case $fileDownloadXpath: |
||
| 184 | $fileAttrArray['download'] = !empty($fileAttributes->nodeValue); |
||
| 185 | break; |
||
| 186 | |||
| 187 | case $fileArchiveXpath: |
||
| 188 | $fileAttrArray['archive'] = !empty($fileAttributes->nodeValue); |
||
| 189 | break; |
||
| 190 | |||
| 191 | case $fileDeletedXpath: |
||
| 192 | $fileAttrArray['deleted'] = !empty($fileAttributes->nodeValue); |
||
| 193 | break; |
||
| 194 | } |
||
| 195 | } |
||
| 196 | $files[] = $fileAttrArray; |
||
| 197 | } |
||
| 198 | |||
| 199 | return $files; |
||
| 200 | |||
| 201 | } |
||
| 202 | |||
| 203 | public function setDateIssued($date) { |
||
| 204 | $dateXpath = $this->clientConfigurationManager->getDateXpath(); |
||
| 205 | $this->setValue($dateXpath, $date); |
||
| 206 | } |
||
| 207 | |||
| 208 | public function getDateIssued() { |
||
| 209 | $dateXpath = $this->clientConfigurationManager->getDateXpath(); |
||
| 210 | return $this->getValue($dateXpath); |
||
| 211 | } |
||
| 212 | |||
| 213 | public function removeDateIssued() |
||
| 214 | { |
||
| 215 | $xpath = $this->getXpath(); |
||
| 216 | $dateXpath = $this->clientConfigurationManager->getDateXpath(); |
||
| 217 | |||
| 218 | $dateNodes = $xpath->query(self::rootNode . $dateXpath); |
||
| 219 | if ($dateNodes->length > 0) { |
||
| 220 | $dateNodes->item(0)->parentNode->removeChild($dateNodes->item(0)); |
||
| 221 | } |
||
| 222 | |||
| 223 | } |
||
| 224 | |||
| 225 | public function hasPrimaryUrn() |
||
| 226 | { |
||
| 227 | $xpath = $this->getXpath(); |
||
| 228 | $primaryUrnXpath = $this->clientConfigurationManager->getPrimaryUrnXpath(); |
||
| 229 | |||
| 230 | $urnNodes = $xpath->query(self::rootNode . $primaryUrnXpath); |
||
| 231 | if ($urnNodes->length > 0) { |
||
| 232 | return true; |
||
| 233 | } else { |
||
| 234 | return false; |
||
| 235 | } |
||
| 236 | } |
||
| 237 | |||
| 238 | public function getPrimaryUrn() |
||
| 239 | { |
||
| 240 | $xpath = $this->getXpath(); |
||
| 241 | $primaryUrnXpath = $this->clientConfigurationManager->getPrimaryUrnXpath(); |
||
| 242 | |||
| 243 | $urnNodes = $xpath->query(self::rootNode . $primaryUrnXpath); |
||
| 244 | if ($urnNodes->length > 0) { |
||
| 245 | return $urnNodes->item(0)->nodeValue; |
||
| 246 | } else { |
||
| 247 | return false; |
||
| 248 | } |
||
| 249 | } |
||
| 250 | |||
| 251 | public function setPrimaryUrn($urn) |
||
| 252 | { |
||
| 253 | $primaryUrnXpath = $this->clientConfigurationManager->getPrimaryUrnXpath(); |
||
| 254 | $this->setValue($primaryUrnXpath, $urn); |
||
| 255 | } |
||
| 256 | |||
| 257 | public function clearAllUrn() |
||
| 258 | { |
||
| 259 | $xpath = $this->getXpath(); |
||
| 260 | $urnXpath = $this->clientConfigurationManager->getUrnXpath(); |
||
| 261 | $primaryUrnXpath = $this->clientConfigurationManager->getPrimaryUrnXpath(); |
||
| 262 | |||
| 263 | $urnNodes = $xpath->query(self::rootNode . $urnXpath); |
||
| 264 | foreach ($urnNodes as $urnNode) { |
||
| 265 | $urnNode->parentNode->removeChild($urnNode); |
||
| 266 | } |
||
| 267 | |||
| 268 | $primaryUrnNodes = $xpath->query(self::rootNode . $primaryUrnXpath); |
||
| 269 | foreach ($primaryUrnNodes as $primaryUrnNode) { |
||
| 270 | $primaryUrnNode->parentNode->removeChild($primaryUrnNode); |
||
| 271 | } |
||
| 272 | } |
||
| 273 | |||
| 274 | public function getSubmitterEmail() { |
||
| 275 | $xpath = $this->getXpath(); |
||
| 276 | $submitterXpath = $urnXpath = $this->clientConfigurationManager->getSubmitterEmailXpath(); |
||
| 277 | |||
| 278 | $dateNodes = $xpath->query(self::rootNode . $submitterXpath); |
||
| 279 | if (!$dateNodes) { |
||
| 280 | return ''; |
||
| 281 | } else { |
||
| 282 | return $dateNodes->item(0)->nodeValue; |
||
| 283 | } |
||
| 284 | |||
| 285 | } |
||
| 286 | |||
| 287 | public function getSubmitterName() { |
||
| 288 | $xpath = $this->getXpath(); |
||
| 289 | $submitterXpath = $urnXpath = $this->clientConfigurationManager->getSubmitterNameXpath(); |
||
| 290 | |||
| 291 | $dateNodes = $xpath->query(self::rootNode . $submitterXpath); |
||
| 292 | |||
| 293 | if (!$dateNodes) { |
||
| 294 | return ''; |
||
| 295 | } else { |
||
| 296 | return $dateNodes->item(0)->nodeValue; |
||
| 297 | } |
||
| 298 | } |
||
| 299 | |||
| 300 | public function getSubmitterNotice() { |
||
| 301 | $xpath = $this->getXpath(); |
||
| 302 | $submitterXpath = $urnXpath = $this->clientConfigurationManager->getSubmitterNoticeXpath(); |
||
| 303 | |||
| 304 | $dateNodes = $xpath->query(self::rootNode . $submitterXpath); |
||
| 305 | |||
| 306 | if (!$dateNodes) { |
||
| 307 | return ''; |
||
| 308 | } else { |
||
| 309 | return $dateNodes->item(0)->nodeValue; |
||
| 310 | } |
||
| 311 | } |
||
| 312 | |||
| 313 | public function getCreator() |
||
| 314 | { |
||
| 315 | $creatorXpath = $this->clientConfigurationManager->getCreatorXpath(); |
||
| 316 | return $this->getValue($creatorXpath); |
||
| 317 | } |
||
| 318 | |||
| 319 | public function setCreator($creator) |
||
| 320 | { |
||
| 321 | $creatorXpath = $this->clientConfigurationManager->getCreatorXpath(); |
||
| 322 | $this->setValue($creatorXpath, $creator); |
||
| 323 | } |
||
| 324 | |||
| 325 | public function getCreationDate() |
||
| 326 | { |
||
| 327 | $xpath = $this->clientConfigurationManager->getCreationDateXpath(); |
||
| 328 | return $this->getValue($xpath); |
||
| 329 | } |
||
| 330 | |||
| 331 | public function setCreationDate($creationDate) |
||
| 332 | { |
||
| 333 | $xpath = $this->clientConfigurationManager->getCreationDateXpath(); |
||
| 334 | $this->setValue($xpath, $creationDate); |
||
| 335 | } |
||
| 336 | |||
| 337 | public function getRepositoryCreationDate() |
||
| 338 | { |
||
| 339 | $xpath = $this->clientConfigurationManager->getRepositoryCreationDateXpath(); |
||
| 340 | return $this->getValue($xpath); |
||
| 341 | } |
||
| 342 | |||
| 343 | public function getRepositoryLastModDate() |
||
| 344 | { |
||
| 345 | $xpath = $this->clientConfigurationManager->getRepositoryLastModDateXpath(); |
||
| 346 | return $this->getValue($xpath); |
||
| 347 | } |
||
| 348 | |||
| 349 | public function getPublishingYear() |
||
| 350 | { |
||
| 351 | $publishingYearXpath = $this->clientConfigurationManager->getPublishingYearXpath(); |
||
| 352 | return $this->getValue($publishingYearXpath); |
||
| 353 | } |
||
| 354 | |||
| 355 | public function getOriginalSourceTitle() |
||
| 356 | { |
||
| 357 | $originalSourceTitleXpath = $this->clientConfigurationManager->getOriginalSourceTitleXpath(); |
||
| 358 | return $this->getValue($originalSourceTitleXpath); |
||
| 359 | } |
||
| 360 | |||
| 361 | /** |
||
| 362 | * @return string |
||
| 363 | */ |
||
| 364 | public function getSourceDetails() |
||
| 365 | { |
||
| 366 | $xpath = $this->getXpath(); |
||
| 367 | $data = []; |
||
| 368 | $sourceDetailsXpaths = $this->clientConfigurationManager->getSourceDetailsXpaths(); |
||
| 369 | $sourceDetailsXpathList = explode(";", trim($sourceDetailsXpaths," ;")); |
||
| 370 | $dataNodes = []; |
||
| 371 | |||
| 372 | foreach ($sourceDetailsXpathList as $sourceDetailsXpathItem) { |
||
| 373 | $dataNodes[] = $xpath->query(self::rootNode . trim($sourceDetailsXpathItem)); |
||
| 374 | } |
||
| 375 | |||
| 376 | foreach ($dataNodes as $dataNode) { |
||
| 377 | foreach ($dataNode as $node) { |
||
| 378 | if ($node->hasChildNodes()) { |
||
| 379 | foreach ($node->childNodes as $n) { |
||
| 380 | $data[] = preg_replace('/\s+/', ' ', $n->textContent); |
||
| 381 | } |
||
| 382 | } else { |
||
| 383 | $data[] = preg_replace('/\s+/', ' ', $node->textContent); |
||
| 384 | } |
||
| 385 | } |
||
| 386 | } |
||
| 387 | |||
| 388 | $output = trim(implode(' ', $data)); |
||
| 389 | $output = preg_replace('/\s+/ ', ' ', $output); |
||
| 390 | return $output; |
||
| 391 | } |
||
| 392 | |||
| 393 | /** |
||
| 394 | * Get all related FOB-IDs |
||
| 395 | * |
||
| 396 | * @return array |
||
| 397 | */ |
||
| 398 | public function getPersonFisIdentifiers(): array |
||
| 399 | { |
||
| 400 | $xpath = $this->getXpath(); |
||
| 401 | $personXpath = $this->clientConfigurationManager->getPersonXpath(); |
||
| 402 | $fisIdentifierXpath = $this->clientConfigurationManager->getPersonFisIdentifierXpath(); |
||
| 403 | $personNodes = $xpath->query(self::rootNode . $personXpath); |
||
| 404 | $identifiers = []; |
||
| 405 | foreach ($personNodes as $key => $node) { |
||
| 406 | $identifierNodes = $xpath->query($fisIdentifierXpath, $node); |
||
| 407 | if ($identifierNodes->length > 0) { |
||
| 408 | $identifiers[] = $identifierNodes->item(0)->nodeValue; |
||
| 409 | } |
||
| 410 | } |
||
| 411 | |||
| 412 | return $identifiers; |
||
| 413 | } |
||
| 414 | |||
| 415 | /** |
||
| 416 | * @return string |
||
| 417 | */ |
||
| 418 | public function getDepositLicense() |
||
| 419 | { |
||
| 420 | $depositLicenseXpath = $this->clientConfigurationManager->getDepositLicenseXpath(); |
||
| 421 | return $this->getValue($depositLicenseXpath); |
||
| 422 | } |
||
| 423 | |||
| 424 | /** |
||
| 425 | * @return array |
||
| 426 | */ |
||
| 427 | public function getNotes() |
||
| 428 | { |
||
| 429 | $notesXpath = $this->clientConfigurationManager->getAllNotesXpath(); |
||
| 430 | |||
| 431 | $xpath = $this->getXpath(); |
||
| 432 | $notesNodes = $xpath->query(self::rootNode . $notesXpath); |
||
| 433 | |||
| 434 | $notes = array(); |
||
| 435 | |||
| 436 | for ($i=0; $i < $notesNodes->length; $i++) |
||
| 437 | { |
||
| 438 | $notes[] = $notesNodes->item($i)->nodeValue; |
||
| 439 | } |
||
| 440 | |||
| 441 | return $notes; |
||
| 442 | } |
||
| 443 | |||
| 444 | public function addNote($noteContent) |
||
| 453 | } |
||
| 454 | |||
| 455 | public function getAuthors() |
||
| 458 | } |
||
| 459 | |||
| 460 | public function getPublishers() |
||
| 461 | { |
||
| 462 | return $this->getPersons($this->clientConfigurationManager->getPersonPublisherRole()); |
||
| 463 | } |
||
| 464 | |||
| 465 | /** |
||
| 466 | * Get persons of the given role |
||
| 467 | * |
||
| 468 | * @param string $role |
||
| 469 | * @return array |
||
| 470 | */ |
||
| 471 | public function getPersons($role = '') |
||
| 551 | } |
||
| 552 | } |
||
| 553 | |||
| 554 | /** |
||
| 555 | * @return bool |
||
| 556 | */ |
||
| 557 | public function getValidation() |
||
| 558 | { |
||
| 559 | $validationXpath = $this->clientConfigurationManager->getValidationXpath(); |
||
| 560 | $validation = $this->getValue($validationXpath); |
||
| 561 | return (strtolower($validation) === 'true')? true : false; |
||
| 562 | } |
||
| 563 | |||
| 564 | /** |
||
| 565 | * @param bool $validated |
||
| 566 | */ |
||
| 567 | public function setValidation($validated) |
||
| 568 | { |
||
| 569 | $validationXpath = $this->clientConfigurationManager->getValidationXpath(); |
||
| 570 | $this->setValue($validationXpath, ($validated? 'true' : 'false')); |
||
| 571 | } |
||
| 572 | |||
| 573 | /** |
||
| 574 | * @param string $fisId |
||
| 575 | */ |
||
| 576 | public function setFisId($fisId) |
||
| 577 | { |
||
| 578 | $fisIdXpath = $this->clientConfigurationManager->getFisIdXpath(); |
||
| 579 | $this->setValue($fisIdXpath, $fisId); |
||
| 580 | } |
||
| 581 | |||
| 582 | /** |
||
| 583 | * @param string $xpathString |
||
| 584 | * @return string |
||
| 585 | */ |
||
| 586 | protected function getValue($xpathString) |
||
| 591 | } |
||
| 592 | |||
| 593 | /** |
||
| 594 | * @param string $xpathString |
||
| 595 | * @param string $value |
||
| 596 | */ |
||
| 597 | protected function setValue($xpathString, $value) |
||
| 598 | { |
||
| 599 | $xpath = $this->getXpath(); |
||
| 600 | $nodes = $xpath->query(self::rootNode . $xpathString); |
||
| 601 | if ($nodes->length > 0) { |
||
| 602 | $nodes->item(0)->nodeValue = $value; |
||
| 603 | } elseif(!empty($value)) { |
||
| 604 | $parserGenerator = new ParserGenerator(); |
||
| 605 | $parserGenerator->setXml($this->xml->saveXML()); |
||
| 606 | $parserGenerator->customXPath($xpathString,true, $value); |
||
| 607 | $this->xml = new \DOMDocument(); |
||
| 608 | $this->xml->loadXML($parserGenerator->getXMLData()); |
||
| 609 | } |
||
| 610 | } |
||
| 611 | |||
| 612 | /** |
||
| 613 | * Removes all file nodes from the internal xml |
||
| 614 | */ |
||
| 615 | public function removeAllFiles() { |
||
| 621 | } |
||
| 622 | } |
||
| 623 | |||
| 624 | /** |
||
| 625 | * @param DOMNode $fileNode |
||
| 626 | * @param string $nodeXpath |
||
| 627 | * @param string $value |
||
| 628 | */ |
||
| 629 | public function setFileData(DOMNode $fileNode, string $nodeXpath, string $value) |
||
| 630 | { |
||
| 631 | $xpath = $this->getXpath(); |
||
| 632 | |||
| 633 | if ($fileNode) { |
||
| 634 | $nodes = $xpath->query($nodeXpath, $fileNode); |
||
| 635 | |||
| 636 | if ($nodes->length > 0) { |
||
| 637 | $nodes->item(0)->nodeValue = $value; |
||
| 638 | } else { |
||
| 639 | /** @var XPathXMLGenerator $xPathXMLGenerator */ |
||
| 640 | $xPathXMLGenerator = new XPathXMLGenerator(); |
||
| 641 | $xPathXMLGenerator->generateXmlFromXPath($nodeXpath . "='" . $value . "'"); |
||
| 642 | |||
| 643 | // FIXME: XPATHXmlGenerator XPATH does not generate any namespaces, |
||
| 644 | // which DOMDocument cannot cope with. Actually, namespaces should not be necessary here, |
||
| 645 | // since it is about child elements that are then added to the overall XML. |
||
| 646 | libxml_use_internal_errors(true); |
||
| 647 | $dom = new \DOMDocument(); |
||
| 648 | $domLoaded = $dom->loadXML($xPathXMLGenerator->getXML()); |
||
| 649 | libxml_use_internal_errors(false); |
||
| 650 | |||
| 651 | if ($domLoaded) { |
||
| 652 | $newField = $this->xml->importNode($dom->firstChild, true); |
||
| 653 | $fileNode->appendChild($newField); |
||
| 654 | } |
||
| 655 | } |
||
| 656 | } |
||
| 657 | } |
||
| 658 | |||
| 659 | /** |
||
| 660 | * @param ObjectStorage<File> $files |
||
| 661 | * @throws \Exception |
||
| 662 | */ |
||
| 663 | public function completeFileData(ObjectStorage $files) |
||
| 712 | } |
||
| 713 | } |
||
| 714 | } |
||
| 715 | } |
||
| 716 | } |
||
| 717 | } |
||
| 718 |