oc-shopaholic/oc-shopaholic-plugin

View on GitHub

Showing 402 of 402 total issues

Expected 6 spaces after parameter type; 1 found
Open

     * @param bool $bWithChildren

Doc comment for parameter "$iSiteID" missing
Open

    /**

Doc comment for parameter "$obProgressBar" missing
Open

    /**

Variable "old_price_without_tax_value" is not in valid camel caps format
Open

        $fPrice = PriceHelper::round($this->old_price_with_tax_value - $this->old_price_without_tax_value);
Severity: Minor
Found in classes/item/OfferItem.php by phpcodesniffer

Variable "old_price_value" is not in valid camel caps format
Open

        $fPrice = TaxHelper::instance()->getPriceWithoutTax($this->old_price_value, $this->tax_percent);
Severity: Minor
Found in classes/item/OfferItem.php by phpcodesniffer

Variable "country_id_list" is not in valid camel caps format
Open

        $arCountryIDList = (array) $this->country_id_list;
Severity: Minor
Found in classes/item/TaxItem.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

        $arElementIDList = (array) Category::whereHas('site', function($obQuery) {

Variable "old_price_value" is not in valid camel caps format
Open

            $fPrice = PriceHelper::round($this->old_price_value - $this->price_value);
Severity: Minor
Found in models/Price.php by phpcodesniffer

Doc comment for parameter "$iSiteID" missing
Open

    /**

Abstract class name is not prefixed with "Abstract"
Open

abstract class CommonMenuType

Variable "tax_percent" is not in valid camel caps format
Open

        $fPrice = TaxHelper::instance()->getPriceWithoutTax($this->old_price_value, $this->tax_percent);
Severity: Minor
Found in classes/item/OfferItem.php by phpcodesniffer

Variable "measure_of_unit_id" is not in valid camel caps format
Open

        $iMeasureID = $this->measure_of_unit_id;
Severity: Minor
Found in classes/item/OfferItem.php by phpcodesniffer

Variable "sort_order" is not in valid camel caps format
Open

                    return $obNextItem->sort_order > $obPrevItem->sort_order ? -1 : 1;
Severity: Minor
Found in classes/item/ProductItem.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

        $arElementIDList = (array) Offer::whereHas('site', function($obQuery) {

Variable "price_link" is not in valid camel caps format
Open

            $obPriceModel = $this->price_link->where('price_type_id', $iPriceTypeID)->first();
Severity: Minor
Found in models/Offer.php by phpcodesniffer

Missing @return tag in function comment
Open

     */
Severity: Minor
Found in controllers/Products.php by phpcodesniffer

Variable "price_type_id" is not in valid camel caps format
Open

            $arResult[$obPrice->price_type_id] = [
Severity: Minor
Found in models/Offer.php by phpcodesniffer

Expected 6 spaces after parameter type; 1 found
Open

     * @param bool $bWithChildren

Exception type missing for @throws tag in function comment
Open

     * @throws

Variable "main_price" is not in valid camel caps format
Open

                $this->main_price = $obPriceModel;
Severity: Minor
Found in models/Offer.php by phpcodesniffer
Severity
Category
Status
Source
Language