boehm-s/fun-php

View on GitHub

Showing 283 of 290 total issues

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

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

Opening brace should be on a new line
Open

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

Line indented incorrectly; expected 12 spaces, found 8
Open

        case 2:
Severity: Minor
Found in src/internals/_curry3.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 8
Open

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

Closing brace must be on a line by itself
Open

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

Opening brace should be on a new line
Open

function _partition(Callable $fn, iterable $array) {
Severity: Minor
Found in src/internals/_filter.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

Line indented incorrectly; expected 12 spaces, found 8
Open

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

Opening brace should be on a new line
Open

function _map(Callable $fn, iterable $array) {
Severity: Minor
Found in src/internals/_map.php by phpcodesniffer

Opening brace should be on a new line
Open

function _reduce(Callable $fn, iterable $array, $identity) {
Severity: Minor
Found in src/internals/_reduce.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 8
Open

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

Opening brace should be on a new line
Open

function _filter(Callable $fn, iterable $array) {
Severity: Minor
Found in src/internals/_filter.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 function(...$args) use ($fn) { return _curry3($fn)(...$args); };
Severity: Minor
Found in src/internals/_curry3.php by phpcodesniffer

Opening brace should be on a new line
Open

function _isPlaceholder($str) {

The variable $a__ is not named in camelCase.
Open

function _curry3_2_args($fn, $a, $b) {
    $a__ = _isPlaceholder($a);
    $b__ = _isPlaceholder($b);

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

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $a__ is not named in camelCase.
Open

function _curry3_3_args($fn, $a, $b, $c) {
    $a__ = _isPlaceholder($a);
    $b__ = _isPlaceholder($b);
    $c__ = _isPlaceholder($c);

Severity: Minor
Found in src/internals/_curry3.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $a__ is not named in camelCase.
Open

function _curry3_3_args($fn, $a, $b, $c) {
    $a__ = _isPlaceholder($a);
    $b__ = _isPlaceholder($b);
    $c__ = _isPlaceholder($c);

Severity: Minor
Found in src/internals/_curry3.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $_b is not named in camelCase.
Open

function _curry3($fn) {
    return function($a = null, $b = null, $c = null) use ($fn) {
        $args = func_get_args();
        switch (count($args)) {
        case 0:
Severity: Minor
Found in src/internals/_curry3.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $_a is not named in camelCase.
Open

function _curry2($fn) {
    return function($a = null, $b = null) use ($fn) {
        $a__  = _isPlaceholder($a);
        $b__  = _isPlaceholder($b);
        $args = func_get_args();
Severity: Minor
Found in src/internals/_curry2.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

Severity
Category
Status
Source
Language