@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $this->xml = $xml; |
42 | 42 | |
43 | 43 | // skip multi-records |
44 | - $nbResults = (int)$xml->xpath('//srw:numberOfRecords[1]')[0] ?? 0; |
|
44 | + $nbResults = (int) $xml->xpath('//srw:numberOfRecords[1]')[0] ?? 0; |
|
45 | 45 | if (1 !== $nbResults) { |
46 | 46 | echo "BNF : $nbResults records (skip)\n"; |
47 | 47 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $res = []; |
102 | 102 | foreach ($elements as $element) { |
103 | 103 | if (isset($element) && $element instanceof SimpleXMLElement) { |
104 | - $res[] = (string)$element; |
|
104 | + $res[] = (string) $element; |
|
105 | 105 | } |
106 | 106 | } |
107 | 107 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | { |
123 | 123 | $raw = $this->xpath2string('//mxc:datafield[@tag="215"]/mxc:subfield[@code="a"]'); |
124 | 124 | if (!empty($raw) && preg_match('#([0-9]{2,}) p\.#', $raw, $matches) > 0) { |
125 | - return (string)$matches[1]; |
|
125 | + return (string) $matches[1]; |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | return null; |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | $raw = $this->xpath2string('//srw:recordIdentifier[1]/text()'); |
206 | 206 | |
207 | 207 | if ($raw && preg_match('#ark:/[0-9]+/cb([0-9]+)#', $raw, $matches) > 0) { |
208 | - return (string)$matches[1]; |
|
208 | + return (string) $matches[1]; |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | return null; |