Skip to content

Commit

Permalink
Fix typos (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustamwin committed Aug 26, 2023
1 parent 80fc5a6 commit f5e0f63
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Domain/Account/AccountManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ public function delete(Account $account): void
if ($this->accountRepository->hasChildren($account)) {
$name = $account->getName();
throw new AccountDeletionNotPossibleException(
'Deletion not possible, account' . ($name !== null ? ' "' . $name . '"' : '') . ' has children.',
'Deletion isn\'t possible, account' . ($name !== null ? ' "' . $name . '"' : '') . ' has children.',
);
}

if ($this->postingRepository->existsWithAccount($account)) {
$name = $account->getName();
throw new AccountDeletionNotPossibleException(
'Deletion not possible, entries with account' . ($name !== null ? ' "' . $name . '"' : '') . ' exists.',
'Deletion isn\'t possible, entries with account' . ($name !== null ? ' "' . $name . '"' : '') . ' exists.',
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Domain/Posting/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
final readonly class Entry
{
/**
* Don't run directly, use {@see PostingFactory} instead of.
* Don't run directly, use {@see PostingFactory} instead.
*/
public function __construct(
public DateTimeImmutable $date,
Expand Down
2 changes: 1 addition & 1 deletion src/Domain/Posting/Posting.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
final readonly class Posting
{
/**
* Don't run directly, use {@see PostingFactory} instead of.
* Don't run directly, use {@see PostingFactory} instead.
*/
public function __construct(
public PostingId $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Domain/Transaction/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @param Posting[] $postings
* @psalm-param non-empty-list<Posting> $postings
*
* Don't run directly, use {@see TransactionFactory} instead of.
* Don't run directly, use {@see TransactionFactory} instead.
*/
public function __construct(
public TransactionId $id,
Expand Down

0 comments on commit f5e0f63

Please sign in to comment.