Completed
Pull Request — master (#846)
by
unknown
02:09
created
model/ConceptMappingPropertyValue.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -169,6 +169,8 @@
 block discarded – undo
169 169
 
170 170
     /**
171 171
      * Return the mapping as a JSKOS-compatible array.
172
+     * @param string $lang
173
+     * @param string $hrefLink
172 174
      * @return array
173 175
      */
174 176
     public function asJskos($queryExVocabs = true, $lang = null, $hrefLink = null)
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $label = $this->getLabel();
38 38
         $notation = $this->getNotation();
39
-        return $notation . $label;
39
+        return $notation.$label;
40 40
     }
41 41
 
42 42
     public function getType()
@@ -188,42 +188,42 @@  discard block
 block discarded – undo
188 188
             'from' => [
189 189
                 'memberSet' => [
190 190
                     [
191
-                        'uri' => (string) $this->source->getUri(),
191
+                        'uri' => (string)$this->source->getUri(),
192 192
                     ]
193 193
                 ]
194 194
             ],
195 195
             'to' => [
196 196
                 'memberSet' => [
197 197
                     [
198
-                        'uri' => (string) $this->getUri()
198
+                        'uri' => (string)$this->getUri()
199 199
                     ]
200 200
                 ]
201 201
             ],
202 202
             // EXTRA
203
-            'description' => gettext($this->type . "_help"), // pop-up text
203
+            'description' => gettext($this->type."_help"), // pop-up text
204 204
             'hrefLink' => $hrefLink, // link to resource as displayed in the UI
205 205
             'lang' => $propertyLang, // TBD: could it be part of the prefLabel?
206
-            'vocabName' => (string) $this->getVocabName(), // vocabulary as displayed in the UI
206
+            'vocabName' => (string)$this->getVocabName(), // vocabulary as displayed in the UI
207 207
             'typeLabel' => gettext($this->type), // a text used in the UI instead of, for example, skos:closeMatch
208 208
         ];
209 209
 
210 210
         $fromScheme = $this->vocab->getDefaultConceptScheme();
211 211
         if (isset($fromScheme)) {
212 212
             $ret['fromScheme'] = [
213
-                'uri' => (string) $fromScheme,
213
+                'uri' => (string)$fromScheme,
214 214
             ];
215 215
         }
216 216
 
217 217
         $exvocab = $this->getExvocab();
218 218
         if (isset($exvocab)) {
219 219
             $ret['toScheme'] = [
220
-                'uri' => (string) $exvocab->getDefaultConceptScheme(),
220
+                'uri' => (string)$exvocab->getDefaultConceptScheme(),
221 221
             ];
222 222
         }
223 223
 
224 224
         $notation = $this->getNotation();
225 225
         if (isset($notation)) {
226
-            $ret['to']['memberSet'][0]['notation'] = (string) $notation;
226
+            $ret['to']['memberSet'][0]['notation'] = (string)$notation;
227 227
         }
228 228
 
229 229
         $label = $this->getLabel($queryExVocabs);
Please login to merge, or discard this patch.