From b47d800d1940323bcf6a62e823167fd7e3ecdb5b Mon Sep 17 00:00:00 2001 From: aslan Date: Wed, 27 Mar 2024 09:47:12 +0300 Subject: [PATCH] fix lint --- app/Services/DirectonHtmlBuilder.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/app/Services/DirectonHtmlBuilder.php b/app/Services/DirectonHtmlBuilder.php index f62dd29..5021b7f 100644 --- a/app/Services/DirectonHtmlBuilder.php +++ b/app/Services/DirectonHtmlBuilder.php @@ -28,34 +28,37 @@ class DirectonHtmlBuilder $period = '
'; foreach ($direction['period'] as $key => $el) { - $period .= '' . $key . ' - ' . '' . $el . '
' ; + $period .= '' . $key . ' - ' . '' . $el . + '
' ; } $EGE = '
'; foreach ($direction['entrance_examinations']['ЕГЭ']['Обязательные'] as $key => $el) { - $EGE .= '' . $key . ' - ' . '' . $el . '
' ; + $EGE .= '' . $key . ' - ' . '' . $el . + '
' ; } //dd($direction); $po_viboru = '
'; - if(array_key_exists('Предметы по выбору', $direction['entrance_examinations']['ЕГЭ'])){ + if (array_key_exists('Предметы по выбору', $direction['entrance_examinations']['ЕГЭ'])) { foreach ($direction['entrance_examinations']['ЕГЭ']['Предметы по выбору'] as $key => $el) { - $po_viboru .= '' . $key . ' - ' . '' . $el . '
' ; + $po_viboru .= '' . $key . ' - ' . '' . + $el . '
' ; } } $SPO = '
'; - if(array_key_exists('СПО', $direction['entrance_examinations'])){ + if (array_key_exists('СПО', $direction['entrance_examinations'])) { foreach ($direction['entrance_examinations']['СПО']['Обязательные'] as $key => $el) { - $SPO .= '' . $key . ' - ' . '' . $el . '
' ; + $SPO .= '' . $key . ' - ' . '' . $el . + '
' ; } } - + // phpcs:disable $mgtu = ''; - if(array_key_exists('МГТУ', $direction['budget_places'])){ - + if (array_key_exists('МГТУ', $direction['budget_places'])) { foreach ($direction['budget_places']['МГТУ'] as $profile_name => $profile) { - $profile_content =''; - foreach($profile as $forms => $budget_places){ + $profile_content = ''; + foreach ($profile as $forms => $budget_places) { $profile_content .= " {$forms} - " . " {$budget_places}
"; } $mgtu .= "