Showing 17 of 19 total issues
Method all
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function all(
int $itemsPerPage = 50,
string $pageNavigationToken = null,
int $pageNumber = 1,
string $startTime = null,
Method all
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
int $itemsPerPage = 50,
string $pageNavigationToken = null,
int $pageNumber = 1,
string $startTime = null,
string $endTime = null,
Method allowed
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function allowed(): array
{
return [
'bookingNumber' => 'string', // The unique booking number. Always treat as string [read-only],
'eventId' => 'string', // When the booking is for a product of type fixed or fixedCourse, this is the id of the slot (see /availability/slots). Note that for fixedCourse, Bookeo always returns the eventId of the first class in a course, even if the customer is enrolled starting from a later class. In this case, firstCourseEnrolledEvent will be set.,
Function all
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
public function all(
int $itemsPerPage = 50,
string $pageNavigationToken = null,
int $pageNumber = 1,
string $startTime = null,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function __invoke
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
public function __invoke(
string $productId = null,
string $startTime = null,
string $endTime = null,
int $itemsPerPage = 50,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method __invoke
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function __invoke(
string $productId = null,
string $startTime = null,
string $endTime = null,
int $itemsPerPage = 50,
Method all
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function all(
string $searchText = null,
string $searchField = null,
string $createdSince = null,
bool $currentMembers = true,
Method all
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
string $searchText = null,
string $searchField = null,
string $createdSince = null,
bool $currentMembers = true,
bool $currentNonMembers = true,
Function repeatRequest
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
private function repeatRequest($type, $url, $params): ?ResponseInterface
{
$type = strtoupper($type);
for ($i = 1; $i < $this->config->get('tries'); $i++) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method create
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Booking $create,
string $previousHoldId = null,
bool $notifyUsers = null,
bool $notifyCustomer = null,
bool $sendCustomerReminders = null,
Method delete
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
bool $notifyUsers = null,
bool $notifyCustomer = null,
bool $applyCancellationPolicy = null,
bool $trackInCustomerHistory = null,
bool $cancelRemainingSeries = null,
Method __invoke
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
string $productId = null,
string $startTime = null,
string $endTime = null,
int $itemsPerPage = 50,
string $pageNavigationToken = null,
Method bookings
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
string $beginDate = null,
string $endDate = null,
bool $expandParticipants = false,
int $itemsPerPage = 50,
string $pageNavigationToken = null,
Function all
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
public function all(
string $searchText = null,
string $searchField = null,
string $createdSince = null,
bool $currentMembers = true,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function bookings
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function bookings(
string $beginDate = null,
string $endDate = null,
bool $expandParticipants = false,
int $itemsPerPage = 50,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function create
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function create(
Booking $create,
string $previousHoldId = null,
bool $notifyUsers = null,
bool $notifyCustomer = null,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function delete
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function delete(
bool $notifyUsers = null,
bool $notifyCustomer = null,
bool $applyCancellationPolicy = null,
bool $trackInCustomerHistory = null,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"