Showing 28 of 390 total issues
File manager.php
has 383 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
return [
//============================== New strings to translate ==============================//
'agenda' => [
- Create a ticketCreate a ticket
File manager.php
has 369 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
return [
//==================================== Translations ====================================//
'agenda' => [
- Create a ticketCreate a ticket
File manager.php
has 369 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
return [
//==================================== Translations ====================================//
'agenda' => [
- Create a ticketCreate a ticket
File manager.php
has 369 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
return [
//==================================== Translations ====================================//
'agenda' => [
- Create a ticketCreate a ticket
File manager.php
has 369 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
return [
//==================================== Translations ====================================//
'agenda' => [
- Create a ticketCreate a ticket
File manager.php
has 369 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
return [
//==================================== Translations ====================================//
'agenda' => [
- Create a ticketCreate a ticket
File manager.php
has 369 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
return [
//==================================== Translations ====================================//
'agenda' => [
- Create a ticketCreate a ticket
File web.php
has 319 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
- Create a ticketCreate a ticket
Method postStore
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function postStore(Request $request)
{
logger()->info(__METHOD__);
//////////////////
- Create a ticketCreate a ticket
Method getAvailability
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function getAvailability(Business $business, Request $request)
{
logger()->info(__METHOD__);
if (auth()->user()) {
- Create a ticketCreate a ticket
Method postAction
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function postAction(AlterAppointmentRequest $request)
{
logger()->info(__METHOD__);
//////////////////
- Create a ticketCreate a ticket
Method create
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function create(Business $business)
{
logger()->info(__METHOD__);
logger()->info(sprintf('businessId:%s', $business->id));
- Create a ticketCreate a ticket
Method init
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function init()
{
$this->boxes = [
'appointments_active_today' => [
'icon' => 'check',
- Create a ticketCreate a ticket
Method handle
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function handle(AppointmentWasCanceled $event)
{
logger()->info(__METHOD__);
$code = $event->appointment->code;
- Create a ticketCreate a ticket
Method handle
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function handle(AppointmentWasConfirmed $event)
{
logger()->info(__METHOD__);
$code = $event->appointment->code;
- Create a ticketCreate a ticket
Function getAvailability
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function getAvailability(Business $business, Request $request)
{
logger()->info(__METHOD__);
if (auth()->user()) {
- Read upRead up
- Create a ticketCreate a ticket
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 postStore
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
public function postStore(Request $request)
{
logger()->info(__METHOD__);
//////////////////
- Read upRead up
- Create a ticketCreate a ticket
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 store
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function store(Business $business, Request $request)
{
logger()->info(__METHOD__);
logger()->info(sprintf('businessId:%s', $business->id));
- Create a ticketCreate a ticket
Function render
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function render($request, Exception $exception)
{
if (app()->environment('production') || app()->environment('demo')) {
// Catch TokenMismatchException to show a friendly error message
if ($exception instanceof \Illuminate\Session\TokenMismatchException) {
- Read upRead up
- Create a ticketCreate a ticket
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 addSlots
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
protected function addSlots(array &$times, Vacancy $vacancy, Carbon $beginTime, $duration, $step, $maxNumberOfSlots)
- Create a ticketCreate a ticket