boehm-s/fun-php

View on GitHub

Showing 283 of 290 total issues

Opening brace of a class must be on the line after the definition
Open

class F {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

        return _curry3(function($fn, $default, $array) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Each PHP statement must be on a line by itself
Open

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

Each PHP statement 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

Expected 1 space after FUNCTION keyword; 0 found
Open

        return _curry2(function($value, $array) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

        return _curry2(function($prop, $arr) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

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

Expected 1 space after FUNCTION keyword; 0 found
Open

            return _reduce(function($acc, $fn) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

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

Expected 1 space after FUNCTION keyword; 0 found
Open

        return _curry2(function($fn, $array) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

        })(...$args);
Severity: Minor
Found in src/fun.php by phpcodesniffer

Each PHP statement 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

Expected 1 space after FUNCTION keyword; 0 found
Open

        return _curry2(function($fn, $array) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

        return _curry2(function($fn, $array) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

The closing brace for the class must go on the next line after the body
Open

}
Severity: Minor
Found in src/fun.php by phpcodesniffer

Each PHP statement 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

Terminating statement must be indented to the same level as the CASE body
Open

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

Each PHP statement 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

Each PHP statement 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

Expected 1 space after FUNCTION keyword; 0 found
Open

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