Completed
Pull Request — master (#995)
by Osma
02:30
created
model/ConceptProperty.php 3 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -21,6 +21,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.