Skip to content

Commit

Permalink
Fix Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
martineiber committed Jul 25, 2024
1 parent d4aad02 commit a376936
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/DataIndex/Filter/Asset/MetaData/AssetFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private function applyAssetFilter(ColumnFilter $column, AssetQuery $query): Asse
throw new InvalidArgumentException('Filter value for asset must be a integer (ID of the asset)');
}

$query->filterMetaDate($column->getKey(), FilterType::ASSET->value, $column->getFilterValue());
$query->filterMetaData($column->getKey(), FilterType::ASSET->value, $column->getFilterValue());

return $query;
}
Expand Down
2 changes: 1 addition & 1 deletion src/DataIndex/Filter/Asset/MetaData/CheckboxFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private function applyCheckboxFilter(ColumnFilter $column, AssetQuery $query): A
throw new InvalidArgumentException('Filter value for checkbox must be a boolean');
}

$query->filterMetaDate($column->getKey(), FilterType::CHECKBOX->value, $column->getFilterValue());
$query->filterMetaData($column->getKey(), FilterType::CHECKBOX->value, $column->getFilterValue());

return $query;
}
Expand Down
6 changes: 3 additions & 3 deletions src/DataIndex/Filter/Asset/MetaData/DateFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,23 @@ private function applyDateFilter(ColumnFilter $column, AssetQuery $query): Asset
$filterValue = $column->getFilterValue();

if (isset($filterValue['on'])) {
$query->filterMetaDate(
$query->filterMetaData(
$column->getKey(),
FilterType::DATE->value,
[GenericDateFilter::PARAM_ON => $filterValue['on']]
);
}

if (isset($filterValue['to'])) {
$query->filterMetaDate(
$query->filterMetaData(
$column->getKey(),
FilterType::DATE->value,
[GenericDateFilter::PARAM_END => $filterValue['to']]
);
}

if (isset($filterValue['from'])) {
$query->filterMetaDate(
$query->filterMetaData(
$column->getKey(),
FilterType::DATE->value,
[GenericDateFilter::PARAM_START => $filterValue['from']]
Expand Down
2 changes: 1 addition & 1 deletion src/DataIndex/Filter/Asset/MetaData/DocumentFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private function applyDocumentFilter(ColumnFilter $column, AssetQuery $query): A
throw new InvalidArgumentException('Filter value for document must be a integer (ID of the document)');
}

$query->filterMetaDate($column->getKey(), FilterType::DOCUMENT->value, $column->getFilterValue());
$query->filterMetaData($column->getKey(), FilterType::DOCUMENT->value, $column->getFilterValue());

return $query;
}
Expand Down
2 changes: 1 addition & 1 deletion src/DataIndex/Filter/Asset/MetaData/InputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private function applyInputFilter(ColumnFilter $column, AssetQuery $query): Asse
throw new InvalidArgumentException('Filter value for input must be a string');
}

$query->filterMetaDate($column->getKey(), FilterType::INPUT->value, $column->getFilterValue());
$query->filterMetaData($column->getKey(), FilterType::INPUT->value, $column->getFilterValue());

return $query;
}
Expand Down
2 changes: 1 addition & 1 deletion src/DataIndex/Filter/Asset/MetaData/ObjectFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private function applyAssetFilter(ColumnFilter $column, AssetQuery $query): Asse
throw new InvalidArgumentException('Filter value for object must be a integer (ID of the object)');
}

$query->filterMetaDate($column->getKey(), FilterType::OBJECT->value, $column->getFilterValue());
$query->filterMetaData($column->getKey(), FilterType::OBJECT->value, $column->getFilterValue());

return $query;
}
Expand Down
2 changes: 1 addition & 1 deletion src/DataIndex/Filter/Asset/MetaData/SelectFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private function applySelectFilter(ColumnFilter $column, AssetQuery $query): Ass
throw new InvalidArgumentException('Filter value for select must be a string');
}

$query->filterMetaDate($column->getKey(), FilterType::SELECT->value, $column->getFilterValue());
$query->filterMetaData($column->getKey(), FilterType::SELECT->value, $column->getFilterValue());

return $query;
}
Expand Down
2 changes: 1 addition & 1 deletion src/DataIndex/Filter/Asset/MetaData/TextAreaFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private function applyTextAreaFilter(ColumnFilter $column, AssetQuery $query): A
throw new InvalidArgumentException('Filter value for textarea must be a string');
}

$query->filterMetaDate($column->getKey(), FilterType::TEXTAREA->value, $column->getFilterValue());
$query->filterMetaData($column->getKey(), FilterType::TEXTAREA->value, $column->getFilterValue());

return $query;
}
Expand Down
2 changes: 1 addition & 1 deletion src/DataIndex/Query/AssetQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function searchByIds(array $ids): self
return $this;
}

public function filterMetaDate(string $name, string $type, mixed $data): self
public function filterMetaData(string $name, string $type, mixed $data): self
{
$this->search->addModifier(new AssetMetaDataFilter($name, $type, $data));

Expand Down

0 comments on commit a376936

Please sign in to comment.