| @@ -106,6 +106,6 @@ | ||
| 106 | 106 | } | 
| 107 | 107 | |
| 108 | 108 |      public function getProcessNumberString() { | 
| 109 | - return strtoupper($this->getOwnerId()).'-'. $this->getYear().'-'.$this->getCounter(); | |
| 109 | + return strtoupper($this->getOwnerId()) . '-' . $this->getYear() . '-' . $this->getCounter(); | |
| 110 | 110 | } | 
| 111 | 111 | } | 
| 112 | 112 | \ No newline at end of file | 
| @@ -47,8 +47,7 @@ discard block | ||
| 47 | 47 | * | 
| 48 | 48 | * @return string $ownerId | 
| 49 | 49 | */ | 
| 50 | - public function getOwnerId() | |
| 51 | -    { | |
| 50 | +    public function getOwnerId() { | |
| 52 | 51 | return $this->ownerId; | 
| 53 | 52 | } | 
| 54 | 53 | |
| @@ -58,8 +57,7 @@ discard block | ||
| 58 | 57 | * @param string $ownerId | 
| 59 | 58 | * @return void | 
| 60 | 59 | */ | 
| 61 | - public function setOwnerId($ownerId) | |
| 62 | -    { | |
| 60 | +    public function setOwnerId($ownerId) { | |
| 63 | 61 | $this->ownerId = $ownerId; | 
| 64 | 62 | } | 
| 65 | 63 | |
| @@ -68,8 +66,7 @@ discard block | ||
| 68 | 66 | * | 
| 69 | 67 | * @return int $year | 
| 70 | 68 | */ | 
| 71 | - public function getYear() | |
| 72 | -    { | |
| 69 | +    public function getYear() { | |
| 73 | 70 | return $this->year; | 
| 74 | 71 | } | 
| 75 | 72 | |
| @@ -79,8 +76,7 @@ discard block | ||
| 79 | 76 | * @param int $year | 
| 80 | 77 | * @return void | 
| 81 | 78 | */ | 
| 82 | - public function setYear($year) | |
| 83 | -    { | |
| 79 | +    public function setYear($year) { | |
| 84 | 80 | $this->year = $year; | 
| 85 | 81 | } | 
| 86 | 82 | |
| @@ -89,8 +85,7 @@ discard block | ||
| 89 | 85 | * | 
| 90 | 86 | * @return int $counter | 
| 91 | 87 | */ | 
| 92 | - public function getCounter() | |
| 93 | -    { | |
| 88 | +    public function getCounter() { | |
| 94 | 89 | return $this->counter; | 
| 95 | 90 | } | 
| 96 | 91 | |
| @@ -100,8 +95,7 @@ discard block | ||
| 100 | 95 | * @param int $counter | 
| 101 | 96 | * @return void | 
| 102 | 97 | */ | 
| 103 | - public function setCounter($counter) | |
| 104 | -    { | |
| 98 | +    public function setCounter($counter) { | |
| 105 | 99 | $this->counter = $counter; | 
| 106 | 100 | } | 
| 107 | 101 | |
| @@ -107,7 +107,6 @@ | ||
| 107 | 107 | |
| 108 | 108 | /** | 
| 109 | 109 | * Get PDF document list | 
| 110 | - | |
| 111 | 110 | * @return array of attachments | 
| 112 | 111 | */ | 
| 113 | 112 | protected function getAttachments() | 
| @@ -72,7 +72,7 @@ discard block | ||
| 72 | 72 | $content = ''; | 
| 73 | 73 |          if (is_array($attachments)) { | 
| 74 | 74 |              foreach ($attachments as $id => $file) { | 
| 75 | - $conf = array( | |
| 75 | + $conf = array ( | |
| 76 | 76 | 'useCacheHash' => 0, | 
| 77 | 77 | 'parameter' => $this->conf['apiPid'] . ' - piwik_download', | 
| 78 | 78 | 'additionalParams' => '&tx_dpf[qid]=' . $this->doc->recordId . '&tx_dpf[action]=attachment' . '&tx_dpf[attachment]=' . $file['ID'], | 
| @@ -81,7 +81,7 @@ discard block | ||
| 81 | 81 | $title = $file['LABEL'] ? $file['LABEL'] : $file['ID']; | 
| 82 | 82 | $markerArray['###FILE###'] = $this->cObj->typoLink($title, $conf); | 
| 83 | 83 | |
| 84 | -                if(!empty($vgwort)) { | |
| 84 | +                if (!empty($vgwort)) { | |
| 85 | 85 | $markerArray['###VGWORT###'] = "<div class='div_vgwpixel' data-url='" . $vgwort . "'></div>"; | 
| 86 | 86 |                  } else { | 
| 87 | 87 | $markerArray['###VGWORT###'] = ""; | 
| @@ -103,10 +103,10 @@ discard block | ||
| 103 | 103 | $xPath = 'mets:fileSec/mets:fileGrp[@USE="' . $this->conf['fileGrpDownload'] . '"]/mets:file'; | 
| 104 | 104 | $files = $this->doc->mets->xpath($xPath); | 
| 105 | 105 |          if (!is_array($files)) { | 
| 106 | - return array(); | |
| 106 | + return array (); | |
| 107 | 107 | } | 
| 108 | 108 |          foreach ($files as $key => $file) { | 
| 109 | - $singleFile = array(); | |
| 109 | + $singleFile = array (); | |
| 110 | 110 |              foreach ($file->attributes('mext', 1) as $attribute => $value) { | 
| 111 | 111 | $singleFile[$attribute] = $value; | 
| 112 | 112 | } | 
| @@ -128,7 +128,7 @@ discard block | ||
| 128 | 128 | $xPath = '//slub:info/slub:vgwortOpenKey'; | 
| 129 | 129 | $vgwortOpenKey = $this->doc->mets->xpath($xPath)[0]; | 
| 130 | 130 | |
| 131 | -        if (!empty($vgwortOpenKey) or $vgwortOpenKey != FALSE ) { | |
| 131 | +        if (!empty($vgwortOpenKey) or $vgwortOpenKey != FALSE) { | |
| 132 | 132 |              if (GeneralUtility::getIndpEnv('TYPO3_SSL')) { | 
| 133 | 133 | $vgwortserver = 'https://ssl-vg03.met.vgwort.de/na/'; | 
| 134 | 134 |              } else { | 
| @@ -24,8 +24,7 @@ discard block | ||
| 24 | 24 | * @subpackage tx_dpf | 
| 25 | 25 | * @access public | 
| 26 | 26 | */ | 
| 27 | -class DownloadTool extends \Kitodo\Dlf\Common\AbstractPlugin | |
| 28 | -{ | |
| 27 | +class DownloadTool extends \Kitodo\Dlf\Common\AbstractPlugin { | |
| 29 | 28 | public $scriptRelPath = 'Classes/Plugins/DownloadTool.php'; | 
| 30 | 29 | |
| 31 | 30 | /** | 
| @@ -38,8 +37,7 @@ discard block | ||
| 38 | 37 | * | 
| 39 | 38 | * @return string The content that is displayed on the website | 
| 40 | 39 | */ | 
| 41 | - public function main($content, $conf) | |
| 42 | -    { | |
| 40 | +    public function main($content, $conf) { | |
| 43 | 41 | $this->init($conf); | 
| 44 | 42 | |
| 45 | 43 | // get the tx_dpf.settings too | 
| @@ -97,8 +95,7 @@ discard block | ||
| 97 | 95 | |
| 98 | 96 | * @return array of attachments | 
| 99 | 97 | */ | 
| 100 | - protected function getAttachments() | |
| 101 | -    { | |
| 98 | +    protected function getAttachments() { | |
| 102 | 99 | // Get pdf documents | 
| 103 | 100 | $xPath = 'mets:fileSec/mets:fileGrp[@USE="' . $this->conf['fileGrpDownload'] . '"]/mets:file'; | 
| 104 | 101 | $files = $this->doc->mets->xpath($xPath); | 
| @@ -121,8 +118,7 @@ discard block | ||
| 121 | 118 | return $attachments; | 
| 122 | 119 | } | 
| 123 | 120 | |
| 124 | - protected function getVGWortUrl() | |
| 125 | -    { | |
| 121 | +    protected function getVGWortUrl() { | |
| 126 | 122 | // Get VG-Wort-OpenKey for document | 
| 127 | 123 |          $this->doc->mets->registerXPathNamespace("slub", 'http://slub-dresden.de/'); | 
| 128 | 124 | $xPath = '//slub:info/slub:vgwortOpenKey'; | 
| @@ -46,13 +46,13 @@ discard block | ||
| 46 | 46 | // Flexform wins over TS | 
| 47 | 47 | $dpfTSconfig = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_dpf.']; | 
| 48 | 48 |          if (is_array($dpfTSconfig['settings.'])) { | 
| 49 | - \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($dpfTSconfig['settings.'], $this->conf, true, false); | |
| 49 | + \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($dpfTSconfig['settings.'], $this->conf, TRUE, FALSE); | |
| 50 | 50 | $this->conf = $dpfTSconfig['settings.']; | 
| 51 | 51 | } | 
| 52 | 52 | |
| 53 | 53 | // Load current document. | 
| 54 | 54 | $this->loadDocument(); | 
| 55 | -        if ($this->doc === null || empty($this->conf['fileGrpDownload'])) { | |
| 55 | +        if ($this->doc === NULL || empty($this->conf['fileGrpDownload'])) { | |
| 56 | 56 | // Quit without doing anything if required variables are not set. | 
| 57 | 57 | return $content; | 
| 58 | 58 | } | 
| @@ -76,7 +76,7 @@ discard block | ||
| 76 | 76 | 'useCacheHash' => 0, | 
| 77 | 77 | 'parameter' => $this->conf['apiPid'] . ' - piwik_download', | 
| 78 | 78 | 'additionalParams' => '&tx_dpf[qid]=' . $this->doc->recordId . '&tx_dpf[action]=attachment' . '&tx_dpf[attachment]=' . $file['ID'], | 
| 79 | - 'forceAbsoluteUrl' => true, | |
| 79 | + 'forceAbsoluteUrl' => TRUE, | |
| 80 | 80 | ); | 
| 81 | 81 | $title = $file['LABEL'] ? $file['LABEL'] : $file['ID']; | 
| 82 | 82 | $markerArray['###FILE###'] = $this->cObj->typoLink($title, $conf); | 
| @@ -89,7 +89,7 @@ discard block | ||
| 89 | 89 | $content .= $this->cObj->substituteMarkerArray($subpartArray['downloads'], $markerArray); | 
| 90 | 90 | } | 
| 91 | 91 | } | 
| 92 | - return $this->cObj->substituteSubpart($this->template, '###DOWNLOADS###', $content, true); | |
| 92 | + return $this->cObj->substituteSubpart($this->template, '###DOWNLOADS###', $content, TRUE); | |
| 93 | 93 | } | 
| 94 | 94 | |
| 95 | 95 | /** | 
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | $datetime = new \DateTime(); | 
| 32 | 32 |              $currentYear = $datetime->format('y'); | 
| 33 | 33 | |
| 34 | - $processNumber = $processNumberRepository->getHighestProcessNumberByOwnerIdAndYear(strtolower($ownerId),$currentYear); | |
| 34 | + $processNumber = $processNumberRepository->getHighestProcessNumberByOwnerIdAndYear(strtolower($ownerId), $currentYear); | |
| 35 | 35 | |
| 36 | 36 |              if ($processNumber) { | 
| 37 | 37 | $counter = $processNumber->getCounter() + 1; | 
| @@ -20,8 +20,7 @@ | ||
| 20 | 20 | use EWW\Dpf\Domain\Model\ProcessNumber; | 
| 21 | 21 | use EWW\Dpf\Domain\Repository\ClientRepository; | 
| 22 | 22 | |
| 23 | -class ProcessNumberGenerator | |
| 24 | -{ | |
| 23 | +class ProcessNumberGenerator { | |
| 25 | 24 |      public function getProcessNumber($ownerId = NULL) { | 
| 26 | 25 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class); | 
| 27 | 26 | $processNumberRepository = $objectManager->get(ProcessNumberRepository::class); | 
| @@ -439,7 +439,7 @@ | ||
| 439 | 439 | |
| 440 | 440 | $domXPath2 = \EWW\Dpf\Helper\XPath::create($doc2); | 
| 441 | 441 | |
| 442 | - // second part nested xpath | |
| 442 | + // second part nested xpath | |
| 443 | 443 |                  if ($match[2] && $secondMatch[2]) { | 
| 444 | 444 | // import node from nested | 
| 445 | 445 | $docXMLNested = new \DOMDocument(); | 
| @@ -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 | } | 
| @@ -22,8 +22,7 @@ discard block | ||
| 22 | 22 | /** | 
| 23 | 23 | * MetsExporter | 
| 24 | 24 | */ | 
| 25 | -class MetsExporter | |
| 26 | -{ | |
| 25 | +class MetsExporter { | |
| 27 | 26 | /** | 
| 28 | 27 | * clientConfigurationManager | 
| 29 | 28 | * | 
| @@ -98,8 +97,7 @@ discard block | ||
| 98 | 97 | /** | 
| 99 | 98 | * Constructor | 
| 100 | 99 | */ | 
| 101 | - public function __construct() | |
| 102 | -    { | |
| 100 | +    public function __construct() { | |
| 103 | 101 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class); | 
| 104 | 102 | $this->clientConfigurationManager = $objectManager->get(ClientConfigurationManager::class); | 
| 105 | 103 | |
| @@ -128,8 +126,7 @@ discard block | ||
| 128 | 126 | * returns the mods xml string | 
| 129 | 127 | * @return string mods xml | 
| 130 | 128 | */ | 
| 131 | - public function getXMLData() | |
| 132 | -    { | |
| 129 | +    public function getXMLData() { | |
| 133 | 130 | $xml = $this->xmlData->saveXML(); | 
| 134 | 131 |          $xml = preg_replace("/eww=\"\d-\d-\d\"/", '${1}${2}${3}', $xml); | 
| 135 | 132 | |
| @@ -172,8 +169,7 @@ discard block | ||
| 172 | 169 | * @param $document | 
| 173 | 170 | * @return string The transformed xml | 
| 174 | 171 | */ | 
| 175 | - public function getTransformedOutputXML($document) | |
| 176 | -    { | |
| 172 | +    public function getTransformedOutputXML($document) { | |
| 177 | 173 | $documentType = $document->getDocumentType(); | 
| 178 | 174 | $transformationFile = $documentType->getTransformationFileOutput()->current(); | 
| 179 | 175 |          if ($transformationFile != NULL) { | 
| @@ -194,8 +190,7 @@ discard block | ||
| 194 | 190 | * build mods from form array | 
| 195 | 191 | * @param array $array structured form data array | 
| 196 | 192 | */ | 
| 197 | - public function buildXmlFromForm($array) | |
| 198 | -    { | |
| 193 | +    public function buildXmlFromForm($array) { | |
| 199 | 194 | $this->xmlData = $this->xmlData; | 
| 200 | 195 | // Build xml mods from form fields | 
| 201 | 196 | // loop each group | 
| @@ -243,8 +238,7 @@ discard block | ||
| 243 | 238 | * @param xpath $xPath xPath expression | 
| 244 | 239 | * @return xml | 
| 245 | 240 | */ | 
| 246 | - public function parseXPath($xPath) | |
| 247 | -    { | |
| 241 | +    public function parseXPath($xPath) { | |
| 248 | 242 | |
| 249 | 243 | $this->parser->generateXmlFromXPath($xPath); | 
| 250 | 244 | $xml = $this->parser->getXML(); | 
| @@ -252,8 +246,7 @@ discard block | ||
| 252 | 246 | return $xml; | 
| 253 | 247 | } | 
| 254 | 248 | |
| 255 | - public function parseXPathWrapped($xPath) | |
| 256 | -    { | |
| 249 | +    public function parseXPathWrapped($xPath) { | |
| 257 | 250 | $this->parser->generateXmlFromXPath($xPath); | 
| 258 | 251 | $xml = $this->parser->getXML(); | 
| 259 | 252 | |
| @@ -268,8 +261,7 @@ discard block | ||
| 268 | 261 | * @param string $value form value | 
| 269 | 262 | * @return xml created xml | 
| 270 | 263 | */ | 
| 271 | - public function customXPath($xPath, $newGroupFlag = false, $value = '', $attributeOnly = false) | |
| 272 | -    { | |
| 264 | +    public function customXPath($xPath, $newGroupFlag = false, $value = '', $attributeOnly = false) { | |
| 273 | 265 |          if (!$attributeOnly) { | 
| 274 | 266 | // Explode xPath | 
| 275 | 267 |              $newPath = explode('%', $xPath); | 
| @@ -448,8 +440,7 @@ discard block | ||
| 448 | 440 | * sets the file data and generates file xml | 
| 449 | 441 | * @param string $value | 
| 450 | 442 | */ | 
| 451 | - public function setFileData($value = '') | |
| 452 | -    { | |
| 443 | +    public function setFileData($value = '') { | |
| 453 | 444 | $this->files = $value; | 
| 454 | 445 | $this->generateFileXML(); | 
| 455 | 446 | } | 
| @@ -576,8 +567,7 @@ discard block | ||
| 576 | 567 | * @param string $objId | 
| 577 | 568 | * @return void | 
| 578 | 569 | */ | 
| 579 | - public function setObjId($objId) | |
| 580 | -    { | |
| 570 | +    public function setObjId($objId) { | |
| 581 | 571 | $this->objId = $objId; | 
| 582 | 572 | } | 
| 583 | 573 | } | 
| @@ -37,7 +37,7 @@ discard block | ||
| 37 | 37 | * | 
| 38 | 38 | * @var \EWW\Dpf\Domain\Repository\DocumentTypeRepository | 
| 39 | 39 | */ | 
| 40 | - protected $documentTypeRepository = null; | |
| 40 | + protected $documentTypeRepository = NULL; | |
| 41 | 41 | |
| 42 | 42 | /** | 
| 43 | 43 | * formData | 
| @@ -75,7 +75,7 @@ discard block | ||
| 75 | 75 | * xPathXMLGenerator | 
| 76 | 76 | * @var object | 
| 77 | 77 | */ | 
| 78 | - protected $parser = null; | |
| 78 | + protected $parser = NULL; | |
| 79 | 79 | |
| 80 | 80 | /** | 
| 81 | 81 | * ref id counter | 
| @@ -218,9 +218,9 @@ discard block | ||
| 218 | 218 | $path = $mapping . $attributeXPath . '%/' . $value['mapping']; | 
| 219 | 219 | |
| 220 | 220 |                      if ($i == 0) { | 
| 221 | - $newGroupFlag = true; | |
| 221 | + $newGroupFlag = TRUE; | |
| 222 | 222 |                      } else { | 
| 223 | - $newGroupFlag = false; | |
| 223 | + $newGroupFlag = FALSE; | |
| 224 | 224 | } | 
| 225 | 225 | |
| 226 | 226 | $xml = $this->customXPath($path, $newGroupFlag, $value['value']); | 
| @@ -230,7 +230,7 @@ discard block | ||
| 230 | 230 |              } else { | 
| 231 | 231 |                  if (!empty($attributeXPath)) { | 
| 232 | 232 | $path = $mapping . $attributeXPath; | 
| 233 | - $xml = $this->customXPath($path, true, '', true); | |
| 233 | + $xml = $this->customXPath($path, TRUE, '', TRUE); | |
| 234 | 234 | } | 
| 235 | 235 | } | 
| 236 | 236 | } | 
| @@ -268,13 +268,13 @@ discard block | ||
| 268 | 268 | * @param string $value form value | 
| 269 | 269 | * @return xml created xml | 
| 270 | 270 | */ | 
| 271 | - public function customXPath($xPath, $newGroupFlag = false, $value = '', $attributeOnly = false) | |
| 271 | + public function customXPath($xPath, $newGroupFlag = FALSE, $value = '', $attributeOnly = FALSE) | |
| 272 | 272 |      { | 
| 273 | 273 |          if (!$attributeOnly) { | 
| 274 | 274 | // Explode xPath | 
| 275 | 275 |              $newPath = explode('%', $xPath); | 
| 276 | 276 | |
| 277 | - $praedicateFlag = false; | |
| 277 | + $praedicateFlag = FALSE; | |
| 278 | 278 |              $explodedXPath  = explode('[', $newPath[0]); | 
| 279 | 279 |              if (count($explodedXPath) > 1) { | 
| 280 | 280 | // praedicate is given | 
| @@ -286,7 +286,7 @@ discard block | ||
| 286 | 286 | $path = $explodedXPath[0]; | 
| 287 | 287 | } | 
| 288 | 288 | |
| 289 | - $praedicateFlag = true; | |
| 289 | + $praedicateFlag = TRUE; | |
| 290 | 290 |              } else { | 
| 291 | 291 | $path = $newPath[0]; | 
| 292 | 292 | } | 
| @@ -336,7 +336,7 @@ discard block | ||
| 336 | 336 | $nodeList = $xPath->query($match[1]); | 
| 337 | 337 | $node = $nodeList->item(0); | 
| 338 | 338 | |
| 339 | -                    $importNode = $docXML->importNode($docXMLNested->getElementsByTagName("mods")->item(0)->firstChild, true); | |
| 339 | +                    $importNode = $docXML->importNode($docXMLNested->getElementsByTagName("mods")->item(0)->firstChild, TRUE); | |
| 340 | 340 | |
| 341 | 341 | $node->appendChild($importNode); | 
| 342 | 342 | } | 
| @@ -344,7 +344,7 @@ discard block | ||
| 344 | 344 |                  $domNode = $domXPath->query('/data/' . $path); | 
| 345 | 345 | $node = $docXML->documentElement; | 
| 346 | 346 | |
| 347 | - $nodeAppendModsData = $this->xmlData->importNode($node, true); | |
| 347 | + $nodeAppendModsData = $this->xmlData->importNode($node, TRUE); | |
| 348 | 348 | $domNode->item($domNode->length - 1)->appendChild($nodeAppendModsData); | 
| 349 | 349 |              } else { | 
| 350 | 350 | // first xpath doesn't exist | 
| @@ -393,7 +393,7 @@ discard block | ||
| 393 | 393 |                      $nodeList = $xPath->query('//' . $path . $match[1]); | 
| 394 | 394 | $node = $nodeList->item(0); | 
| 395 | 395 | |
| 396 | - $importNode = $doc2->importNode($docXMLNested->documentElement, true); | |
| 396 | + $importNode = $doc2->importNode($docXMLNested->documentElement, TRUE); | |
| 397 | 397 | |
| 398 | 398 | $node->appendChild($importNode); | 
| 399 | 399 | } | 
| @@ -401,7 +401,7 @@ discard block | ||
| 401 | 401 |                  $domNode2 = $domXPath2->query('//' . $path)->item(0)->childNodes->item(0); | 
| 402 | 402 | |
| 403 | 403 | // merge xml nodes | 
| 404 | - $nodeToBeAppended = $doc1->importNode($domNode2, true); | |
| 404 | + $nodeToBeAppended = $doc1->importNode($domNode2, TRUE); | |
| 405 | 405 | |
| 406 | 406 | $domNode->item(0)->appendChild($nodeToBeAppended); | 
| 407 | 407 | |
| @@ -410,7 +410,7 @@ discard block | ||
| 410 | 410 | $firstChild = $this->xmlData->firstChild; | 
| 411 | 411 | $firstItem = $doc1->documentElement->firstChild; | 
| 412 | 412 | |
| 413 | - $nodeAppendModsData = $this->xmlData->importNode($firstItem, true); | |
| 413 | + $nodeAppendModsData = $this->xmlData->importNode($firstItem, TRUE); | |
| 414 | 414 | $firstChild->appendChild($nodeAppendModsData); | 
| 415 | 415 | |
| 416 | 416 | return $doc1->saveXML(); | 
| @@ -427,7 +427,7 @@ discard block | ||
| 427 | 427 | |
| 428 | 428 | $node = $docXML->documentElement; | 
| 429 | 429 | |
| 430 | - $nodeAppendModsData = $this->xmlData->importNode($node, true); | |
| 430 | + $nodeAppendModsData = $this->xmlData->importNode($node, TRUE); | |
| 431 | 431 | $domNode->item($domNode->length - 1)->appendChild($nodeAppendModsData); | 
| 432 | 432 | |
| 433 | 433 | return $docXML->saveXML(); | 
| @@ -464,14 +464,14 @@ discard block | ||
| 464 | 464 |          foreach ($this->files as $key => $fileGrp) { | 
| 465 | 465 |              foreach ($fileGrp as $file) { | 
| 466 | 466 | |
| 467 | - $this->customXPath($fileXpathConfiguration . '/href', true, $file["path"]); | |
| 468 | - $this->customXPath($fileXpathConfiguration . '%mimetype', false, $file["type"]); | |
| 469 | - $this->customXPath($fileXpathConfiguration . '%title', false, $file["title"]); | |
| 470 | - $this->customXPath($fileXpathConfiguration . '%download', false, $file["download"]); | |
| 471 | - $this->customXPath($fileXpathConfiguration . '%archive', false, $file["archive"]); | |
| 472 | - $this->customXPath($fileXpathConfiguration . '%use', false, $file["use"]); | |
| 473 | - $this->customXPath($fileXpathConfiguration . '%id', false, $file["id"]); | |
| 474 | - $this->customXPath($fileXpathConfiguration . '%hasFLocat', false, $file["hasFLocat"]); | |
| 467 | + $this->customXPath($fileXpathConfiguration . '/href', TRUE, $file["path"]); | |
| 468 | + $this->customXPath($fileXpathConfiguration . '%mimetype', FALSE, $file["type"]); | |
| 469 | + $this->customXPath($fileXpathConfiguration . '%title', FALSE, $file["title"]); | |
| 470 | + $this->customXPath($fileXpathConfiguration . '%download', FALSE, $file["download"]); | |
| 471 | + $this->customXPath($fileXpathConfiguration . '%archive', FALSE, $file["archive"]); | |
| 472 | + $this->customXPath($fileXpathConfiguration . '%use', FALSE, $file["use"]); | |
| 473 | + $this->customXPath($fileXpathConfiguration . '%id', FALSE, $file["id"]); | |
| 474 | + $this->customXPath($fileXpathConfiguration . '%hasFLocat', FALSE, $file["hasFLocat"]); | |
| 475 | 475 | |
| 476 | 476 | } | 
| 477 | 477 | } | 
| @@ -88,7 +88,7 @@ discard block | ||
| 88 | 88 | $this->currentPage = 1; | 
| 89 | 89 |          } else { | 
| 90 | 90 | // restore query | 
| 91 | - $this->query = (!empty($session[$this->action]['query'])) ? $session[$this->action]['query'] : array(); | |
| 91 | + $this->query = (!empty($session[$this->action]['query'])) ? $session[$this->action]['query'] : array (); | |
| 92 | 92 | // set current page | 
| 93 | 93 |              if ((!empty($currentPage))) { | 
| 94 | 94 | $this->currentPage = MathUtility::forceIntegerInRange($currentPage, 1); | 
| @@ -197,8 +197,8 @@ discard block | ||
| 197 | 197 | */ | 
| 198 | 198 | private function viewAssign() | 
| 199 | 199 |      { | 
| 200 | -        $this->view->assign('query',       $this->query); | |
| 201 | -        $this->view->assign('resultList',  $this->resultList); | |
| 200 | +        $this->view->assign('query', $this->query); | |
| 201 | +        $this->view->assign('resultList', $this->resultList); | |
| 202 | 202 |          $this->view->assign('currentPage', $this->currentPage); | 
| 203 | 203 | } | 
| 204 | 204 | } | 
| @@ -124,7 +124,7 @@ discard block | ||
| 124 | 124 | $message, | 
| 125 | 125 | '', | 
| 126 | 126 | $severity, | 
| 127 | - true | |
| 127 | + TRUE | |
| 128 | 128 | ); | 
| 129 | 129 | } | 
| 130 | 130 | } | 
| @@ -155,7 +155,7 @@ discard block | ||
| 155 | 155 | $message, | 
| 156 | 156 | '', | 
| 157 | 157 | $severity, | 
| 158 | - true | |
| 158 | + TRUE | |
| 159 | 159 | ); | 
| 160 | 160 | } | 
| 161 | 161 | } | 
| @@ -21,8 +21,7 @@ discard block | ||
| 21 | 21 | * @package EWW\Dpf\Controller | 
| 22 | 22 | * @deprecated since version 4.0 | 
| 23 | 23 | */ | 
| 24 | -class SearchFEController extends \EWW\Dpf\Controller\AbstractSearchController | |
| 25 | -{ | |
| 24 | +class SearchFEController extends \EWW\Dpf\Controller\AbstractSearchController { | |
| 26 | 25 | /** | 
| 27 | 26 | * action | 
| 28 | 27 | * @var string | 
| @@ -64,8 +63,7 @@ discard block | ||
| 64 | 63 | /** | 
| 65 | 64 | * __construct | 
| 66 | 65 | */ | 
| 67 | - public function __construct() | |
| 68 | -    { | |
| 66 | +    public function __construct() { | |
| 69 | 67 | // get session data | 
| 70 | 68 |          $session = $this->getSessionData('tx_dpf_frontendsearch'); | 
| 71 | 69 | // get action | 
| @@ -106,8 +104,7 @@ discard block | ||
| 106 | 104 | * @return void | 
| 107 | 105 | * @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException | 
| 108 | 106 | */ | 
| 109 | - public function initializeSearchAction() | |
| 110 | -    { | |
| 107 | +    public function initializeSearchAction() { | |
| 111 | 108 |          if ($this->action == 'extendedSearch') { | 
| 112 | 109 |              $this->forward('extendedSearch'); | 
| 113 | 110 | } | 
| @@ -117,8 +114,7 @@ discard block | ||
| 117 | 114 | * action search | 
| 118 | 115 | * @return void | 
| 119 | 116 | */ | 
| 120 | - public function searchAction() | |
| 121 | -    { | |
| 117 | +    public function searchAction() { | |
| 122 | 118 |          try { | 
| 123 | 119 |              if (!empty($this->query['fulltext'])) { | 
| 124 | 120 | $query = $this->searchFulltext($this->query['fulltext']); | 
| @@ -146,8 +142,7 @@ discard block | ||
| 146 | 142 | * @return void | 
| 147 | 143 | * @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException | 
| 148 | 144 | */ | 
| 149 | - public function initializeExtendedSearchAction() | |
| 150 | -    { | |
| 145 | +    public function initializeExtendedSearchAction() { | |
| 151 | 146 |          if ($this->action == 'search') { | 
| 152 | 147 |              $this->forward('search'); | 
| 153 | 148 | } | 
| @@ -157,8 +152,7 @@ discard block | ||
| 157 | 152 | * action extendedSearch | 
| 158 | 153 | * @return void | 
| 159 | 154 | */ | 
| 160 | - public function extendedSearchAction() | |
| 161 | -    { | |
| 155 | +    public function extendedSearchAction() { | |
| 162 | 156 |          try { | 
| 163 | 157 | $this->docTypes(); | 
| 164 | 158 |              if (!empty(implode('', $this->query))) { | 
| @@ -186,8 +180,7 @@ discard block | ||
| 186 | 180 | * @param array $query | 
| 187 | 181 | * @return array $results | 
| 188 | 182 | */ | 
| 189 | - private function getResults($query) | |
| 190 | -    { | |
| 183 | +    private function getResults($query) { | |
| 191 | 184 | $size = $this->settings['list']['paginate']['itemsPerPage']; | 
| 192 | 185 | |
| 193 | 186 | $query['body']['from'] = ($this->currentPage - 1) * $size; | 
| @@ -203,8 +196,7 @@ discard block | ||
| 203 | 196 | * dummy action for showSearchForm Action used in sidebar | 
| 204 | 197 | * @return void | 
| 205 | 198 | */ | 
| 206 | - public static function showSearchFormAction() | |
| 207 | -    { | |
| 199 | +    public static function showSearchFormAction() { | |
| 208 | 200 | |
| 209 | 201 | } | 
| 210 | 202 | |
| @@ -212,8 +204,7 @@ discard block | ||
| 212 | 204 | * set session data | 
| 213 | 205 | * @return void | 
| 214 | 206 | */ | 
| 215 | - private function setSession() | |
| 216 | -    { | |
| 207 | +    private function setSession() { | |
| 217 | 208 | $session[$this->action] = array ( | 
| 218 | 209 | 'query' => $this->query, | 
| 219 | 210 | 'currentPage' => $this->currentPage | 
| @@ -225,8 +216,7 @@ discard block | ||
| 225 | 216 | * create docTypes | 
| 226 | 217 | * @return void | 
| 227 | 218 | */ | 
| 228 | - private function docTypes() | |
| 229 | -    { | |
| 219 | +    private function docTypes() { | |
| 230 | 220 | // get document types | 
| 231 | 221 | $allTypes = $this->documentTypeRepository->findAll(); | 
| 232 | 222 | // add empty field | 
| @@ -242,8 +232,7 @@ discard block | ||
| 242 | 232 | * create view | 
| 243 | 233 | * @return void | 
| 244 | 234 | */ | 
| 245 | - private function viewAssign() | |
| 246 | -    { | |
| 235 | +    private function viewAssign() { | |
| 247 | 236 |          $this->view->assign('query',       $this->query); | 
| 248 | 237 |          $this->view->assign('resultList',  $this->resultList); | 
| 249 | 238 |          $this->view->assign('currentPage', $this->currentPage); | 
| @@ -179,20 +179,20 @@ | ||
| 179 | 179 | return 'Error while fetching headers'; | 
| 180 | 180 | } | 
| 181 | 181 | |
| 182 | - $contentDispFlag = false; | |
| 183 | - $contentTypeFlag = false; | |
| 182 | + $contentDispFlag = FALSE; | |
| 183 | + $contentTypeFlag = FALSE; | |
| 184 | 184 | |
| 185 | 185 |          foreach ($headers as $value) { | 
| 186 | 186 | |
| 187 | 187 |              if (FALSE !== stripos($value, 'Content-Disposition')) { | 
| 188 | 188 | header($value); | 
| 189 | - $contentDispFlag = true; | |
| 189 | + $contentDispFlag = TRUE; | |
| 190 | 190 | continue; | 
| 191 | 191 | } | 
| 192 | 192 | |
| 193 | 193 |              if (FALSE !== stripos($value, 'Content-Type')) { | 
| 194 | 194 | header($value); | 
| 195 | - $contentTypeFlag = true; | |
| 195 | + $contentTypeFlag = TRUE; | |
| 196 | 196 | continue; | 
| 197 | 197 | } | 
| 198 | 198 | |
| @@ -46,8 +46,7 @@ discard block | ||
| 46 | 46 | /** | 
| 47 | 47 | * GetFileController | 
| 48 | 48 | */ | 
| 49 | -class GetFileController extends \EWW\Dpf\Controller\AbstractController | |
| 50 | -{ | |
| 49 | +class GetFileController extends \EWW\Dpf\Controller\AbstractController { | |
| 51 | 50 | |
| 52 | 51 | /** | 
| 53 | 52 | * documentRepository | 
| @@ -65,8 +64,7 @@ discard block | ||
| 65 | 64 | */ | 
| 66 | 65 | protected $clientConfigurationManager; | 
| 67 | 66 | |
| 68 | - public function attachmentAction() | |
| 69 | -    { | |
| 67 | +    public function attachmentAction() { | |
| 70 | 68 | |
| 71 | 69 |          $piVars = GeneralUtility::_GP('tx_dpf'); // get GET params from powermail | 
| 72 | 70 | |
| @@ -282,8 +280,7 @@ discard block | ||
| 282 | 280 | |
| 283 | 281 | } | 
| 284 | 282 | |
| 285 | - private static function sanitizeFilename($filename) | |
| 286 | -    { | |
| 283 | +    private static function sanitizeFilename($filename) { | |
| 287 | 284 | // remove anything which isn't a word, whitespace, number or any of the following caracters -_~,;[](). | 
| 288 | 285 |          $filename = mb_ereg_replace("([^\w\s\d\-_~,;\[\]\(\).])", '', $filename); | 
| 289 | 286 | // turn diacritical characters to ASCII | 
| @@ -295,8 +292,7 @@ discard block | ||
| 295 | 292 | return $filename; | 
| 296 | 293 | } | 
| 297 | 294 | |
| 298 | - private function buildMetsXml($document) | |
| 299 | -    { | |
| 295 | +    private function buildMetsXml($document) { | |
| 300 | 296 | $exporter = new \EWW\Dpf\Services\ParserGenerator(); | 
| 301 | 297 | $fileData = $document->getCurrentFileData(); | 
| 302 | 298 | $exporter->setFileData($fileData); | 
| @@ -314,8 +310,7 @@ discard block | ||
| 314 | 310 | return $transformedXml; | 
| 315 | 311 | } | 
| 316 | 312 | |
| 317 | - private function isForbidden($action) | |
| 318 | -    { | |
| 313 | +    private function isForbidden($action) { | |
| 319 | 314 | $allowed = | 
| 320 | 315 |              array_key_exists('allowedActions', $this->settings) | 
| 321 | 316 | && is_array($this->settings['allowedActions']) | 
| @@ -83,7 +83,7 @@ discard block | ||
| 83 | 83 | |
| 84 | 84 |          switch ($piVars['action']) { | 
| 85 | 85 | case 'mets': | 
| 86 | -                $path = rtrim('http://' . $fedoraHost,"/").'/fedora/objects/'.$piVars['qid'].'/methods/'.$fedoraNamespace.':SDef/getMETSDissemination?supplement=yes'; | |
| 86 | +                $path = rtrim('http://' . $fedoraHost, "/") . '/fedora/objects/' . $piVars['qid'] . '/methods/' . $fedoraNamespace . ':SDef/getMETSDissemination?supplement=yes'; | |
| 87 | 87 | break; | 
| 88 | 88 | |
| 89 | 89 | case 'preview': | 
| @@ -148,7 +148,7 @@ discard block | ||
| 148 | 148 |                  $source = explode(':', $qid); | 
| 149 | 149 |                  if ($source[0] == $fedoraNamespace) { | 
| 150 | 150 | |
| 151 | -                    $path = rtrim('http://' . $fedoraHost, "/").'/fedora/objects/'.$piVars['qid'].'/methods/'.$fedoraNamespace.':SDef/getMETSDissemination?supplement=yes'; | |
| 151 | +                    $path = rtrim('http://' . $fedoraHost, "/") . '/fedora/objects/' . $piVars['qid'] . '/methods/' . $fedoraNamespace . ':SDef/getMETSDissemination?supplement=yes'; | |
| 152 | 152 |                      $metsXml = str_replace('&', '&', file_get_contents($path)); | 
| 153 | 153 | $dataCiteXml = \EWW\Dpf\Helper\DataCiteXml::convertFromMetsXml($metsXml); | 
| 154 | 154 | |
| @@ -201,7 +201,7 @@ discard block | ||
| 201 | 201 |          if (TRUE === $isRepositoryObject) { | 
| 202 | 202 |              if (TRUE === $restrictToActiveDocuments) { | 
| 203 | 203 | // if restriction applies, check object state before dissemination | 
| 204 | -                $objectProfileURI = rtrim('http://' . $fedoraHost,"/").'/fedora/objects/'.$piVars['qid'].'?format=XML'; | |
| 204 | +                $objectProfileURI = rtrim('http://' . $fedoraHost, "/") . '/fedora/objects/' . $piVars['qid'] . '?format=XML'; | |
| 205 | 205 | $objectProfileXML = file_get_contents($objectProfileURI); | 
| 206 | 206 |                  if (FALSE !== $objectProfileXML) { | 
| 207 | 207 |                      $objectProfileDOM = new \DOMDocument('1.0', 'UTF-8'); | 
| @@ -14,8 +14,7 @@ | ||
| 14 | 14 | * The TYPO3 project - inspiring people to share! | 
| 15 | 15 | */ | 
| 16 | 16 | |
| 17 | -interface Repository | |
| 18 | -{ | |
| 17 | +interface Repository { | |
| 19 | 18 | |
| 20 | 19 | public function ingest($document, $metsXml); | 
| 21 | 20 | |
| @@ -22,7 +22,7 @@ | ||
| 22 | 22 | public function __construct($document) | 
| 23 | 23 |      { | 
| 24 | 24 | |
| 25 | - $idList = array(); | |
| 25 | + $idList = array (); | |
| 26 | 26 | $this->id = 0; | 
| 27 | 27 | |
| 28 | 28 |          if (is_a($document->getFile(), '\TYPO3\CMS\Extbase\Persistence\ObjectStorage')) { | 
| @@ -14,13 +14,11 @@ discard block | ||
| 14 | 14 | * The TYPO3 project - inspiring people to share! | 
| 15 | 15 | */ | 
| 16 | 16 | |
| 17 | -class FileId | |
| 18 | -{ | |
| 17 | +class FileId { | |
| 19 | 18 | |
| 20 | 19 | protected $id = 0; | 
| 21 | 20 | |
| 22 | - public function __construct($document) | |
| 23 | -    { | |
| 21 | +    public function __construct($document) { | |
| 24 | 22 | |
| 25 | 23 | $idList = array(); | 
| 26 | 24 | $this->id = 0; | 
| @@ -42,8 +40,7 @@ discard block | ||
| 42 | 40 | |
| 43 | 41 | } | 
| 44 | 42 | |
| 45 | - public function getId($file) | |
| 46 | -    { | |
| 43 | +    public function getId($file) { | |
| 47 | 44 | |
| 48 | 45 | $fileId = $file->getDatastreamIdentifier(); | 
| 49 | 46 |          if (empty($fileId)) { | 
| @@ -66,9 +66,9 @@ | ||
| 66 | 66 | $client = $this->clientRepository->findAll()->current(); | 
| 67 | 67 | |
| 68 | 68 | // build es json | 
| 69 | - $esJson = array(); | |
| 69 | + $esJson = array (); | |
| 70 | 70 | $esJson['OWNER_ID'] = $client->getOwnerId(); | 
| 71 | - $esJson['_dissemination'] = array(); | |
| 71 | + $esJson['_dissemination'] = array (); | |
| 72 | 72 | $esJson['_dissemination']['_content'] = json_decode($json); | 
| 73 | 73 | |
| 74 | 74 | $esJson = json_encode($esJson); | 
| @@ -27,8 +27,7 @@ discard block | ||
| 27 | 27 | * @package EWW\Dpf\Services\Transfer | 
| 28 | 28 | * @deprecated since version 4.0 | 
| 29 | 29 | */ | 
| 30 | -class ElasticsearchRepository implements Repository | |
| 31 | -{ | |
| 30 | +class ElasticsearchRepository implements Repository { | |
| 32 | 31 | /** | 
| 33 | 32 | * clientRepository | 
| 34 | 33 | * | 
| @@ -45,8 +44,7 @@ discard block | ||
| 45 | 44 | |
| 46 | 45 | protected $url; | 
| 47 | 46 | |
| 48 | - public function __construct() | |
| 49 | -    { | |
| 47 | +    public function __construct() { | |
| 50 | 48 | |
| 51 | 49 | $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class); | 
| 52 | 50 | $clientConfigurationManager = $objectManager->get(ClientConfigurationManager::class); | 
| @@ -65,8 +63,7 @@ discard block | ||
| 65 | 63 | * saves new document into elasticsearch local | 
| 66 | 64 | * @param \EWW\Dpf\Domain\Model\Document $document | 
| 67 | 65 | */ | 
| 68 | - public function add($document, $json) | |
| 69 | -    { | |
| 66 | +    public function add($document, $json) { | |
| 70 | 67 | |
| 71 | 68 | $client = $this->clientRepository->findAll()->current(); | 
| 72 | 69 | |
| @@ -103,8 +100,7 @@ discard block | ||
| 103 | 100 | * @param \EWW\Dpf\Domain\Model\Document $document | 
| 104 | 101 | * @param string $state | 
| 105 | 102 | */ | 
| 106 | - public function delete($document, $state) | |
| 107 | -    { | |
| 103 | +    public function delete($document, $state) { | |
| 108 | 104 | |
| 109 | 105 |          try { | 
| 110 | 106 | $response = Request::delete($this->url . $document->getUid()) | 
| @@ -122,23 +118,19 @@ discard block | ||
| 122 | 118 | |
| 123 | 119 | } | 
| 124 | 120 | |
| 125 | - public function retrieve($id) | |
| 126 | -    { | |
| 121 | +    public function retrieve($id) { | |
| 127 | 122 | # not implemented yet | 
| 128 | 123 | } | 
| 129 | 124 | |
| 130 | - public function ingest($document, $metsXML) | |
| 131 | -    { | |
| 125 | +    public function ingest($document, $metsXML) { | |
| 132 | 126 | # not implemented yet | 
| 133 | 127 | } | 
| 134 | 128 | |
| 135 | - public function update($document, $metsXml) | |
| 136 | -    { | |
| 129 | +    public function update($document, $metsXml) { | |
| 137 | 130 | # not implemented yet | 
| 138 | 131 | } | 
| 139 | 132 | |
| 140 | - public function getNextDocumentId() | |
| 141 | -    { | |
| 133 | +    public function getNextDocumentId() { | |
| 142 | 134 | # not implemented yet | 
| 143 | 135 | } | 
| 144 | 136 | |
| @@ -35,7 +35,7 @@ | ||
| 35 | 35 | * @var \EWW\Dpf\Domain\Repository\ClientRepository | 
| 36 | 36 | * @TYPO3\CMS\Extbase\Annotation\Inject | 
| 37 | 37 | */ | 
| 38 | - protected $clientRepository = null; | |
| 38 | + protected $clientRepository = NULL; | |
| 39 | 39 | |
| 40 | 40 | protected $host; | 
| 41 | 41 | |