Skip to content

Commit d38f53f

Browse files
committed
Ran stylefixer and added parent::__construct() call to Specification class for good measure
1 parent b647ff2 commit d38f53f

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

src/AbstractSpecification.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ public function __construct($field, $dqlAlias = null)
2424
$this->dqlAlias = $dqlAlias;
2525
}
2626

27+
/**
28+
* {@inheritdoc}
29+
*/
30+
public function isSatisfiedBy($value)
31+
{
32+
return true;
33+
}
34+
2735
/**
2836
* Create a formatted string for the given property prefixed with the DQL alias.
2937
*
@@ -56,12 +64,4 @@ protected function createAliasedName($value, $dqlAlias)
5664

5765
return sprintf('%s.%s', $dqlAlias, $value);
5866
}
59-
60-
/**
61-
* {@inheritdoc}
62-
*/
63-
public function isSatisfiedBy($value)
64-
{
65-
return true;
66-
}
6767
}

src/Query/Join.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public function __construct($field, $newAlias, $dqlAlias = null)
6060
/**
6161
* @param string $type
6262
*
63-
* @return $this
64-
*
6563
* @throws InvalidArgumentException
64+
*
65+
* @return $this
6666
*/
6767
public function setType($type)
6868
{
@@ -75,7 +75,7 @@ public function setType($type)
7575
}
7676

7777
$this->type = $type;
78-
78+
7979
return $this;
8080
}
8181

src/Query/OrderBy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ class OrderBy extends AbstractSpecification
1414
const ASC = 'ASC';
1515
const DESC = 'DESC';
1616

17-
private static $validOrder = [self::ASC, self::DESC];
18-
1917
/**
2018
* @var string
2119
*/
2220
protected $order;
2321

22+
private static $validOrder = [self::ASC, self::DESC];
23+
2424
/**
2525
* @param string $field
2626
* @param string $order

src/Specification.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class Specification extends ArrayCollection implements SpecificationInterface
2727
*/
2828
public function __construct(array $elements = [])
2929
{
30+
parent::__construct();
31+
3032
$this->setChildren($elements);
3133
}
3234

src/SpecificationRepositoryTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ trait SpecificationRepositoryTrait
2323
* @param SpecificationInterface $specification
2424
* @param ModifierInterface|null $modifier
2525
*
26-
* @return Query
2726
* @throws LogicException
27+
*
28+
* @return Query
2829
*/
2930
public function match(SpecificationInterface $specification, ModifierInterface $modifier = null)
3031
{

0 commit comments

Comments
 (0)