boehm-s/fun-php

View on GitHub

Showing 283 of 290 total issues

Closing brace must be on a line by itself
Open

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

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

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

Opening brace should be on a new line
Open

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

Opening brace must be the last content on the line
Open

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

Opening brace must be the last content on the line
Open

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

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

                return $fn;
Severity: Minor
Found in src/internals/_curry2.php by phpcodesniffer

Opening brace must be the last content on the line
Open

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

Line indented incorrectly; expected 12 spaces, found 8
Open

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

Closing brace must be on a line by itself
Open

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

Opening brace must be the last content on the line
Open

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

Closing brace must be on a line by itself
Open

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

Opening brace must be the last content on the line
Open

        return _curry1(function ($_c) use ($fn, $a, $b) { 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 some(...$args) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Opening brace should be on a new line
Open

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

Opening brace should be on a new line
Open

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

Opening brace must be the last content on the line
Open

            ? function(...$objs) use ($obj) { return array_merge($obj, ...$objs); }
Severity: Minor
Found in src/fun.php by phpcodesniffer

Closing brace must be on a line by itself
Open

            ? function(...$objs) use ($obj) { return array_merge($obj, ...$objs); }
Severity: Minor
Found in src/fun.php by phpcodesniffer

Opening brace should be on a new line
Open

function _call_fn_right_arity(callable $fn, array $args) {
Severity: Minor
Found in src/internals/_arity.php by phpcodesniffer

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

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

Opening brace must be the last content on the line
Open

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