Formatting code.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-04-17 10:08:03 +02:00
parent 5f57ba54a4
commit 102e8447a1
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ class Program {
int $tot_width = 30;
char $symbol = '-';
int $middle = (int) round($tot_width/2);
int $length_word = strlen($word);
int $length_word = strlen($word);
int $middle_word = (int) round($length_word / 2);
int $last_position = $middle + $middle_word;
int $number_of_spaces = $middle - $middle_word;

View File

@ -9,7 +9,7 @@ class Operations {
break;
case 'SUB':
return int() using ($x, $y) {
return $x - $y;
return $x - $y;
};
break;
default: