fix lint
This commit is contained in:
parent
bd897c90f5
commit
6f50c7ff07
|
@ -27,7 +27,7 @@ class DirectonHtmlBuilder
|
||||||
}
|
}
|
||||||
$education_form = substr($education_form, 0, -2);
|
$education_form = substr($education_form, 0, -2);
|
||||||
|
|
||||||
|
// phpcs:disable
|
||||||
$period = '<br>';
|
$period = '<br>';
|
||||||
foreach ($direction['period'] as $key => $el) {
|
foreach ($direction['period'] as $key => $el) {
|
||||||
$period .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>';
|
$period .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>';
|
||||||
|
@ -47,8 +47,6 @@ class DirectonHtmlBuilder
|
||||||
$paid_cost .= '</div></div>';
|
$paid_cost .= '</div></div>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$EGE = '<div class="col-auto ">
|
$EGE = '<div class="col-auto ">
|
||||||
<strong> ЕГЭ </strong>
|
<strong> ЕГЭ </strong>
|
||||||
<br>
|
<br>
|
||||||
|
@ -80,7 +78,6 @@ class DirectonHtmlBuilder
|
||||||
<br>
|
<br>
|
||||||
<div class=" d-inline-block p-2 text-start">';
|
<div class=" d-inline-block p-2 text-start">';
|
||||||
if (array_key_exists('СПО', $direction['entrance_examinations'])) {
|
if (array_key_exists('СПО', $direction['entrance_examinations'])) {
|
||||||
|
|
||||||
foreach ($direction['entrance_examinations']['СПО']['Обязательные'] as $key => $el) {
|
foreach ($direction['entrance_examinations']['СПО']['Обязательные'] as $key => $el) {
|
||||||
$SPO .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>';
|
$SPO .= '<span style="font-family: Geologica-ExtraLight">' . $key . '</span> - ' . '<strong>' . $el . '</strong><br>';
|
||||||
}
|
}
|
||||||
|
@ -92,7 +89,6 @@ class DirectonHtmlBuilder
|
||||||
|
|
||||||
$mgtu = '';
|
$mgtu = '';
|
||||||
if (array_key_exists('МГТУ', $direction['budget_places'])) {
|
if (array_key_exists('МГТУ', $direction['budget_places'])) {
|
||||||
|
|
||||||
foreach ($direction['budget_places']['МГТУ'] as $profile_name => $profile) {
|
foreach ($direction['budget_places']['МГТУ'] as $profile_name => $profile) {
|
||||||
$profile_content = '';
|
$profile_content = '';
|
||||||
foreach ($profile as $forms => $budget_places) {
|
foreach ($profile as $forms => $budget_places) {
|
||||||
|
@ -122,12 +118,8 @@ class DirectonHtmlBuilder
|
||||||
// dd($direction);
|
// dd($direction);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$filial = '';
|
$filial = '';
|
||||||
if (array_key_exists('Филиал МГТУ (пос. Яблоновский)', $direction['budget_places'])) {
|
if (array_key_exists('Филиал МГТУ (пос. Яблоновский)', $direction['budget_places'])) {
|
||||||
|
|
||||||
foreach ($direction['budget_places']['Филиал МГТУ (пос. Яблоновский)'] as $profile_name => $profile) {
|
foreach ($direction['budget_places']['Филиал МГТУ (пос. Яблоновский)'] as $profile_name => $profile) {
|
||||||
$profile_content = '';
|
$profile_content = '';
|
||||||
foreach ($profile as $forms => $budget_places) {
|
foreach ($profile as $forms => $budget_places) {
|
||||||
|
@ -150,14 +142,12 @@ class DirectonHtmlBuilder
|
||||||
</div>
|
</div>
|
||||||
</div>";
|
</div>";
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$filial = '<div class="w-100 h-100 d-flex justify-content-center align-items-center" >Этой специальности нет в филиалле</div>';
|
$filial = '<div class="w-100 h-100 d-flex justify-content-center align-items-center" >Этой специальности нет в филиалле</div>';
|
||||||
}
|
}
|
||||||
$paid_places_content = '';
|
$paid_places_content = '';
|
||||||
foreach ($direction['paid_places'] as $institution) {
|
foreach ($direction['paid_places'] as $institution) {
|
||||||
foreach ($institution as $profile_name => $profile) {
|
foreach ($institution as $profile_name => $profile) {
|
||||||
|
|
||||||
$profile_content = '';
|
$profile_content = '';
|
||||||
foreach ($profile as $forms => $paid_places) {
|
foreach ($profile as $forms => $paid_places) {
|
||||||
$profile_content .= "<strong> {$forms} </strong> - " . "<span style=\'font-family: Geologica-ExtraLight\'> {$paid_places} </span><br>";
|
$profile_content .= "<strong> {$forms} </strong> - " . "<span style=\'font-family: Geologica-ExtraLight\'> {$paid_places} </span><br>";
|
||||||
|
@ -178,7 +168,6 @@ class DirectonHtmlBuilder
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>";
|
</div>";
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue