Passed
Branch master (3c42dd)
by Jakob
02:44
created
src/JSKOS/RDF/RDFMapping.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,9 @@  discard block
 block discarded – undo
106 106
                 } elseif ($type == 'literal') {
107 107
                     foreach ($rdf->allLiterals($rdfProperty) as $literal) {
108 108
                         $value = static::cleanString($literal);
109
-                        if (!isset($value)) continue;
109
+                        if (!isset($value)) {
110
+                            continue;
111
+                        }
110 112
 
111 113
                         if ( $literal->getLang() ) {
112 114
                             $language = $literal->getLang();
@@ -131,7 +133,9 @@  discard block
 block discarded – undo
131 133
                 } elseif ($type == 'plain') {
132 134
                     foreach ($rdf->allLiterals($rdfProperty) as $literal) {
133 135
                         $value = static::cleanString($literal);
134
-                        if (!isset($value)) continue;
136
+                        if (!isset($value)) {
137
+                            continue;
138
+                        }
135 139
 
136 140
                         if (isset($mapping['pattern']) && !preg_match($mapping['pattern'], $value)) {
137 141
                             continue;
Please login to merge, or discard this patch.