Skip to content

Conversation

@jnorell
Copy link

@jnorell jnorell commented Dec 27, 2021

No description provided.

*/
public function setTimeStep($step)
{
if (! is_int($step) || ! $step > 0) {
Copy link
Owner

Choose a reason for hiding this comment

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

I didn't configure a style linter, but would like to keep it PSR-12 compatible, so could we format this differently?
Also I don't thing not and greater than should be combined because is simpler to use lower than

Suggested change
if (! is_int($step) || ! $step > 0) {
if (!is_int($step) || $step < 1) {

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.

2 participants