Completed
Push — master ( 876b6d...f528db )
by Luca
05:17 queued 03:04
created
src/Metadata/Parser/XMPParser.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -31,32 +31,32 @@
 block discarded – undo
31 31
 
32 32
         $xmp_arr = [];
33 33
         foreach ([
34
-                     'creator_email' => '<Iptc4xmpCore:CreatorContactInfo[^>]+?CiEmailWork="([^"]*)"',
35
-                     'owner' => '<rdf:Description[^>]+?aux:OwnerName="([^"]*)"',
36
-                     'created_at' => '<rdf:Description[^>]+?xmp:CreateDate="([^"]*)"',
37
-                     'modified_at' => '<rdf:Description[^>]+?xmp:ModifyDate="([^"]*)"',
38
-                     'label' => '<rdf:Description[^>]+?xmp:Label="([^"]*)"',
39
-                     'credit' => '<rdf:Description[^>]+?photoshop:Credit="([^"]*)"',
40
-                     'source' => '<rdf:Description[^>]+?photoshop:Source="([^"]*)"',
41
-                     'caption_writer' => '<rdf:Description[^>]+?photoshop:CaptionWriter="([^"]*)"',
42
-
43
-                     'photomechanic_prefs' => '<rdf:Description[^>]+?photomechanic:Prefs="([^"]*)"',
44
-                     'photomechanic_pm_version' => '<rdf:Description[^>]+?photomechanic:PMVersion="([^"]*)"',
45
-                     'photomechanic_tagged' => '<rdf:Description[^>]+?photomechanic:Tagged="([^"]*)"',
46
-                     'photomechanic_color_class' => '<rdf:Description[^>]+?photomechanic:ColorClass="([^"]*)"',
47
-
48
-                     'headline' => '<rdf:Description[^>]+?photoshop:Headline="([^"]*)"',
49
-                     'city' => '<rdf:Description[^>]+?photoshop:City="([^"]*)"',
50
-                     'state' => '<rdf:Description[^>]+?photoshop:State="([^"]*)"',
51
-                     'country' => '<rdf:Description[^>]+?photoshop:Country="([^"]*)"',
52
-                     'country_code' => '<rdf:Description[^>]+?Iptc4xmpCore:CountryCode="([^"]*)"',
53
-                     'location' => '<rdf:Description[^>]+?Iptc4xmpCore:Location="([^"]*)"',
54
-                     'title' => '<dc:title>\s*<rdf:Alt>\s*(.*?)\s*<\/rdf:Alt>\s*<\/dc:title>',
55
-                     'description' => '<dc:description>\s*<rdf:Alt>\s*(.*?)\s*<\/rdf:Alt>\s*<\/dc:description>',
56
-                     'creator' => '<dc:creator>\s*<rdf:Seq>\s*(.*?)\s*<\/rdf:Seq>\s*<\/dc:creator>',
57
-                     'keywords' => '<dc:subject>\s*<rdf:Bag>\s*(.*?)\s*<\/rdf:Bag>\s*<\/dc:subject>',
58
-                     'rights' => '<dc:Rights>\s*(.*?)\s*<\/dc:Rights>',
59
-                 ] as $key => $regex) {
34
+                        'creator_email' => '<Iptc4xmpCore:CreatorContactInfo[^>]+?CiEmailWork="([^"]*)"',
35
+                        'owner' => '<rdf:Description[^>]+?aux:OwnerName="([^"]*)"',
36
+                        'created_at' => '<rdf:Description[^>]+?xmp:CreateDate="([^"]*)"',
37
+                        'modified_at' => '<rdf:Description[^>]+?xmp:ModifyDate="([^"]*)"',
38
+                        'label' => '<rdf:Description[^>]+?xmp:Label="([^"]*)"',
39
+                        'credit' => '<rdf:Description[^>]+?photoshop:Credit="([^"]*)"',
40
+                        'source' => '<rdf:Description[^>]+?photoshop:Source="([^"]*)"',
41
+                        'caption_writer' => '<rdf:Description[^>]+?photoshop:CaptionWriter="([^"]*)"',
42
+
43
+                        'photomechanic_prefs' => '<rdf:Description[^>]+?photomechanic:Prefs="([^"]*)"',
44
+                        'photomechanic_pm_version' => '<rdf:Description[^>]+?photomechanic:PMVersion="([^"]*)"',
45
+                        'photomechanic_tagged' => '<rdf:Description[^>]+?photomechanic:Tagged="([^"]*)"',
46
+                        'photomechanic_color_class' => '<rdf:Description[^>]+?photomechanic:ColorClass="([^"]*)"',
47
+
48
+                        'headline' => '<rdf:Description[^>]+?photoshop:Headline="([^"]*)"',
49
+                        'city' => '<rdf:Description[^>]+?photoshop:City="([^"]*)"',
50
+                        'state' => '<rdf:Description[^>]+?photoshop:State="([^"]*)"',
51
+                        'country' => '<rdf:Description[^>]+?photoshop:Country="([^"]*)"',
52
+                        'country_code' => '<rdf:Description[^>]+?Iptc4xmpCore:CountryCode="([^"]*)"',
53
+                        'location' => '<rdf:Description[^>]+?Iptc4xmpCore:Location="([^"]*)"',
54
+                        'title' => '<dc:title>\s*<rdf:Alt>\s*(.*?)\s*<\/rdf:Alt>\s*<\/dc:title>',
55
+                        'description' => '<dc:description>\s*<rdf:Alt>\s*(.*?)\s*<\/rdf:Alt>\s*<\/dc:description>',
56
+                        'creator' => '<dc:creator>\s*<rdf:Seq>\s*(.*?)\s*<\/rdf:Seq>\s*<\/dc:creator>',
57
+                        'keywords' => '<dc:subject>\s*<rdf:Bag>\s*(.*?)\s*<\/rdf:Bag>\s*<\/dc:subject>',
58
+                        'rights' => '<dc:Rights>\s*(.*?)\s*<\/dc:Rights>',
59
+                    ] as $key => $regex) {
60 60
 
61 61
             // get a single text string
62 62
             $xmp_arr[$key] = preg_match("/$regex/is", $xmp_data, $match) ? $match[1] : '';
Please login to merge, or discard this patch.