boehm-s/fun-php

View on GitHub

Showing 283 of 290 total issues

Closing brace must be on a line by itself
Open

        return _curry1(function ($_a) use($fn, $b, $c) { return $fn($_a, $b, $c); });
Severity: Minor
Found in src/internals/_curry3.php by phpcodesniffer

Opening brace should be on a new line
Open

    public static function pipe(...$fns) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Line indented incorrectly; expected 16 spaces, found 12
Open

            } else if ($a__) {
Severity: Minor
Found in src/internals/_curry2.php by phpcodesniffer

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

    } else if ($b__ && $c__) {
Severity: Minor
Found in src/internals/_curry3.php by phpcodesniffer

Opening brace should be on a new line
Open

    public static function includes(...$args) { // TODO: make it work with strings
Severity: Minor
Found in src/fun.php by phpcodesniffer

Opening brace should be on a new line
Open

    public static function pick(...$args) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Opening brace should be on a new line
Open

    public static function uniqBy(...$args) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 8
Open

        case 0:
Severity: Minor
Found in src/internals/_curry2.php by phpcodesniffer

Closing brace must be on a line by itself
Open

            return function(...$args) use ($fn) { return _curry2($fn)(...$args); };
Severity: Minor
Found in src/internals/_curry2.php by phpcodesniffer

Opening brace should be on a new line
Open

function _curry3_2_args($fn, $a, $b) {
Severity: Minor
Found in src/internals/_curry3.php by phpcodesniffer

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

    } else if ($b__) {
Severity: Minor
Found in src/internals/_curry3.php by phpcodesniffer

Closing brace must be on a line by itself
Open

        return _curry2(function ($_a, $_b) use ($fn, $c) { return $fn($_a, $_b, $c); });
Severity: Minor
Found in src/internals/_curry3.php by phpcodesniffer

Opening brace must be the last content on the line
Open

        return _curry1(function ($_b) use($fn, $a, $c) { return $fn($a, $_b, $c); });
Severity: Minor
Found in src/internals/_curry3.php by phpcodesniffer

Opening brace should be on a new line
Open

    public static function uniq(...$args) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Opening brace should be on a new line
Open

    public static function partial(...$args) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                return _curry1(function ($_b) use($fn, $a) { return $fn($a, $_b); });
Severity: Minor
Found in src/internals/_curry2.php by phpcodesniffer

Line indented incorrectly; expected 16 spaces, found 12
Open

            } else
Severity: Minor
Found in src/internals/_curry2.php by phpcodesniffer

Opening brace must be the last content on the line
Open

        return _curry1(function ($_a) use($fn, $b, $c) { return $fn($_a, $b, $c); });
Severity: Minor
Found in src/internals/_curry3.php by phpcodesniffer

Opening brace should be on a new line
Open

    public static function filter(...$args) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Opening brace must be the last content on the line
Open

                return _curry1(function ($_a) use($fn, $b) { return $fn($_a, $b); });
Severity: Minor
Found in src/internals/_curry2.php by phpcodesniffer
Severity
Category
Status
Source
Language