Skip to content

Commit 0b0807f

Browse files
committed
Emailer interface satisfies visitor interface.
1 parent 4a19d4e commit 0b0807f

4 files changed

Lines changed: 9 additions & 12 deletions

File tree

assets/js/sort.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ athens.sort = (function () {
3939

4040

4141

42+

src/emailer/EmailerInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
namespace Athens\Core\Emailer;
44

55
use Athens\Core\Email\EmailInterface;
6+
use Athens\Core\Visitor\VisitorInterface;
67

7-
interface EmailerInterface
8+
interface EmailerInterface extends VisitorInterface
89
{
910

1011
/**

src/filter/SortFilter.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ public function __construct($id, array $classes, array $data, FilterInterface $n
3333
parent::__construct($id, $classes, $data, $statements, $nextFilter);
3434
}
3535

36-
37-
// Joe start here
38-
36+
/**
37+
* @param QueryWrapperInterface $query
38+
* @return QueryWrapperInterface
39+
*/
3940
public function queryFilter(QueryWrapperInterface $query)
4041
{
4142
$this->canQueryFilter = true;
@@ -48,10 +49,6 @@ public function queryFilter(QueryWrapperInterface $query)
4849
$fieldName = $statement->getFieldName();
4950
$condition = $statement->getCondition();
5051

51-
52-
53-
54-
5552
if ($this->canQueryFilter === true) {
5653
$query = $this->getNextFilter()->queryFilter($query);
5754
$choiceKey = FilterControls::getControl($this->id, "value", array_keys($this->options)[0]);
@@ -93,7 +90,4 @@ public function queryFilter(QueryWrapperInterface $query)
9390

9491
return $query;
9592
}
96-
97-
98-
// Joe end here
9993
}

src/writable-bearer/WritableBearerBearerTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public function getWritables()
3030
* @param string $handle
3131
* @return WritableInterface|null
3232
*/
33-
public function getWritableByHandle($handle) {
33+
public function getWritableByHandle($handle)
34+
{
3435
return $this->writableBearer->getWritableByHandle($handle);
3536
}
3637
}

0 commit comments

Comments
 (0)