Skip to content

Commit 0aad71e

Browse files
committed
PHP-Fixer
1 parent ae75966 commit 0aad71e

2 files changed

Lines changed: 7 additions & 10 deletions

File tree

inc/containerdisplaycondition.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ public function checkCondition($item)
428428
$value = $this->fields['value'];
429429
$condition = $this->fields['condition'];
430430

431-
$searchOption = Search::getOptions(get_class($item))[$this->fields['search_option']];
431+
$searchOption = Search::getOptions(get_class($item))[$this->fields['search_option']];
432432

433433
$fields = array_merge($item->fields, $item->input);
434434

inc/field.class.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -967,18 +967,15 @@ public static function showForTab($params)
967967
echo "<div id='{$html_id}'>";
968968
}
969969
$display_condition = new PluginFieldsContainerDisplayCondition();
970-
971-
if($item->fields['type'] == "")
972-
{
973-
$item->fields['type'] = $params['options']['type'];
974-
}
975-
if($item->fields['itilcategories_id'] == "")
976-
{
970+
971+
if ($item->fields['type'] == "") {
972+
$item->fields['type'] = $params['options']['type'];
973+
}
974+
if ($item->fields['itilcategories_id'] == "") {
977975
$item->fields['itilcategories_id'] = $params['options']['itilcategories_id'];
978976
}
979977

980-
if ($display_condition->computeDisplayContainer($item, $c_id))
981-
{
978+
if ($display_condition->computeDisplayContainer($item, $c_id)) {
982979
self::showDomContainer(
983980
$c_id,
984981
$item,

0 commit comments

Comments
 (0)