Skip to content

Commit

Permalink
remove malfunctions
Browse files Browse the repository at this point in the history
Additional correction because there was a change omission
  • Loading branch information
s-ohnishi committed Jul 20, 2023
1 parent 28b66fd commit 7e6e365
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/CompaniesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function searchAction(): void
$this->request->getPost()
);

$this->persistent->searchParams = $query->getParams();
$this->persistent->searchParams = array('di'=>null) + $query->getParams();

Check warning on line 52 in src/Controllers/CompaniesController.php

View check run for this annotation

Codecov / codecov/patch

src/Controllers/CompaniesController.php#L52

Added line #L52 was not covered by tests
}

$parameters = [];
Expand All @@ -71,7 +71,7 @@ public function searchAction(): void

$paginator = new Paginator([
'model' => Companies::class,
'data' => $companies,
'parameters' => $parameters,

Check warning on line 74 in src/Controllers/CompaniesController.php

View check run for this annotation

Codecov / codecov/patch

src/Controllers/CompaniesController.php#L74

Added line #L74 was not covered by tests
'limit' => 10,
'page' => $this->request->getQuery('page', 'int', 1),
]);
Expand Down
3 changes: 1 addition & 2 deletions src/Controllers/ProductsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public function searchAction(): void
$this->request->getPost()
);

//$this->persistent->searchParams = $query->getParams();
$this->persistent->searchParams = array('di'=>null) + $query->getParams();
}

Expand All @@ -78,7 +77,7 @@ public function searchAction(): void

$paginator = new Paginator([
'model' => Products::class,
"parameters" => $parameters,
'parameters' => $parameters,

Check warning on line 80 in src/Controllers/ProductsController.php

View check run for this annotation

Codecov / codecov/patch

src/Controllers/ProductsController.php#L80

Added line #L80 was not covered by tests
'limit' => 10,
'page' => $this->request->getQuery('page', 'int', 1),
]);
Expand Down
4 changes: 2 additions & 2 deletions src/Controllers/ProducttypesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function searchAction(): void
$this->request->getPost()
);

$this->persistent->searchParams = $query->getParams();
$this->persistent->searchParams = array('di'=>null) + $query->getParams();

Check warning on line 57 in src/Controllers/ProducttypesController.php

View check run for this annotation

Codecov / codecov/patch

src/Controllers/ProducttypesController.php#L57

Added line #L57 was not covered by tests
}

$parameters = [];
Expand All @@ -76,7 +76,7 @@ public function searchAction(): void

$paginator = new Paginator([
'model' => ProductTypes::class,
'data' => $productTypes,
'parameters' => $parameters,

Check warning on line 79 in src/Controllers/ProducttypesController.php

View check run for this annotation

Codecov / codecov/patch

src/Controllers/ProducttypesController.php#L79

Added line #L79 was not covered by tests
'limit' => 10,
'page' => $this->request->getQuery('page', 'int', 1),
]);
Expand Down

0 comments on commit 7e6e365

Please sign in to comment.