- Sep 20, 2021
-
-
Stein Magne Bjorklund authored
-
Stein Magne Bjorklund authored
Do not implement properties or code. It is a interface and should be typed as one.
-
Stein Magne Bjorklund authored
CI now run unit tests. This should make failing tests pass.
-
Stein Magne Bjorklund authored
Util that enable us to upgrade parts of code base if needed.
-
Stein Magne Bjorklund authored
- Also remove extra include of settings. No longer needed.
-
Stein Magne Bjorklund authored
- Composer PSR-4 autoloading.
-
Stein Magne Bjorklund authored
- Reduce logic complexity. - Return early. Code get called on every request and should be fast. - Remove support for mirroring multiple uri. Code uses a long gone PHP function. Split this into a private method.
-
Stein Magne Bjorklund authored
- Also require the file. Force it to fail hard if not found.
-
Stein Magne Bjorklund authored
Cleanup that improve code readability.
-
Stein Magne Bjorklund authored
-
Stein Magne Bjorklund authored
First thing application do is loading the settings making sure that it is available.
-
Stein Magne Bjorklund authored
-
Stein Magne Bjorklund authored
-
Stein Magne Bjorklund authored
We cannot just remove data from common.inc.php The class expect and try to use it throwing errors/warning every time the application load.
-
Stein Magne Bjorklund authored
Needed by the application and we must make sure it is there. Anyone that does not like this can locally override this settings. One less settings that needs to live in settings.inc.php.
-
Stein Magne Bjorklund authored
Application default settings cannot have dependencies on the local user provided settings.
-
Stein Magne Bjorklund authored
- Require the application default settings. Loadspkr needs it and have to stop if not present and not simply throw a notification. - Introduce a constant that points to where Loadspkr have been installed. Allows us to later move the common.inc.php without it breaks the bootstrap.
-
Stein Magne Bjorklund authored
Full autoload the application boostrap process.
-
Stein Magne Bjorklund authored
Addressing a old legacy bug. Making sure the file validate also make it easier to spot newly introduced errors and bugs.
-
Stein Magne Bjorklund authored
We should not trust language " auto magic". Let us be sure we do a strict type check.
-
Stein Magne Bjorklund authored
Resolve "Make gitlab run PHPunit tests" Closes #16 See merge request !17
-
- Uses PHP 7.4 docker image and composer.
-
- Sep 15, 2021
-
-
Stein Magne Bjorklund authored
Resolve "Clean up class HTTPStatus" Closes #17 See merge request !15
-
Stein Magne Bjorklund authored
- No need to waste time calling Utils::uri2curie()
-
Stein Magne Bjorklund authored
- Use PSR-4 autoloading - Clean up code and reduce complexity.
-
Stein Magne Bjorklund authored
Resolve "Fully introduce namespace" Closes #11 See merge request !14
-
Stein Magne Bjorklund authored
-
Stein Magne Bjorklund authored
-
Stein Magne Bjorklund authored
- Paves way for real autoloading in the future.
-
Stein Magne Bjorklund authored
- HTML element deprecated should no longer be used. - Generic reformatting.
-
Stein Magne Bjorklund authored
Get best content type See merge request !12
-
Stein Magne Bjorklund authored
- Always called utilities. We need to make sure they work as expected. Introduce PHPUnit tests. - Due to the use of gobals inside the static methods they become untestable. Remove use of global but that also forces a change if method signature.
-
Stein Magne Bjorklund authored
- Makes assertions tests faster and easier to read.
-
Stein Magne Bjorklund authored
- Always run and should be fast. - Introduce tests to make sure I actually work. - Stop method from using global states to make it testable and safe.
-
Stein Magne Bjorklund authored
Haanga with composer See merge request !11
-
- Sep 09, 2021
-
-
Stein Magne Bjorklund authored
-
Stein Magne Bjorklund authored
-
Stein Magne Bjorklund authored
Since there is no code style lets use PSR-12 https://www.php-fig.org/psr/psr-12/
-
Stein Magne Bjorklund authored
Since there is no code style lets use PSR-12 https://www.php-fig.org/psr/psr-12/
-
Stein Magne Bjorklund authored
- Tool that allow us to do code style linting.
-