Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor code and update dependencies #187

Merged
merged 6 commits into from
Mar 23, 2024
Merged

Refactor code and update dependencies #187

merged 6 commits into from
Mar 23, 2024

Conversation

tvup
Copy link
Owner

@tvup tvup commented Mar 21, 2024

No description provided.

@tvup tvup changed the base branch from master to develop March 21, 2024 20:23
@tvup tvup requested a review from negoziator March 21, 2024 21:33
@@ -4,7 +4,7 @@ on: [push]

jobs:
build-test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hvorfor ikke 22.04 ? 🤔

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prøver lige af, om det kan lade sig give sig. Jeg mener, der er noget halløj med, at der ikke er php8.2 i det image, som github bruger til ubuntu-22.04

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Narhh, den bliver sur.
actions/runner-images#7545
Så kan man bruge setup-php til at fifle med det selv.
Hvad tænker du er bedst?

@@ -18,7 +18,7 @@ class Kernel extends HttpKernel
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
Middleware\TrimStrings::class,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vil det virke? Skal den ikke importes, hvis du fjerner namespace? eller er det noget L11 noget? 😄

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kernel er i App\Http-namespace, så burde den ikke fint kunne komme videre derfra? :)

@@ -235,22 +237,22 @@ public function getBill(string $start_date, string $end_date, string $price_area
}

if (array_key_exists('Spotpris', $bill)) {
if (Carbon::parse($hour, 'Europe/Copenhagen')->lessThanOrEqualTo(Carbon::parse()->now()->startOfHour())) {
if (Carbon::parse($hour, 'Europe/Copenhagen')->lessThanOrEqualTo(Carbon::now()->startOfHour())) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eller bare now()->startOfHour()

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arh! Good one! Tak :)

@tvup tvup merged commit c0c083b into develop Mar 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants