Commit Graph

16 Commits

Author SHA1 Message Date
Nabeel Shahzad
7cb6056234
refactor: migrate to Laravel 13 attribute syntax
Apply rector's Laravel13 set:

- 12 models: $incrementing/$timestamps properties -> #[WithoutIncrementing] / #[WithoutTimestamps] attributes
- 7 console commands: $signature property -> #[Signature(...)] attribute

Mechanical changes via 'vendor/bin/rector process'. No behavior changes.
All gates green: pint, phpstan, rector dry-run clean post-fix.

Out-of-scope to the route-forge change; landed separately so the
RouteForge PR diff stays focused on the new feature.
2026-05-24 10:40:26 -05:00
Arthur Parienté
7490e72523
[8.x] refactor: use native php enum instead of class (#2210)
* wip

* refactor: update enum handling and improve type hints across models

* refactor: deprecate labels and select methods in HasSelect trait for better separation of concerns

* copilot suggestions
2026-05-12 16:29:41 -05:00
Arthur Parienté
992b6d343a
[8.x] feature: upgrade to Laravel 13 (#2204)
* upgrade to laravel 13

* phpstan

* rollback to symfony 7.4

* fix: ModuleService merge

* refactor: new rector rules
2026-05-06 11:27:21 -05:00
Arthur Parienté
b2bc7b0900
[8.x] refactor: upgrade pint (#2152)
* refactor: upgrade pint

* exclude modules from pint

* apply ai suggestions
2026-03-14 13:34:18 -05:00
Arthur Parienté
0695ed0823
chore(phpstan): setup and add level 1 (#2073)
* wip

* refactor: phpstan level 1

* refactor: how the amount of people per fare is passed in the simbrief resource

* ci: add phpstan

* refactor: phpstan level 2

* fix: new avatar column name

* refactor: rollback avatar column name

* fix: type in FareService
2025-08-20 11:32:48 -05:00
Arthur Parienté
5aa4f0d3e3
feat: reintroduce ide-helper (#2067)
* feat: add back ide-helper

* feat: add model phpdocs

* feat: generate ide-helper automatically after composer update
2025-08-14 10:15:37 -05:00
Arthur Parienté
28e2d33b88
[8.x] Add RectorPHP (#1986)
* Add rector

* Remove cache

* Run rector again

* Run pint

* Run Rector in CI

* Update composer.lock
2025-03-14 11:38:16 -05:00
B.Fatih KOZ
9081bdb771
Model Updates (Relationships) (#1573)
* Return Types and New Relationships

Added return types to current relationships

Added new relationships to Airport, Airline, Flight, Rank

* Update Aircraft.php

Fix for Znck BelongsToThrough return type check

* Update Aircraft.php

* StyleCi Fixes

* Update Flight.php

Switching from HasOne to BelongsTo for SimBrief test case
2023-08-08 08:46:40 -05:00
Nabeel S
75d6e2a6a5
Make a copy of the fares when saving them (#1545)
* Make a copy of the fares when saving them

* Style fixes

* Fix fares being editable in admin

* styleci

* Only copy over fields which don't have values

* Set the capacity before checking the count

* Remove use

* Additional comments

* Style fixes

* More style fixes

* Fix tests for fares

* Style fixes
2023-06-16 11:13:51 -05:00
Nabeel S
cbb7d6e274
Fix pilot leave calculation #1022 (#1035)
* Fix pilot leave calculation #1022

* Remove unused imports

* Add logging where fares are being saved
2021-02-17 18:54:18 -05:00
Nabeel S
23eb9dcbda
384 Laravel 6 changes (#385)
* 384 Laravel 6 changes

* Library versions

* Update package versions

* Add keyType to models

* Remove unused dependencies

* StyleCI fixes

* Fix models for test

* Fix tests output and update test runner

* Unused imports

* Update exceptions handler

* Fix login page
2019-09-13 08:05:02 -04:00
Nabeel Shahzad
a720f12e0b Rename Interfaces to Contracts to better match Laravel conventions 2019-07-15 15:44:31 -04:00
Nabeel Shahzad
9596d88b48 Apply fixes from StyleCI 2018-08-26 16:40:04 +00:00
Nabeel Shahzad
bb5bb4d4c7 Fixed scoping rules in Model classes 2018-03-20 19:40:19 -05:00
Nabeel Shahzad
ccf56ddec1 Fix formatting and interfaces in nearly every file 2018-03-19 20:50:40 -05:00
Nabeel Shahzad
58e0f50c48 specify fares, js to dynamically change fare form; get applicable fares for the flight/pirep #125 2018-02-24 15:38:25 -06:00