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 ( 59583f...4a3d01 )
by Alexander
12:44
created

Linq.php ➔ from()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 3 Features 0
Metric Value
cc 1
eloc 2
c 3
b 3
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
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 10.

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
/**
4
 * Global functions and initialization.
5
 * @author Alexander Prokhorov
6
 * @license Simplified BSD
7
 * @link https://github.com/Athari/YaLinqo YaLinqo on GitHub
8
 */
9
10
\YaLinqo\Functions::init();
11
\YaLinqo\Utils::init();
12
13
if (!function_exists('from')) {
14
    /**
15
     * Create Enumerable from an array or any other traversible source.
16
     * @param array|\Iterator|\IteratorAggregate|\YaLinqo\Enumerable $source
17
     * @throws \InvalidArgumentException If source is not array or Traversible or Enumerable.
18
     * @return \YaLinqo\Enumerable
19
     * @see \YaLinqo\Enumerable::from
20
     */
21
    function from ($source)
22
    {
23
        return \YaLinqo\Enumerable::from($source);
24
    }
25
}