With the latest upgrade to Slim 4, we retrieve query and payload parameters, with $object->getArray()['key'] ?? 'default'.
This is not great for readability and maintainability, and could easily be improved with either:
a simple helper function
a wrapper around requests object
Whichever solution can make the code better and is relatively easy to set up.
Follow-up of https://github.com/shaarli/Shaarli/pull/1972#pullrequestreview-1386513173
With the latest upgrade to Slim 4, we retrieve query and payload parameters, with
$object->getArray()['key'] ?? 'default'
. This is not great for readability and maintainability, and could easily be improved with either:Whichever solution can make the code better and is relatively easy to set up.