HuasoFoundries/jpgraph

View on GitHub
src/lang/prod.inc.php

Summary

Maintainability
B
4 hrs
Test Coverage

File prod.inc.php has 360 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * JPGraph v4.0.3
 */
Severity: Minor
Found in src/lang/prod.inc.php - About 4 hrs to fix

    A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 8 and the first side effect is on line 11.
    Open

    <?php
    Severity: Minor
    Found in src/lang/prod.inc.php by phpcodesniffer

    Line exceeds 120 characters; contains 170 characters
    Open

    define('DEFAULT_ERROR_MESSAGE', 'We are sorry but the system could not generate the requested image. Please contact site support to resolve this problem. Problem no: #');
    Severity: Minor
    Found in src/lang/prod.inc.php by phpcodesniffer

    Line exceeds 120 characters; contains 874 characters
    Open

    HTTP headers have already been sent.<br>Caused by output from file <b>%s</b> at line <b>%d</b>.</font></td></tr><tr><td><b>Explanation:</b><br>HTTP headers have already been sent back to the browser indicating the data as text before the library got a chance to send it\'s image HTTP header to this browser. This makes it impossible for the library to send back image data to the browser (since that would be interpretated as text by the browser and show up as junk text).<p>Most likely you have some text in your script before the call to <i>Graph::Stroke()</i>. If this texts gets sent back to the browser the browser will assume that all data is plain text. Look for any text, even spaces and newlines, that might have been sent back to the browser. <p>For example it is a common mistake to leave a blank line before the opening "<b>&lt;?php</b>".</td></tr></table>', 2],
    Severity: Minor
    Found in src/lang/prod.inc.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status