Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Fix PSR2 and phpstan error (level 7) #2
Browse files Browse the repository at this point in the history
  • Loading branch information
callapa committed Jan 28, 2020
1 parent 070525e commit 0ee7494
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Centreon/Domain/Option/OptionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class OptionService implements OptionServiceInterface
/**
* @param OptionRepositoryInterface $repository
*/
public function __construct (OptionRepositoryInterface $repository)
public function __construct(OptionRepositoryInterface $repository)
{
$this->repository = $repository;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Centreon/Infrastructure/Option/OptionRepositoryRDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class OptionRepositoryRDB extends AbstractRepositoryDRB implements OptionReposit
/**
* @param DatabaseConnection $db
*/
public function __construct (DatabaseConnection $db)
public function __construct(DatabaseConnection $db)
{
$this->db = $db;
}
Expand All @@ -57,7 +57,7 @@ public function findSelectedOptions(array $optionsToFind): array

$optionsFound = [];
while (false !== ($option = $statement->fetch(\PDO::FETCH_ASSOC))) {
$optionsFound[$option['key']] = $option['value'];
$optionsFound[(string) $option['key']] = (string) $option['value'];
}
return $optionsFound;
}
Expand Down

0 comments on commit 0ee7494

Please sign in to comment.