mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 11:54:32 +02:00
Use str_contains and similar instead of strpos
This commit is contained in:
parent
508de10191
commit
1dbf36b86b
16 changed files with 18 additions and 19 deletions
|
@ -138,7 +138,7 @@ final class SIUnitType extends AbstractType implements DataMapperInterface
|
|||
|
||||
//Check if we need to make this thing small
|
||||
if (isset($options['attr']['class'])) {
|
||||
$view->vars['sm'] = false !== strpos($options['attr']['class'], 'form-control-sm');
|
||||
$view->vars['sm'] = str_contains($options['attr']['class'], 'form-control-sm');
|
||||
}
|
||||
|
||||
$view->vars['unit'] = $options['unit'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue