Either does not seem to conform to the naming convention (^Abstract|Factory$).
This check examines a number of code elements and verifies that they conform
to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties,
methods, parameters, interfaces, classes, exceptions and special methods.
Loading history...
11
{
12
}
13
14
/**
15
* Helper function to apply one of a pair of function to Either a Left or Right . Returns the value directly rather
16
* than wrapping it in another Either.
17
*
18
* @param callable $f function to apply if $e is a Left
19
* @param callable $g function to apply if $e is a Right
20
* @param Either $e
21
*
22
* @return mixed
23
*/
24
function either(callable $f, callable $g, Either $e)
Avoid variables with short names like $f. Configured minimum length is 3.
Short variable names may make your code harder to understand. Variable names should
be self-descriptive. This check looks for variable names who are shorter than
a configured minimum.
Avoid variables with short names like $g. Configured minimum length is 3.
Short variable names may make your code harder to understand. Variable names should
be self-descriptive. This check looks for variable names who are shorter than
a configured minimum.
Avoid variables with short names like $e. Configured minimum length is 3.
Short variable names may make your code harder to understand. Variable names should
be self-descriptive. This check looks for variable names who are shorter than
a configured minimum.
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.