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 ($_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 each(...$args) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

Opening brace should be on a new line
Open

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

Opening brace should be on a new line
Open

function _arity(Callable $fn) {
Severity: Minor
Found in src/internals/_arity.php by phpcodesniffer

Line indented incorrectly; expected 16 spaces, found 12
Open

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

Expected 1 space after ELSE keyword; newline found
Open

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

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

    } else if ($a__ && $b__) {
Severity: Minor
Found in src/internals/_curry3.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

Opening brace should be on a new line
Open

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

Opening brace should be on a new line
Open

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

Opening brace should be on a new line
Open

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

Opening brace should be on a new line
Open

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

Opening brace should be on a new line
Open

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

Opening brace should be on a new line
Open

function _curry2($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 ($_a, $_c) use ($fn, $b) { return $fn($_a, $b, $_c); });
Severity: Minor
Found in src/internals/_curry3.php by phpcodesniffer

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

Opening brace should be on a new line
Open

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

Opening brace should be on a new line
Open

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

Opening brace should be on a new line
Open

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

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

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