Skip to content

Commit

Permalink
Fix CS and PHPStan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed May 15, 2023
1 parent 16e1d93 commit e3b35fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/ClientBundle/Action/Grid/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

namespace SolidInvoice\ClientBundle\Action\Grid;

use Ramsey\Uuid\UuidInterface;
use SolidInvoice\ClientBundle\Repository\ClientRepository;
use SolidInvoice\CoreBundle\Response\AjaxResponse;
use SolidInvoice\CoreBundle\Traits\JsonTrait;
Expand Down
4 changes: 2 additions & 2 deletions src/ClientBundle/Repository/ClientRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function archiveClients(array $ids): void
foreach ($ids as $id) {
$client = $this->find($id);

Check warning on line 121 in src/ClientBundle/Repository/ClientRepository.php

View check run for this annotation

Codecov / codecov/patch

src/ClientBundle/Repository/ClientRepository.php#L120-L121

Added lines #L120 - L121 were not covered by tests

if (!$client instanceof Client) {
if (! $client instanceof Client) {

Check warning on line 123 in src/ClientBundle/Repository/ClientRepository.php

View check run for this annotation

Codecov / codecov/patch

src/ClientBundle/Repository/ClientRepository.php#L123

Added line #L123 was not covered by tests
continue;
}

Expand All @@ -146,7 +146,7 @@ public function restoreClients(array $ids): void
foreach ($ids as $id) {
$client = $this->find($id);

Check warning on line 147 in src/ClientBundle/Repository/ClientRepository.php

View check run for this annotation

Codecov / codecov/patch

src/ClientBundle/Repository/ClientRepository.php#L146-L147

Added lines #L146 - L147 were not covered by tests

if (!$client instanceof Client) {
if (! $client instanceof Client) {

Check warning on line 149 in src/ClientBundle/Repository/ClientRepository.php

View check run for this annotation

Codecov / codecov/patch

src/ClientBundle/Repository/ClientRepository.php#L149

Added line #L149 was not covered by tests
continue;
}

Expand Down
3 changes: 3 additions & 0 deletions src/InstallBundle/Action/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

final class Install
{
/**
* @return JsonResponse|Template
*/
public function __invoke(Request $request, ManagerRegistry $doctrine, Migration $migration)
{
if ($request->request->has('action')) {
Expand Down

0 comments on commit e3b35fc

Please sign in to comment.