File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -144,16 +144,16 @@ public static function listData()
144
144
return $ result ;
145
145
}
146
146
147
- /**
147
+ /**
148
148
* Get label by value
149
149
* @var string value
150
150
* @return string label
151
151
*/
152
152
public static function getLabel ($ value )
153
153
{
154
- $ list = self :: listData () ;
154
+ $ list = static :: $ list ;
155
155
if (isset ($ list [$ value ])) {
156
- return Yii::t (self ::$ messageCategory , $ list [$ value ]);
156
+ return Yii::t (static ::$ messageCategory , $ list [$ value ]);
157
157
}
158
158
return null ;
159
159
}
@@ -244,7 +244,7 @@ public function getValue()
244
244
* @param string $name The name of the value.
245
245
*
246
246
* @return boolean If the name is valid for this type, `true` is returned.
247
- * Otherwise, the name is not valid and `false` is returned.
247
+ * Otherwise, the name is not valid and `false` is returned.
248
248
*/
249
249
public static function isValidName ($ name )
250
250
{
@@ -259,7 +259,7 @@ public static function isValidName($name)
259
259
* @param string $value The value.
260
260
*
261
261
* @return boolean If the value is valid for this type, `true` is returned.
262
- * Otherwise, the value is not valid and `false` is returned.
262
+ * Otherwise, the value is not valid and `false` is returned.
263
263
*/
264
264
public static function isValidValue ($ value )
265
265
{
You can’t perform that action at this time.
0 commit comments