oc-shopaholic/oc-shopaholic-plugin

View on GitHub

Showing 402 of 402 total issues

Add a comma after each item in a multi-line array
Open

    public static $arQueryWith = [
Severity: Minor
Found in classes/item/ProductItem.php by phpcodesniffer

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

    public function registerReportWidgets()
Severity: Minor
Found in Plugin.php by phpcodesniffer

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

        if (!empty($obCategoryItem->parent_id)) {
Severity: Minor
Found in components/Breadcrumbs.php by phpcodesniffer

Missing parameter name
Open

     * @param $obProgressBar

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

        $fPrice = TaxHelper::instance()->getPriceWithoutTax($this->price_value, $this->tax_percent);
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

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

            $obCurrency->is_default = false;
Severity: Minor
Found in models/Currency.php by phpcodesniffer

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

        if ($this->old_price_value > 0) {
Severity: Minor
Found in models/Price.php by phpcodesniffer

Expected 6 spaces after parameter type; 1 found
Open

     * @param bool $bWithChildren

Doc comment for parameter "$iSiteID" missing
Open

    /**

Expected 6 spaces after parameter type; 1 found
Open

     * @param bool $bWithChildren

Blank line found at start of control structure
Open

        if ($obItem instanceof Offer) {

Doc comment for parameter "$obProgressBar" missing
Open

    /**

Doc comment for parameter "$iSiteID" missing
Open

    /**

Missing blank line before return statement
Open

            return;

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

            $fPrice = array_get($this->price_list, $iActivePriceType.'.old_price');
Severity: Minor
Found in classes/item/OfferItem.php by phpcodesniffer

Missing blank line before return statement
Open

            return;

Missing blank line before return statement
Open

            return;

Missing @return tag in function comment
Open

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

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

        $arProductIDList = (array) $this->product_id_list;
Severity: Minor
Found in classes/item/TaxItem.php by phpcodesniffer
Severity
Category
Status
Source
Language