@@ -379,16 +379,16 @@ public static function cssClassFromString(&$value, $default = '') {
379
379
380
380
// Iterate over the array.
381
381
foreach ($ texts as $ pattern => $ strings ) {
382
- foreach ($ strings as $ value => $ class ) {
382
+ foreach ($ strings as $ text => $ class ) {
383
383
switch ($ pattern ) {
384
384
case 'matches ' :
385
- if ($ string === $ value ) {
385
+ if ($ string === $ text ) {
386
386
return $ class ;
387
387
}
388
388
break ;
389
389
390
390
case 'contains ' :
391
- if (strpos (Unicode::strtolower ($ string ), Unicode::strtolower ($ value )) !== FALSE ) {
391
+ if (strpos (Unicode::strtolower ($ string ), Unicode::strtolower ($ text )) !== FALSE ) {
392
392
return $ class ;
393
393
}
394
394
break ;
@@ -680,16 +680,16 @@ public static function glyphiconFromString(&$value, $default = []) {
680
680
681
681
// Iterate over the array.
682
682
foreach ($ texts as $ pattern => $ strings ) {
683
- foreach ($ strings as $ value => $ icon ) {
683
+ foreach ($ strings as $ text => $ icon ) {
684
684
switch ($ pattern ) {
685
685
case 'matches ' :
686
- if ($ string === $ value ) {
686
+ if ($ string === $ text ) {
687
687
return self ::glyphicon ($ icon , $ default );
688
688
}
689
689
break ;
690
690
691
691
case 'contains ' :
692
- if (strpos (Unicode::strtolower ($ string ), Unicode::strtolower ($ value )) !== FALSE ) {
692
+ if (strpos (Unicode::strtolower ($ string ), Unicode::strtolower ($ text )) !== FALSE ) {
693
693
return self ::glyphicon ($ icon , $ default );
694
694
}
695
695
break ;
0 commit comments