Skip to content

Conversation

jtojnar
Copy link
Owner

@jtojnar jtojnar commented Jun 8, 2025

Partial modernization based on https://github.com/nette/web-project

jtojnar added 10 commits June 8, 2025 00:59
Use `$value` instead of `$data->$name` everywhere.

Makes the code slightly easier to read.

There is slight change in behaviour: if the data does not have the `Sportident` or `Country` field, it will be skipped, whereas, previously, it would have been listed as “to rent” or “unknown”, respectively.

But this could only occur when the configuration changed to add those fields after a team had already been registered so we do not really care.
Following nette/web-project@9dc365a

`secret` represents a secret key that should be set to `nette-debug` cookie to enable the development mode, in addition to the IP requirement:

https://doc.nette.org/en/application/bootstrapping#toc-development-vs-production-mode
They look like setters but the object is actually immutable.
Having private members with the same name is quite confusing.

Also the properties are readonly so we should have been using `@property-read`.
jtojnar added 2 commits June 8, 2025 03:55
@jtojnar jtojnar merged commit d9e5b41 into master Jun 8, 2025
2 checks passed
@jtojnar jtojnar deleted the cleanups branch June 8, 2025 02:00
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.

1 participant