@@ -629,14 +629,14 @@ |
||
629 | 629 | $unixTS = $this->getUnixValue(); |
630 | 630 | |
631 | 631 | if ($now > $unixTS) { |
632 | - $difference = $now - $unixTS; |
|
632 | + $difference = $now-$unixTS; |
|
633 | 633 | $tense = 'ago'; |
634 | 634 | } else { |
635 | - $difference = $unixTS - $now; |
|
635 | + $difference = $unixTS-$now; |
|
636 | 636 | $tense = 'from now'; |
637 | 637 | } |
638 | 638 | |
639 | - for ($i = 0; $difference >= $lengths[$i] && $i < count($lengths) - 1; ++$i) { |
|
639 | + for ($i = 0; $difference >= $lengths[$i] && $i < count($lengths)-1; ++$i) { |
|
640 | 640 | $difference /= $lengths[$i]; |
641 | 641 | } |
642 | 642 |
@@ -98,7 +98,7 @@ |
||
98 | 98 | * |
99 | 99 | * @since 1.0 |
100 | 100 | */ |
101 | - protected $dataLabels = array('OID' => 'DEnum ID#','name' => 'Name'); |
|
101 | + protected $dataLabels = array('OID' => 'DEnum ID#', 'name' => 'Name'); |
|
102 | 102 | |
103 | 103 | /** |
104 | 104 | * The message to display to the user when validation fails. |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * |
87 | 87 | * @since 1.0 |
88 | 88 | */ |
89 | - protected $dataLabels = array('OID' => 'Sequence ID#','prefix' => 'Sequence prefix','sequence' => 'Sequence number'); |
|
89 | + protected $dataLabels = array('OID' => 'Sequence ID#', 'prefix' => 'Sequence prefix', 'sequence' => 'Sequence number'); |
|
90 | 90 | |
91 | 91 | /** |
92 | 92 | * The message to display to the user when validation fails. |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | $this->set('sequence', 0); |
175 | 175 | } |
176 | 176 | |
177 | - $this->set('sequence', $this->get('sequence') + 1); |
|
177 | + $this->set('sequence', $this->get('sequence')+1); |
|
178 | 178 | $this->save(); |
179 | 179 | } |
180 | 180 |
@@ -88,7 +88,7 @@ |
||
88 | 88 | * |
89 | 89 | * @since 1.0 |
90 | 90 | */ |
91 | - protected $dataLabels = array('OID' => 'DEnumItem ID#','value' => 'Dropdown value'); |
|
91 | + protected $dataLabels = array('OID' => 'DEnumItem ID#', 'value' => 'Dropdown value'); |
|
92 | 92 | |
93 | 93 | /** |
94 | 94 | * The message to display to the user when validation fails. |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * |
109 | 109 | * @since 1.0 |
110 | 110 | */ |
111 | - protected $dataLabels = array('OID' => 'RelationLookup ID#','leftID' => 'Left BO ID#','rightID' => 'Right BO ID#'); |
|
111 | + protected $dataLabels = array('OID' => 'RelationLookup ID#', 'leftID' => 'Left BO ID#', 'rightID' => 'Right BO ID#'); |
|
112 | 112 | |
113 | 113 | /** |
114 | 114 | * The message to display to the user when validation fails. |
@@ -169,7 +169,7 @@ |
||
169 | 169 | * |
170 | 170 | * @since 1.0 |
171 | 171 | */ |
172 | - private $allowableRelationTypes = array('MANY-TO-ONE','ONE-TO-MANY','ONE-TO-ONE','MANY-TO-MANY'); |
|
172 | + private $allowableRelationTypes = array('MANY-TO-ONE', 'ONE-TO-MANY', 'ONE-TO-ONE', 'MANY-TO-MANY'); |
|
173 | 173 | |
174 | 174 | /** |
175 | 175 | * The object ID (OID) value of the related object. In the special case of a MANY-TO-MANY |