Showing 45 of 45 total issues
The method I_can_get_floored_third is not named in camelCase. Open
Open
public function I_can_get_floored_third(): void
{
$number = 5;
self::assertSame(1, SumAndRound::flooredThird($number));
$number = 2.9999;
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method I_can_round_a_number is not named in camelCase. Open
Open
public function I_can_round_a_number(): void
{
$shouldBeHigher = 4.5;
self::assertSame(5, SumAndRound::round($shouldBeHigher));
$shouldBeLower = 4.4;
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method I_can_ceil_a_number is not named in camelCase. Open
Open
public function I_can_ceil_a_number(): void
{
$almostHigherInteger = 5.999999;
self::assertSame(6, SumAndRound::ceil($almostHigherInteger));
$integerAndBit = 8.0000001;
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method I_can_get_ceiled_third is not named in camelCase. Open
Open
public function I_can_get_ceiled_third(): void
{
$number = 5;
self::assertSame(2, SumAndRound::ceiledThird($number));
$number = 2.9999;
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method I_can_get_round_average_of_two_numbers is not named in camelCase. Open
Open
public function I_can_get_round_average_of_two_numbers(): void
{
$firstNumber = 1.5123;
$secondNumber = 2.5123;
self::assertSame(2, SumAndRound::average($firstNumber, $secondNumber));
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}