fix lint
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Successful in 1m48s Details
Tests & Lint & Deploy to Railway / deploy (push) Successful in 35s Details

This commit is contained in:
aslan 2024-03-15 16:15:42 +03:00
parent 5202545724
commit c13f5f38c2
1 changed files with 4 additions and 7 deletions

View File

@ -14,7 +14,6 @@ class DirectonHtmlBuilder
public function __construct($direction)
{
$this->direction = $direction;
}
public function getHTML()
{
@ -37,15 +36,14 @@ class DirectonHtmlBuilder
// phpcs:disable
$budget_places_array = array();
foreach ($direction['educationForms'] as $key => $educationForm){
foreach ($direction['educationForms'] as $key => $educationForm) {
$budget_places_array[$key] = $educationForm['budget_places'];
}
$budget_places = '<br>';
foreach ($budget_places_array as $key => $item){
foreach ($budget_places_array as $key => $item) {
$budget_places .= "<span style='font-family: Geologica-ExtraLight'>$key</span> - <strong> $item </strong><br>";
}
@ -60,12 +58,11 @@ class DirectonHtmlBuilder
$profiles = '';
//if (array_key_exists('educationalInstitution',$direction)) echo '+++++'; else echo '----';
//exit();
if (array_key_exists('educationalInstitution',$direction)) {
if (array_key_exists('educationalInstitution', $direction)) {
foreach ($direction['educationalInstitution'] as $educationalInstitution_name => $educationalInstitution) {
$profile_out = '<br>';
$profiles .= "<p> {$educationalInstitution_name}</p>";
foreach ($educationalInstitution as $profile_name => $profile) {
foreach ($profile as $key => $value) {
$profile_out .= "<span style='font-family: Geologica-ExtraLight'>{$key}</span> - <strong> {$value['budget_places']} </strong><br>";
}