Passed
Push — master ( 72a6ee...6a0f29 )
by Dispositif
02:50
created
src/Domain/Publisher/BnfMapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $this->xml = $xml;
38 38
 
39 39
         // skip multi-records
40
-        $nbResults = (int)$xml->xpath('//srw:numberOfRecords[1]')[0] ?? 0;
40
+        $nbResults = (int) $xml->xpath('//srw:numberOfRecords[1]')[0] ?? 0;
41 41
         if (1 !== $nbResults) {
42 42
             return [];
43 43
         }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         $res = [];
122 122
         foreach ($elements as $element) {
123 123
             if (isset($element) && $element instanceof SimpleXMLElement) {
124
-                $res[] = (string)$element;
124
+                $res[] = (string) $element;
125 125
             }
126 126
         }
127 127
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     {
186 186
         $raw = $this->xpath2string('//mxc:datafield[@tag="215"]/mxc:subfield[@code="a"]');
187 187
         if (!empty($raw) && preg_match('#(\d{2,}) p\.#', $raw, $matches) > 0) {
188
-            return (string)$matches[1];
188
+            return (string) $matches[1];
189 189
         }
190 190
 
191 191
         return null;
Please login to merge, or discard this patch.