@@ -21,6 +21,7 @@ |
||
| 21 | 21 | * Label parameter seems to be optional in this phase. |
| 22 | 22 | * @param string $prop property type eg. 'rdf:type'. |
| 23 | 23 | * @param string $label |
| 24 | + * @param EasyRdf\Literal $help |
|
| 24 | 25 | */ |
| 25 | 26 | public function __construct($prop, $label, $help=null, $super=null, $sort_by_notation=false) |
| 26 | 27 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | return $help; |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - // if not, see if there was a comment/definition for the property in the graph |
|
| 73 | + // if not, see if there was a comment/definition for the property in the graph |
|
| 74 | 74 | if ($this->help !== null) { |
| 75 | 75 | return $this->help; |
| 76 | 76 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * @param string $prop property type eg. 'rdf:type'. |
| 23 | 23 | * @param string $label |
| 24 | 24 | */ |
| 25 | - public function __construct($prop, $label, $help=null, $super=null, $sort_by_notation=false) |
|
| 25 | + public function __construct($prop, $label, $help = null, $super = null, $sort_by_notation = false) |
|
| 26 | 26 | { |
| 27 | 27 | $this->prop = $prop; |
| 28 | 28 | $this->label = $label; |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function getDescription() |
| 64 | 64 | { |
| 65 | - $helpprop = $this->prop . "_help"; |
|
| 65 | + $helpprop = $this->prop."_help"; |
|
| 66 | 66 | |
| 67 | 67 | // see if we have a translation with the help text |
| 68 | 68 | $help = gettext($helpprop); |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | public function addValue($value) |
| 95 | 95 | { |
| 96 | - $this->values[ltrim($value->getNotation() . ' ') . $value->getLabel() . rtrim(' ' . $value->getUri())] = $value; |
|
| 96 | + $this->values[ltrim($value->getNotation().' ').$value->getLabel().rtrim(' '.$value->getUri())] = $value; |
|
| 97 | 97 | $this->is_sorted = false; |
| 98 | 98 | } |
| 99 | 99 | |