Skip to content

Commit

Permalink
formattazione automatica con pint
Browse files Browse the repository at this point in the history
  • Loading branch information
madbob committed Jan 27, 2025
1 parent 25520ff commit 91c80a4
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion code/app/Helpers/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions code/app/Helpers/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions code/app/Models/Concerns/Iconable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions code/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion code/config/debugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down
2 changes: 1 addition & 1 deletion code/config/dompdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion code/public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
|
*/

$app = require_once __DIR__.'/../bootstrap/app.php';
$app = require __DIR__.'/../bootstrap/app.php';

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion code/tests/CreatesApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion code/tests/Services/ModifierTypesServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function test_destroy()
$this->fail('should never run');
}
catch (ModelNotFoundException $e) {
//good boy
// good boy
}
}
}
2 changes: 1 addition & 1 deletion code/tests/Services/MovementTypesServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function test_destroy()
$this->fail('should never run');
}
catch (ModelNotFoundException $e) {
//good boy
// good boy
}
}
}
2 changes: 1 addition & 1 deletion code/tests/Services/MovementsServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function test_destroy()
$this->fail('should never run');
}
catch (ModelNotFoundException $e) {
//good boy
// good boy
}
}

Expand Down

0 comments on commit 91c80a4

Please sign in to comment.