mambax7/adslight

View on GitHub
language/english/main.php

Summary

Maintainability
C
1 day
Test Coverage

File main.php has 504 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php declare(strict_types=1);
/*
-------------------------------------------------------------------------
                     ADSLIGHT 2: Module for Xoops

Severity: Major
Found in language/english/main.php - About 1 day to fix

    Line exceeds 120 characters; contains 191 characters
    Open

    define('_ADSLIGHT_NOMAIL2', 'We do not give out users email addresses, to contact them by e-mail please use the contact form on our site, you can reply to the ad at the following address. ');
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 134 characters
    Open

    define('_ADSLIGHT_RESERVEDMEMBER', "<strong> Status: </strong> <span style='color: #ff0000;'> <strong> [Reserved] </strong> </span>");
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 171 characters
    Open

    define('_ADSLIGHT_ENDMESS', '!!!  Do not reply to this e-mail, it will not reach the sender. If you want to reply to the sender, use the contact information above.  !!!');
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 131 characters
    Open

    define('_ADSLIGHT_SECURE_SEND', 'This message was sent using a secure contact form, the sender does not know your email address.');
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 129 characters
    Open

    define('_ADSLIGHT_VOTEFROMYOU', 'Input from users such as yourself will help other visitors better decide which Ads to choose.');
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 122 characters
    Open

    define('_ADSLIGHT_BEOBJECTIVE', "Please be objective, if everyone receives a 1 or a 10, the ratings aren't very useful.");
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 145 characters
    Open

    An ad with photo is viewed 7 times more than an ad without a photo! <br> It also gives a first idea of ??the state of your object. <br> <br> <br>
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 197 characters
    Open

    define('_ADSLIGHT_INTRO', "<b>You can add your Classified Ad(s) for free.<br>Just click on the category you wish to add it to,<br>You will see an 'Add a Classified Ad in this category' link.</b>");
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 138 characters
    Open

    define('_ADSLIGHT_MODIFBEFORE', 'Changes to this Classified Ad must be approved by the administrator and it will be queued for approval');
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 190 characters
    Open

    define('_ADSLIGHT_TEXTAUTO', "The message automatically sends the first three fields, your name, your email, and your telephone number, you don't need to enter them again in your message.");
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 141 characters
    Open

    define('_ADSLIGHT_PREMIUM_MEMBER', '<b>Since you are a Premium Member, you can choose how long your ad will last.<br><br>It will last </b>');
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 175 characters
    Open

    define('_ADSLIGHT_ERROR_NOTIF', 'If this is an error, or if you wish not to receive further such notifications, please update your subscriptions by visiting the link below:');
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 141 characters
    Open

    define('_ADSLIGHT_FORMEMBERS2', 'Posting advertisements is restricted to members <br>Please register or login if you are already a member.');
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 165 characters
    Open

    The first contact with visitors qu'auront your ad will be a photo or photos of the item you sell. <br> It is advisable to put a photo or photos of your object. <Br >
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 231 characters
    Open

    define('_ADSLIGHT_NOMAIL', 'We do not give out users email addresses, to contact them by e-mail please use the contact form on our site by clicking on the e-mail link in the ad, you can view the ad at the following web address. ');
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 151 characters
    Open

    - Avoid language 'SMS', it is imperative that the announcement is clearly visible. <br> Otherwise, you lose your chance to sell spare parts. <Br > <br>
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    Line exceeds 120 characters; contains 205 characters
    Open

    - Write down all the details and make sure that visitors can best identify your object. <br> Otherwise they will contact you by email or telephone to ask you. (Loss of time for you and the buyer) <br> <br>
    Severity: Minor
    Found in language/english/main.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status