From c13f5f38c21a4c6a30e9eb906d0b3026820ea965 Mon Sep 17 00:00:00 2001 From: aslan Date: Fri, 15 Mar 2024 16:15:42 +0300 Subject: [PATCH] fix lint --- app/Services/DirectonHtmlBuilder.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/Services/DirectonHtmlBuilder.php b/app/Services/DirectonHtmlBuilder.php index 82cc2ae..4774833 100644 --- a/app/Services/DirectonHtmlBuilder.php +++ b/app/Services/DirectonHtmlBuilder.php @@ -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 = '
'; - foreach ($budget_places_array as $key => $item){ - + foreach ($budget_places_array as $key => $item) { $budget_places .= "$key - $item
"; } @@ -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 = '
'; $profiles .= "

{$educationalInstitution_name}

"; foreach ($educationalInstitution as $profile_name => $profile) { - foreach ($profile as $key => $value) { $profile_out .= "{$key} - {$value['budget_places']}
"; }