Skip to content

Commit 02ec6b4

Browse files
committed
fix: rector lint
1 parent e774729 commit 02ec6b4

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

inc/field.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ public static function showForTab($params)
973973
$itemtypes = PluginFieldsContainer::getUsedItemtypes($type, true);
974974

975975
//if no dom containers defined for this itemtype, do nothing (in_array case insensitive)
976-
if (!in_array(strtolower((string) $item::getType()), array_map(strtolower(...), $itemtypes))) {
976+
if (!in_array(strtolower((string) $item::getType()), array_map(strtolower(...), $itemtypes), true)) {
977977
return;
978978
}
979979

inc/inventory.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static function updateInventory($params = [])
3838
) {
3939
$availaibleItemType = ['Computer', 'Printer', 'NetworkEquipment'];
4040
foreach (array_keys($params['inventory_data']) as $itemtype) {
41-
if (in_array($itemtype, $availaibleItemType)) {
41+
if (in_array($itemtype, $availaibleItemType, true)) {
4242
$items_id = 0;
4343
//retrieve items id switch itemtype
4444
switch ($itemtype) {

inc/migration.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ private static function getCustomFieldsInContainerTable(
197197

198198
return array_filter(
199199
$fields,
200-
fn(string $field) => !in_array($field, $basic_fields),
200+
fn(string $field) => !in_array($field, $basic_fields, true),
201201
);
202202
}
203203
}

0 commit comments

Comments
 (0)