@@ -30,7 +30,7 @@ discard block  | 
                                                    ||
| 30 | 30 | * @param string $super URI of superproperty  | 
                                                        
| 31 | 31 | * @param boolean $sort_by_notation whether to sort the property values by their notation code  | 
                                                        
| 32 | 32 | */  | 
                                                        
| 33 | - public function __construct($model, $prop, $label, $tooltip=null, $super=null, $sort_by_notation=false)  | 
                                                        |
| 33 | + public function __construct($model, $prop, $label, $tooltip = null, $super = null, $sort_by_notation = false)  | 
                                                        |
| 34 | 34 |      { | 
                                                        
| 35 | 35 | $this->model = $model;  | 
                                                        
| 36 | 36 | $this->prop = $prop;  | 
                                                        
@@ -79,7 +79,7 @@ discard block  | 
                                                    ||
| 79 | 79 | */  | 
                                                        
| 80 | 80 | public function getDescription()  | 
                                                        
| 81 | 81 |      { | 
                                                        
| 82 | - $helpprop = $this->prop . "_help";  | 
                                                        |
| 82 | + $helpprop = $this->prop."_help";  | 
                                                        |
| 83 | 83 | |
| 84 | 84 | // see if we have a translation with the help text  | 
                                                        
| 85 | 85 | $help = $this->model->getText($helpprop);  | 
                                                        
@@ -110,7 +110,7 @@ discard block  | 
                                                    ||
| 110 | 110 | |
| 111 | 111 | public function addValue($value)  | 
                                                        
| 112 | 112 |      { | 
                                                        
| 113 | -        $this->values[ltrim($value->getNotation() . ' ') . $value->getLabel() . rtrim(' ' . $value->getUri())] = $value; | 
                                                        |
| 113 | +        $this->values[ltrim($value->getNotation().' ').$value->getLabel().rtrim(' '.$value->getUri())] = $value; | 
                                                        |
| 114 | 114 | $this->is_sorted = false;  | 
                                                        
| 115 | 115 | }  | 
                                                        
| 116 | 116 | |
@@ -120,7 +120,7 @@ discard block  | 
                                                    ||
| 120 | 120 | # Note that getLabel() returns URIs in case of no label and may return a prefixed value which affects sorting  | 
                                                        
| 121 | 121 |          if (!empty($this->values)) { | 
                                                        
| 122 | 122 |              if ($this->sort_by_notation) { | 
                                                        
| 123 | -                uasort($this->values, function ($a, $b) { | 
                                                        |
| 123 | +                uasort($this->values, function($a, $b) { | 
                                                        |
| 124 | 124 | $anot = $a->getNotation();  | 
                                                        
| 125 | 125 | $bnot = $b->getNotation();  | 
                                                        
| 126 | 126 |                      if ($anot == null) { | 
                                                        
@@ -141,7 +141,7 @@ discard block  | 
                                                    ||
| 141 | 141 | }  | 
                                                        
| 142 | 142 | });  | 
                                                        
| 143 | 143 |              } else { | 
                                                        
| 144 | -                uasort($this->values, function ($a, $b) { | 
                                                        |
| 144 | +                uasort($this->values, function($a, $b) { | 
                                                        |
| 145 | 145 | // assume that sort keys are unique  | 
                                                        
| 146 | 146 | return strcoll($a->getSortKey(), $b->getSortKey());  | 
                                                        
| 147 | 147 | });  | 
                                                        
@@ -36,7 +36,7 @@ discard block  | 
                                                    ||
| 36 | 36 |      { | 
                                                        
| 37 | 37 | $label = $this->getLabel();  | 
                                                        
| 38 | 38 | $notation = $this->getNotation();  | 
                                                        
| 39 | - return ltrim($notation . ' ') . $label;  | 
                                                        |
| 39 | + return ltrim($notation.' ').$label;  | 
                                                        |
| 40 | 40 | }  | 
                                                        
| 41 | 41 | |
| 42 | 42 | public function getType()  | 
                                                        
@@ -57,7 +57,7 @@ discard block  | 
                                                    ||
| 57 | 57 | |
| 58 | 58 | public function getSortKey()  | 
                                                        
| 59 | 59 |      { | 
                                                        
| 60 | - return strtolower($this->getVocabName() . ": " . $this->getLabel());  | 
                                                        |
| 60 | + return strtolower($this->getVocabName().": ".$this->getLabel());  | 
                                                        |
| 61 | 61 | }  | 
                                                        
| 62 | 62 | |
| 63 | 63 | private function queryLabel($lang = '', $queryExVocabs = true)  | 
                                                        
@@ -186,25 +186,25 @@ discard block  | 
                                                    ||
| 186 | 186 | 'from' => [  | 
                                                        
| 187 | 187 | 'memberSet' => [  | 
                                                        
| 188 | 188 | [  | 
                                                        
| 189 | - 'uri' => (string) $this->source->getUri(),  | 
                                                        |
| 189 | + 'uri' => (string)$this->source->getUri(),  | 
                                                        |
| 190 | 190 | ]  | 
                                                        
| 191 | 191 | ]  | 
                                                        
| 192 | 192 | ],  | 
                                                        
| 193 | 193 | 'to' => [  | 
                                                        
| 194 | 194 | 'memberSet' => [  | 
                                                        
| 195 | 195 | [  | 
                                                        
| 196 | - 'uri' => (string) $this->getUri()  | 
                                                        |
| 196 | + 'uri' => (string)$this->getUri()  | 
                                                        |
| 197 | 197 | ]  | 
                                                        
| 198 | 198 | ]  | 
                                                        
| 199 | 199 | ],  | 
                                                        
| 200 | 200 | // EXTRA  | 
                                                        
| 201 | 201 | 'hrefLink' => $hrefLink, // link to resource as displayed in the UI  | 
                                                        
| 202 | 202 | 'lang' => $propertyLang, // TBD: could it be part of the prefLabel?  | 
                                                        
| 203 | - 'vocabName' => (string) $this->getVocabName(), // vocabulary as displayed in the UI  | 
                                                        |
| 203 | + 'vocabName' => (string)$this->getVocabName(), // vocabulary as displayed in the UI  | 
                                                        |
| 204 | 204 | 'typeLabel' => $this->model->getText($this->type), // a text used in the UI instead of, for example, skos:closeMatch  | 
                                                        
| 205 | 205 | ];  | 
                                                        
| 206 | 206 | |
| 207 | - $helpprop = $this->type . "_help";  | 
                                                        |
| 207 | + $helpprop = $this->type."_help";  | 
                                                        |
| 208 | 208 | // see if we have a translation for the property help text  | 
                                                        
| 209 | 209 | $help = $this->model->getText($helpprop);  | 
                                                        
| 210 | 210 |          if ($help != $helpprop) { | 
                                                        
@@ -214,20 +214,20 @@ discard block  | 
                                                    ||
| 214 | 214 | $fromScheme = $this->vocab->getDefaultConceptScheme();  | 
                                                        
| 215 | 215 |          if (isset($fromScheme)) { | 
                                                        
| 216 | 216 | $ret['fromScheme'] = [  | 
                                                        
| 217 | - 'uri' => (string) $fromScheme,  | 
                                                        |
| 217 | + 'uri' => (string)$fromScheme,  | 
                                                        |
| 218 | 218 | ];  | 
                                                        
| 219 | 219 | }  | 
                                                        
| 220 | 220 | |
| 221 | 221 | $exvocab = $this->getExvocab();  | 
                                                        
| 222 | 222 |          if (isset($exvocab)) { | 
                                                        
| 223 | 223 | $ret['toScheme'] = [  | 
                                                        
| 224 | - 'uri' => (string) $exvocab->getDefaultConceptScheme(),  | 
                                                        |
| 224 | + 'uri' => (string)$exvocab->getDefaultConceptScheme(),  | 
                                                        |
| 225 | 225 | ];  | 
                                                        
| 226 | 226 | }  | 
                                                        
| 227 | 227 | |
| 228 | 228 | $notation = $this->getNotation();  | 
                                                        
| 229 | 229 |          if (isset($notation)) { | 
                                                        
| 230 | - $ret['to']['memberSet'][0]['notation'] = (string) $notation;  | 
                                                        |
| 230 | + $ret['to']['memberSet'][0]['notation'] = (string)$notation;  | 
                                                        |
| 231 | 231 | }  | 
                                                        
| 232 | 232 | |
| 233 | 233 | $label = $this->getLabel($lang, $queryExVocabs);  |