Completed
Pull Request — master (#741)
by Henri
04:39
created
model/ConceptProperty.php 1 patch
Spacing   +4 added lines, -4 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, $super=null, $notsort=false)
25
+    public function __construct($prop, $label, $super = null, $notsort = false)
26 26
     {
27 27
         $this->prop = $prop;
28 28
         $this->label = $label;
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function getDescription()
63 63
     {
64
-        $helpprop = $this->prop . "_help";
64
+        $helpprop = $this->prop."_help";
65 65
 
66 66
         return gettext($helpprop); // can't use string constant, it'd be picked up by xgettext
67 67
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
     public function addValue($value)
82 82
     {
83
-        $this->values[$value->getNotation() . $value->getLabel() . $value->getUri()] = $value;
83
+        $this->values[$value->getNotation().$value->getLabel().$value->getUri()] = $value;
84 84
         $this->is_sorted = false;
85 85
     }
86 86
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         if (!empty($this->values)) {
90 90
             uksort($this->values, function($a, $b) {
91
-                return $this->sort_by_notation ? strnatcasecmp($a, $b) : strcoll(strtolower($a),strtolower($b));
91
+                return $this->sort_by_notation ? strnatcasecmp($a, $b) : strcoll(strtolower($a), strtolower($b));
92 92
             });
93 93
         }
94 94
         $this->is_sorted = true;
Please login to merge, or discard this patch.