Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ class Events

private ?int $perPage = null;

private ?string $site = null;

private string $sort = 'asc';

private ?string $timezone = null;
Expand Down Expand Up @@ -102,15 +100,6 @@ public function event(?string $id = null): self
return $this;
}

public function filters(array $filters): self
{
foreach ($filters as $fieldCondition => $value) {
$this->filter($fieldCondition, $value);
}

return $this;
}

public function filter(string $fieldCondition, $value): self
{
$this->params->put($fieldCondition, $value);
Expand Down Expand Up @@ -144,13 +133,6 @@ public function params(Collection $params): self
return $this;
}

public function site(?string $handle = null): self
{
$this->site = $handle;

return $this;
}

public function sort(string $direction): self
{
$this->sort = $direction;
Expand Down
15 changes: 0 additions & 15 deletions src/Tags/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
use Carbon\CarbonPeriodImmutable;
use Closure;
use Illuminate\Support\Collection;
use Statamic\Contracts\Query\Builder;
use Statamic\Entries\Entry;
use Statamic\Entries\EntryCollection;
use Statamic\Facades\Compare;
use Statamic\Facades\Site;
use Statamic\Support\Arr;
use Statamic\Tags\Concerns\OutputsItems;
Expand Down Expand Up @@ -157,19 +155,6 @@ private function day(string $date, EntryCollection $occurrences): array
];
}

private function explodeTerms(array|Builder|string $terms): array
{
if (is_string($terms)) {
return array_filter(explode('|', $terms));
}

if (Compare::isQueryBuilder($terms)) {
return $terms->get();
}

return $terms;
}

private function generator(): Generator
{
return new Generator($this->params);
Expand Down
5 changes: 0 additions & 5 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Statamic\Facades\Fieldset;
use Statamic\Facades\Taxonomy;
use Statamic\Facades\Term;
use Statamic\Fields\Blueprint;
use Statamic\Fields\BlueprintRepository;
use Statamic\Statamic;
use Statamic\Testing\AddonTestCase;
Expand All @@ -20,12 +19,8 @@ abstract class TestCase extends AddonTestCase

protected string $addonServiceProvider = ServiceProvider::class;

protected $shouldFakeVersion = true;

protected Collection $collection;

protected Blueprint $blueprint;

protected function setUp(): void
{
parent::setUp();
Expand Down