Skip to content

Commit

Permalink
Applied CS-Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Jan 5, 2025
1 parent 80d1218 commit 91ce190
Show file tree
Hide file tree
Showing 35 changed files with 728 additions and 727 deletions.
20 changes: 10 additions & 10 deletions upload/admin/model/catalog/attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ public function getDescriptions(int $attribute_id): array {

/**
* Get Total Attributes
*
*
* Get the total number of attribute records in the database.
*
*
* @return int
*
*
* @example
*
*
* $attribute_total = $this->model_catalog_attribute->getTotalAttributes();
*/
public function getTotalAttributes(): int {
Expand All @@ -196,15 +196,15 @@ public function getTotalAttributes(): int {

/**
* Get Total Attributes By Attribute Group ID
*
*
* Get the total number of attribute records with group ID in the database.
*
*
* @param int $attribute_group_id
*
*
* @return int
*
* @example
*
*
* @example
*
* $attribute_total = $this->model_catalog_attribute->getTotalAttributesByAttributeGroupId($attribute_group_id);
*/
public function getTotalAttributesByAttributeGroupId(int $attribute_group_id): int {
Expand Down
6 changes: 3 additions & 3 deletions upload/admin/model/catalog/attribute_group.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ public function getDescriptions(int $attribute_group_id): array {
* Get Total Attribute Groups
*
* @return int total number of attribute group records
*
* @example
*
*
* @example
*
* $attribute_group_total = $this->model_catalog_attribute_group->getTotalAttributeGroups();
*/
public function getTotalAttributeGroups(): int {
Expand Down
18 changes: 9 additions & 9 deletions upload/admin/model/catalog/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ public function getFilters(int $category_id): array {
* @param int $category_id primary key of the category record
*
* @return array<int, int> store records that have category ID
*
* @example
*
*
* @example
*
* $results = $this->model_catalog_category->getCategoryStores($category_id);
*/
public function getCategoryStores(int $category_id): array {
Expand All @@ -430,9 +430,9 @@ public function getCategoryStores(int $category_id): array {
* @param int $category_id primary key of the category record
*
* @return array<int, array<string, string>> SEO URL records that have category ID
*
* @example
*
*
* @example
*
* $results = $this->model_catalog_category->getCategorySeoUrls($category_id);
*/
public function getCategorySeoUrls(int $category_id): array {
Expand Down Expand Up @@ -493,9 +493,9 @@ public function getTotalCategories(): int {
* @param int $layout_id primary key of the layout record
*
* @return int total number of layout records that have layout ID
*
* @example
*
*
* @example
*
* $category_total = $this->model_catalog_category->getTotalCategoriesByLayoutId($layout_id);
*/
public function getTotalCategoriesByLayoutId(int $layout_id): int {
Expand Down
32 changes: 16 additions & 16 deletions upload/admin/model/catalog/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function addFilter(array $data): int {
* Edit Filter
*
* @param int $filter_group_id primary key of the filter group record
* @param array<string, mixed> $data array of data
* @param array<string, mixed> $data array of data
*
* @example
*
Expand Down Expand Up @@ -105,9 +105,9 @@ public function deleteFilter(int $filter_group_id): void {
* @param int $filter_group_id primary key of the filter group record
*
* @return array<string, mixed> filter group record that has filter group ID
*
* @example
*
*
* @example
*
* $filter_group_info = $this->model_catalog_filter->getGroup($filter_group_id);
*/
public function getGroup(int $filter_group_id): array {
Expand All @@ -122,9 +122,9 @@ public function getGroup(int $filter_group_id): array {
* @param array<string, mixed> $data array of filters
*
* @return array<int, array<string, mixed>> filter group records
*
* @example
*
*
* @example
*
* $results = $this->model_catalog_filter->getGroups();
*/
public function getGroups(array $data = []): array {
Expand Down Expand Up @@ -170,9 +170,9 @@ public function getGroups(array $data = []): array {
* @param int $filter_group_id primary key of the filter group record
*
* @return array<int, array<string, string>> description records that have filter group ID
*
* @example
*
*
* @example
*
* $filter_group_description = $this->model_catalog_filter->getGroupDescriptions($filter_group_id);
*/
public function getGroupDescriptions(int $filter_group_id): array {
Expand Down Expand Up @@ -247,9 +247,9 @@ public function getFilters(array $data): array {
* @param int $filter_group_id primary key of the filter group record
*
* @return array<int, array<string, string>> description records that have filter group ID
*
* @example
*
*
* @example
*
* $results = $this->model_catalog_filter->getDescriptions($filter_group_id);
*/
public function getDescriptions(int $filter_group_id): array {
Expand Down Expand Up @@ -280,9 +280,9 @@ public function getDescriptions(int $filter_group_id): array {
* Get Total Groups
*
* @return int total number of filter group records
*
* @example
*
*
* @example
*
* $filter_group_total = $this->model_catalog_filter->getTotalGroups();
*/
public function getTotalGroups(): int {
Expand Down
30 changes: 15 additions & 15 deletions upload/admin/model/catalog/information.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ public function getInformations(array $data = []): array {
* @param int $information_id primary key of the information record
*
* @return array<int, array<string, string>> information description records that have information ID
*
* @example
*
*
* @example
*
* $results = $this->model_catalog_information->getDescriptions($information_id);
*/
public function getDescriptions(int $information_id): array {
Expand Down Expand Up @@ -265,9 +265,9 @@ public function getStores(int $information_id): array {
* @param int $information_id primary key of the information record
*
* @return array<int, array<string, string>> SEO URL records that have information ID
*
* @example
*
*
* @example
*
* $results = $this->model_catalog_information->getInformationSeoUrls($information_id);
*/
public function getInformationSeoUrls(int $information_id): array {
Expand All @@ -288,9 +288,9 @@ public function getInformationSeoUrls(int $information_id): array {
* @param int $information_id primary key of the information record
*
* @return array<int, array<string, string>> layout records that have information ID
*
* @example
*
*
* @example
*
* $results = $this->model_catalog_information->getInformationLayouts($information_id);
*/
public function getInformationLayouts(int $information_id): array {
Expand All @@ -309,9 +309,9 @@ public function getInformationLayouts(int $information_id): array {
* Get Total Information(s)
*
* @return int total number of information records
*
* @example
*
*
* @example
*
* $information_total = $this->model_catalog_information->getTotalInformations();
*/
public function getTotalInformations(): int {
Expand All @@ -326,9 +326,9 @@ public function getTotalInformations(): int {
* @param int $layout_id primary key of the information record
*
* @return int total number of layout records that have layout ID
*
* @example
*
*
* @example
*
* $information_total = $this->model_catalog_information->getTotalInformationsByLayoutId($layout_id);
*/
public function getTotalInformationsByLayoutId(int $layout_id): int {
Expand Down
12 changes: 6 additions & 6 deletions upload/admin/model/catalog/manufacturer.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ public function getStores(int $manufacturer_id): array {
* @param int $manufacturer_id primary key of the manufacturer record
*
* @return array<int, array<string, string>> SEO URL records that have manufacturer ID
*
* @example
*
*
* @example
*
* $results = $this->model_catalog_manufacturer->getSeoUrls($manufacturer_id);
*/
public function getSeoUrls(int $manufacturer_id): array {
Expand All @@ -229,9 +229,9 @@ public function getSeoUrls(int $manufacturer_id): array {
* Get Total Manufacturers
*
* @return int total number of manufacturer records
*
* @example
*
*
* @example
*
* $manufacturer_total = $this->model_catalog_manufacturer->getTotalManufacturers();
*/
public function getTotalManufacturers(): int {
Expand Down
18 changes: 9 additions & 9 deletions upload/admin/model/catalog/option.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ public function getDescriptions(int $option_id): array {
* @param int $option_value_id primary key of the option value record
*
* @return array<string, mixed> value record that has option value ID
*
* @example
*
*
* @example
*
* $option_value_info = $this->model_catalog_option->getValue($option_value_id);
*/
public function getValue(int $option_value_id): array {
Expand All @@ -217,9 +217,9 @@ public function getValue(int $option_value_id): array {
* @param int $option_id primary key of the option record
*
* @return array<int, array<string, mixed>> value records that have option ID
*
* @example
*
*
* @example
*
* $option_values = $this->model_catalog_option->getValues($option_id);
*/
public function getValues(int $option_id): array {
Expand All @@ -245,9 +245,9 @@ public function getValues(int $option_id): array {
* @param int $option_id primary key of the option record
*
* @return array<int, array<string, mixed>> value description records that have option ID
*
* @example
*
*
* @example
*
* $option_value_description = $this->model_catalog_option->getValueDescriptions($option_id);
*/
public function getValueDescriptions(int $option_id): array {
Expand Down
Loading

0 comments on commit 91ce190

Please sign in to comment.