GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 043ac2...816202 )
by w3l
06:45 queued 05:13
created

holt45.php (3 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
0 ignored issues
show
Coding Style Compatibility introduced by
For compatibility and reusability of your code, PSR1 recommends that a file should introduce either new symbols (like classes, functions, etc.) or have side-effects (like outputting something, or including other files), but not both at the same time. The first symbol is defined on line 21 and the first side effect is on line 11.

The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.

The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.

To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.

Loading history...
2
/**
3
 * holt45
4
 * A small library with some really basic functions...
5
 *
6
 * @link https://github.com/w3l/holt45
7
 * @copyright Unlicense
8
 * @version 0.3.0
9
 */
10
11
require_once dirname(__FILE__) . '/holt45/Get.php';
12
require_once dirname(__FILE__) . '/holt45/Post.php';
13
require_once dirname(__FILE__) . '/holt45/Session.php';
14
require_once dirname(__FILE__) . '/holt45/Time.php';
15
require_once dirname(__FILE__) . '/holt45/Convert.php';
16
require_once dirname(__FILE__) . '/holt45/Strings.php';
17
require_once dirname(__FILE__) . '/holt45/Math.php';
18
require_once dirname(__FILE__) . '/holt45/Misc.data.inc';
19
require_once dirname(__FILE__) . '/holt45/Misc.php';
20
21
class Holt45 {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
22
23
    const DATA_URI_TRANSPARENT_GIF = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
24
    const DATA_URI_TRANSPARENT_PNG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=';
0 ignored issues
show
This line exceeds maximum limit of 120 characters; contains 154 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
25
26
    use \w3l\Holt45\Get;
27
    use \w3l\Holt45\Post;
28
    use \w3l\Holt45\Session;
29
    use \w3l\Holt45\Time;
30
    use \w3l\Holt45\Convert;
31
    use \w3l\Holt45\Strings;
32
    use \w3l\Holt45\Math;
33
    use \w3l\Holt45\MiscData;
34
    use \w3l\Holt45\Misc;
35
}
36