diff --git a/code/app/Helpers/Files.php b/code/app/Helpers/Files.php index 34963e09..8c7c82f0 100644 --- a/code/app/Helpers/Files.php +++ b/code/app/Helpers/Files.php @@ -85,7 +85,7 @@ function humanSizeToBytes($size) $val *= 1024; break; default: - throw new \UnexpectedValueException("Unità non prevista per dimensione file"); + throw new \UnexpectedValueException('Unità non prevista per dimensione file'); } return (int) $val; diff --git a/code/app/Helpers/Locale.php b/code/app/Helpers/Locale.php index f97628f2..d1d055db 100644 --- a/code/app/Helpers/Locale.php +++ b/code/app/Helpers/Locale.php @@ -52,11 +52,11 @@ function guessDecimal($value) if ($has_dot === false && $has_comma === false) { $ret = (int) $value; } - else if ($has_dot && $has_comma === false) { + elseif ($has_dot && $has_comma === false) { $ret = (float) $value; } // @phpstan-ignore-next-line - else if ($has_dot === false && $has_comma) { + elseif ($has_dot === false && $has_comma) { $ret = (float) strtr($value, ',', '.'); } else { diff --git a/code/app/Models/Concerns/Iconable.php b/code/app/Models/Concerns/Iconable.php index bcee3a13..02f78a98 100644 --- a/code/app/Models/Concerns/Iconable.php +++ b/code/app/Models/Concerns/Iconable.php @@ -119,6 +119,7 @@ public static function selectiveIconsGroup($contents, $group) if ($icon == $group) { $options = $condition->options; $options = $options($contents); + return (object) [ 'label' => $condition->text, 'items' => $options, diff --git a/code/composer.json b/code/composer.json index b553b51f..37f2bb23 100644 --- a/code/composer.json +++ b/code/composer.json @@ -36,6 +36,7 @@ "fakerphp/faker": "^1.23", "laracraft-tech/laravel-xhprof": "^1.0", "larastan/larastan": "^2.9", + "laravel/pint": "^1.20", "laravel/sail": "^1.23", "mockery/mockery": "~1.0", "nunomaduro/collision": "^7.0", diff --git a/code/config/debugbar.php b/code/config/debugbar.php index 27791b4d..d071b086 100644 --- a/code/config/debugbar.php +++ b/code/config/debugbar.php @@ -206,7 +206,7 @@ ], 'views' => [ 'timeline' => false, // Add the views to the timeline (Experimental) - 'data' => false, //Note: Can slow down the application, because the data can be quite large.. + 'data' => false, // Note: Can slow down the application, because the data can be quite large.. 'exclude_paths' => [], // Add the paths which you don't want to appear in the views ], 'route' => [ diff --git a/code/config/dompdf.php b/code/config/dompdf.php index 6556d19e..60ccf498 100644 --- a/code/config/dompdf.php +++ b/code/config/dompdf.php @@ -119,7 +119,7 @@ * If pdflib present in web server and auto or selected explicitely above, * a real license code must exist! */ - //"DOMPDF_PDFLIB_LICENSE" => "your license key here", + // "DOMPDF_PDFLIB_LICENSE" => "your license key here", /** * html target media view which should be rendered into pdf. diff --git a/code/public/index.php b/code/public/index.php index eff17465..f42b81ff 100644 --- a/code/public/index.php +++ b/code/public/index.php @@ -32,7 +32,7 @@ | */ -$app = require_once __DIR__.'/../bootstrap/app.php'; +$app = require __DIR__.'/../bootstrap/app.php'; /* |-------------------------------------------------------------------------- diff --git a/code/tests/CreatesApplication.php b/code/tests/CreatesApplication.php index 5bec8bd5..c8aade27 100644 --- a/code/tests/CreatesApplication.php +++ b/code/tests/CreatesApplication.php @@ -10,7 +10,7 @@ public function createApplication() { putenv('DB_CONNECTION=sqlite_testing'); - $app = require_once __DIR__.'/../bootstrap/app.php'; + $app = require __DIR__.'/../bootstrap/app.php'; $app->make(Kernel::class)->bootstrap(); diff --git a/code/tests/Services/ModifierTypesServiceTest.php b/code/tests/Services/ModifierTypesServiceTest.php index ad1ac95b..5f4258c1 100644 --- a/code/tests/Services/ModifierTypesServiceTest.php +++ b/code/tests/Services/ModifierTypesServiceTest.php @@ -123,7 +123,7 @@ public function test_destroy() $this->fail('should never run'); } catch (ModelNotFoundException $e) { - //good boy + // good boy } } } diff --git a/code/tests/Services/MovementTypesServiceTest.php b/code/tests/Services/MovementTypesServiceTest.php index 13cc7d0d..f60b385e 100644 --- a/code/tests/Services/MovementTypesServiceTest.php +++ b/code/tests/Services/MovementTypesServiceTest.php @@ -123,7 +123,7 @@ public function test_destroy() $this->fail('should never run'); } catch (ModelNotFoundException $e) { - //good boy + // good boy } } } diff --git a/code/tests/Services/MovementsServiceTest.php b/code/tests/Services/MovementsServiceTest.php index a34dcdb0..d212f39f 100644 --- a/code/tests/Services/MovementsServiceTest.php +++ b/code/tests/Services/MovementsServiceTest.php @@ -217,7 +217,7 @@ public function test_destroy() $this->fail('should never run'); } catch (ModelNotFoundException $e) { - //good boy + // good boy } }