lovata/oc-shopaholic-plugin

View on GitHub

Showing 396 of 402 total issues

Missing @return tag in function comment
Open

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

Missing @return tag in function comment
Open

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

Missing blank line before return statement
Open

            return;

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

        $fPrice = TaxHelper::instance()->getPriceWithTax($this->price_value, $this->tax_percent);
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()->getPriceWithTax($this->old_price_value, $this->tax_percent);
Severity: Minor
Found in classes/item/OfferItem.php by phpcodesniffer

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

        foreach ($this->price_link as $obPrice) {
Severity: Minor
Found in models/Offer.php by phpcodesniffer

Please trim any trailing whitespace
Open

    
Severity: Minor
Found in controllers/Measures.php by phpcodesniffer

Declare public methods first,then protected ones and finally private ones
Open

    public function handle()

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

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

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

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

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

            $fTaxPercent = TaxHelper::instance()->getTaxPercent($this->tax_list);
Severity: Minor
Found in classes/item/OfferItem.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

                ->sort(function($obPrevItem, $obNextItem) {
Severity: Minor
Found in classes/item/ProductItem.php by phpcodesniffer

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

        $fPrice = $obPriceModel->discount_price_value;
Severity: Minor
Found in models/Offer.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

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

                'price'     => $obPrice->price_value,
Severity: Minor
Found in models/Offer.php by phpcodesniffer

Please trim any trailing whitespace
Open

    

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

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

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/Categories.php by phpcodesniffer

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

        $this->addCategoryData($obProductItem->category_id);
Severity: Minor
Found in components/Breadcrumbs.php by phpcodesniffer
Severity
Category
Status
Source
Language