Skip to content

Commit

Permalink
Fix PSR-12 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
levitanoff committed Apr 2, 2024
1 parent c983bfa commit 3e92a0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions code/src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static function validate(string $bracket): string
$counter = 0;
$bracket = preg_replace('/[^()]/', '', $bracket);

if($bracket === '') {
if ($bracket === '') {
throw new Exception("Пустая строка", 400);
}

Expand All @@ -25,7 +25,7 @@ public static function validate(string $bracket): string
$counter--;
}

if($counter < 0) {
if ($counter < 0) {
throw new Exception("Не хватает открывающей скобки", 400);
}
}
Expand All @@ -36,4 +36,4 @@ public static function validate(string $bracket): string

return $bracket;
}
}
}
2 changes: 1 addition & 1 deletion code/src/index.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

declare(strict_types=1);

use Dmatrenin\Bracket\Application;

require_once "../vendor/autoload.php";

Application::run();

0 comments on commit 3e92a0f

Please sign in to comment.