Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kurozumi committed Aug 29, 2022
1 parent cb36929 commit 6cebcd7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions src/Eccube/Doctrine/Query/JoinClause.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private function __construct(bool $leftJoin, $join, $alias, $conditionType = nul
*
* @return JoinClause
*/
public static function innerJoin($join, $alias, $conditionType = null, $condition = null, $indexBy = null)
public static function innerJoin($join, $alias, $conditionType = null, $condition = null, $indexBy = null): JoinClause
{
return new JoinClause(false, $join, $alias, $conditionType, $condition, $indexBy);
}
Expand All @@ -95,7 +95,7 @@ public static function innerJoin($join, $alias, $conditionType = null, $conditio
*
* @return JoinClause
*/
public static function leftJoin($join, $alias, $conditionType = null, $condition = null, $indexBy = null)
public static function leftJoin($join, $alias, $conditionType = null, $condition = null, $indexBy = null): JoinClause
{
return new JoinClause(true, $join, $alias, $conditionType, $condition, $indexBy);
}
Expand All @@ -107,7 +107,7 @@ public static function leftJoin($join, $alias, $conditionType = null, $condition
*
* @return $this
*/
public function addWhere(WhereClause $whereClause)
public function addWhere(WhereClause $whereClause): self
{
$this->whereCustomizer->add($whereClause);

Expand All @@ -121,7 +121,7 @@ public function addWhere(WhereClause $whereClause)
*
* @return $this
*/
public function addOrderBy(OrderByClause $orderByClause)
public function addOrderBy(OrderByClause $orderByClause): self
{
$this->orderByCustomizer->add($orderByClause);

Expand All @@ -147,7 +147,7 @@ class JoinClauseWhereCustomizer extends WhereCustomizer
*/
private $whereClauses = [];

public function add(WhereClause $whereClause)
public function add(WhereClause $whereClause): array
{
$this->whereClauses[] = $whereClause;
}
Expand All @@ -158,7 +158,7 @@ public function add(WhereClause $whereClause)
*
* @return WhereClause[]
*/
protected function createStatements($params, $queryKey)
protected function createStatements($params, $queryKey): array
{
return $this->whereClauses;
}
Expand All @@ -168,7 +168,7 @@ protected function createStatements($params, $queryKey)
*
* @return string
*/
public function getQueryKey()
public function getQueryKey(): string
{
return '';
}
Expand All @@ -192,7 +192,7 @@ public function add(OrderByClause $orderByClause)
*
* @return OrderByClause[]
*/
protected function createStatements($params, $queryKey)
protected function createStatements($params, $queryKey): array
{
return $this->orderByClauses;
}
Expand All @@ -202,7 +202,7 @@ protected function createStatements($params, $queryKey)
*
* @return string
*/
public function getQueryKey()
public function getQueryKey(): string
{
return '';
}
Expand Down
6 changes: 3 additions & 3 deletions src/Eccube/Service/PurchaseFlow/InvalidItemException.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ public function __construct($message = null, $messageArgs = [], $warning = false
/**
* @return array
*/
public function getMessageArgs()
public function getMessageArgs(): array
{
return $this->messageArgs;
}

/**
* @return bool
*/
public function isWarning()
public function isWarning(): bool
{
return $this->warning;
}

/**
* @return InvalidItemException
*/
public static function fromProductClass($errorMessage, ProductClass $ProductClass)
public static function fromProductClass($errorMessage, ProductClass $ProductClass): self
{
$productName = $ProductClass->getProduct()->getName();
if ($ProductClass->hasClassCategory1()) {
Expand Down

0 comments on commit 6cebcd7

Please sign in to comment.