boehm-s/fun-php

View on GitHub

Showing 283 of 290 total issues

Opening brace should be on a new line
Open

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

Line indented incorrectly; expected 16 spaces, found 12
Open

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

Opening brace should be on a new line
Open

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

Opening brace should be on a new line
Open

    public static function merge($obj, ...$objs) {
Severity: Minor
Found in src/fun.php by phpcodesniffer

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

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

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

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

Expected 1 space after IF keyword; 0 found
Open

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

Closing brace 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

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

Line indented incorrectly; expected 12 spaces, found 8
Open

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

Opening brace should be on a new line
Open

function _curry3_3_args($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 ($a__ && $c__) {
Severity: Minor
Found in src/internals/_curry3.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 should be on a new line
Open

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

Opening brace should be on a new line
Open

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

Opening brace should be on a new line
Open

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

Closing brace must be on a line by itself
Open

        return _curry2(function ($_a, $_c) use($fn, $b) { 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

    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

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

Closing brace must be on a line by itself
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