Showing 283 of 290 total issues
Usage of ELSE IF is discouraged; use ELSEIF instead Open
Open
} else if ($b__) {
- Exclude checks
Opening brace should be on a new line Open
Open
function _curry3($fn) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
case 2:
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
case 0:
- Exclude checks
Closing brace must be on a line by itself Open
Open
return function(...$args) use ($fn) { return _curry3($fn)(...$args); };
- Exclude checks
Opening brace should be on a new line Open
Open
function _partition(Callable $fn, iterable $array) {
- Exclude checks
Opening brace must be the last content on the line Open
Open
return _curry1(function ($_c) use($fn, $a, $b) { return $fn($a, $b, $_c); });
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
case 1:
- Exclude checks
Opening brace should be on a new line Open
Open
function _map(Callable $fn, iterable $array) {
- Exclude checks
Opening brace should be on a new line Open
Open
function _reduce(Callable $fn, iterable $array, $identity) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
Open
default:
- Exclude checks
Opening brace should be on a new line Open
Open
function _filter(Callable $fn, iterable $array) {
- Exclude checks
Closing brace must be on a line by itself Open
Open
return _curry1(function ($_c) use($fn, $a, $b) { return $fn($a, $b, $_c); });
- Exclude checks
Opening brace must be the last content on the line Open
Open
return function(...$args) use ($fn) { return _curry3($fn)(...$args); };
- Exclude checks
Opening brace should be on a new line Open
Open
function _isPlaceholder($str) {
- Exclude checks
The variable $a__ is not named in camelCase. Open
Open
function _curry3_2_args($fn, $a, $b) {
$a__ = _isPlaceholder($a);
$b__ = _isPlaceholder($b);
if ($a__ && $b__) {
- Read upRead up
- Exclude checks
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
Open
function _curry3_3_args($fn, $a, $b, $c) {
$a__ = _isPlaceholder($a);
$b__ = _isPlaceholder($b);
$c__ = _isPlaceholder($c);
- Read upRead up
- Exclude checks
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
Open
function _curry3_3_args($fn, $a, $b, $c) {
$a__ = _isPlaceholder($a);
$b__ = _isPlaceholder($b);
$c__ = _isPlaceholder($c);
- Read upRead up
- Exclude checks
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
Open
function _curry3($fn) {
return function($a = null, $b = null, $c = null) use ($fn) {
$args = func_get_args();
switch (count($args)) {
case 0:
- Read upRead up
- Exclude checks
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
Open
function _curry2($fn) {
return function($a = null, $b = null) use ($fn) {
$a__ = _isPlaceholder($a);
$b__ = _isPlaceholder($b);
$args = func_get_args();
- Read upRead up
- Exclude checks
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();
}
}