fix lint
This commit is contained in:
parent
5202545724
commit
c13f5f38c2
|
@ -14,7 +14,6 @@ class DirectonHtmlBuilder
|
||||||
public function __construct($direction)
|
public function __construct($direction)
|
||||||
{
|
{
|
||||||
$this->direction = $direction;
|
$this->direction = $direction;
|
||||||
|
|
||||||
}
|
}
|
||||||
public function getHTML()
|
public function getHTML()
|
||||||
{
|
{
|
||||||
|
@ -37,15 +36,14 @@ class DirectonHtmlBuilder
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// phpcs:disable
|
||||||
|
|
||||||
$budget_places_array = array();
|
$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_array[$key] = $educationForm['budget_places'];
|
||||||
}
|
}
|
||||||
$budget_places = '<br>';
|
$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>";
|
$budget_places .= "<span style='font-family: Geologica-ExtraLight'>$key</span> - <strong> $item </strong><br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,12 +58,11 @@ class DirectonHtmlBuilder
|
||||||
$profiles = '';
|
$profiles = '';
|
||||||
//if (array_key_exists('educationalInstitution',$direction)) echo '+++++'; else echo '----';
|
//if (array_key_exists('educationalInstitution',$direction)) echo '+++++'; else echo '----';
|
||||||
//exit();
|
//exit();
|
||||||
if (array_key_exists('educationalInstitution',$direction)) {
|
if (array_key_exists('educationalInstitution', $direction)) {
|
||||||
foreach ($direction['educationalInstitution'] as $educationalInstitution_name => $educationalInstitution) {
|
foreach ($direction['educationalInstitution'] as $educationalInstitution_name => $educationalInstitution) {
|
||||||
$profile_out = '<br>';
|
$profile_out = '<br>';
|
||||||
$profiles .= "<p> {$educationalInstitution_name}</p>";
|
$profiles .= "<p> {$educationalInstitution_name}</p>";
|
||||||
foreach ($educationalInstitution as $profile_name => $profile) {
|
foreach ($educationalInstitution as $profile_name => $profile) {
|
||||||
|
|
||||||
foreach ($profile as $key => $value) {
|
foreach ($profile as $key => $value) {
|
||||||
$profile_out .= "<span style='font-family: Geologica-ExtraLight'>{$key}</span> - <strong> {$value['budget_places']} </strong><br>";
|
$profile_out .= "<span style='font-family: Geologica-ExtraLight'>{$key}</span> - <strong> {$value['budget_places']} </strong><br>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue