@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | try { |
| 106 | 106 | $response = $this->requestFactory->request($url); |
| 107 | 107 | } catch (\Exception $e) { |
| 108 | - $this->logger->warning('Could not fetch data from URL "' . $url . '". Error: ' . $e->getMessage() . '.'); |
|
| 108 | + $this->logger->warning('Could not fetch data from URL "'.$url.'". Error: '.$e->getMessage().'.'); |
|
| 109 | 109 | return false; |
| 110 | 110 | } |
| 111 | 111 | return $response->getBody()->getContents(); |
@@ -118,10 +118,10 @@ discard block |
||
| 118 | 118 | **/ |
| 119 | 119 | private function getApiEndpoint() |
| 120 | 120 | { |
| 121 | - $url = 'https://' . $this->level . '.' . self::HOSTNAME; |
|
| 122 | - $url .= '/v' . self::VERSION . '/'; |
|
| 121 | + $url = 'https://'.$this->level.'.'.self::HOSTNAME; |
|
| 122 | + $url .= '/v'.self::VERSION.'/'; |
|
| 123 | 123 | $url .= $this->orcid; |
| 124 | - $url .= '/' . $this->endpoint; |
|
| 124 | + $url .= '/'.$this->endpoint; |
|
| 125 | 125 | return $url; |
| 126 | 126 | } |
| 127 | 127 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | if (!empty($name)) { |
| 100 | 100 | $this->metadata['author'][$i] = [ |
| 101 | 101 | 'name' => $name, |
| 102 | - 'url' => 'https://orcid.org/' . $orcidId |
|
| 102 | + 'url' => 'https://orcid.org/'.$orcidId |
|
| 103 | 103 | ]; |
| 104 | 104 | } else { |
| 105 | 105 | //fallback into display form |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | } |
| 147 | 147 | // Append "valueURI" to name using Unicode unit separator. |
| 148 | 148 | if (isset($authors[$i]['valueURI'])) { |
| 149 | - $this->metadata['author'][$i] .= chr(31) . (string) $authors[$i]['valueURI']; |
|
| 149 | + $this->metadata['author'][$i] .= chr(31).(string) $authors[$i]['valueURI']; |
|
| 150 | 150 | } |
| 151 | 151 | } |
| 152 | 152 | |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | if (!empty($name)) { |
| 188 | 188 | $this->metadata['holder'][$i] = [ |
| 189 | 189 | 'name' => $name, |
| 190 | - 'url' => 'http://viaf.org/viaf/' . $viafId |
|
| 190 | + 'url' => 'http://viaf.org/viaf/'.$viafId |
|
| 191 | 191 | ]; |
| 192 | 192 | } else { |
| 193 | 193 | //fallback into display form |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | $this->getHolderFromXmlDisplayForm($holders, $i); |
| 200 | 200 | // Append "valueURI" to name using Unicode unit separator. |
| 201 | 201 | if (isset($holders[$i]['valueURI'])) { |
| 202 | - $this->metadata['holder'][$i] .= chr(31) . (string) $holders[$i]['valueURI']; |
|
| 202 | + $this->metadata['holder'][$i] .= chr(31).(string) $holders[$i]['valueURI']; |
|
| 203 | 203 | } |
| 204 | 204 | } |
| 205 | 205 | |