Skip to content

Refactor some code#3218

Merged
l0gicgate merged 6 commits into
slimphp:4.xfrom
mehdihasanpour:refactor-some-code
Jul 7, 2022
Merged

Refactor some code#3218
l0gicgate merged 6 commits into
slimphp:4.xfrom
mehdihasanpour:refactor-some-code

Conversation

@mehdihasanpour
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread tests/bootstrap.php Outdated
return false;
}
return true;
return ! (stripos($file, 'non-readable.cache') !== false)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You can simply do this:

return stripos($file, 'non-readable.cache') === false;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, this is a better way.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you also unwrap the code parentheses?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I unwrapped the code parentheses.

Comment thread tests/bootstrap.php Outdated
return false;
}
return true;
return ! (stripos($path, 'non-writable-directory') !== false)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same as above.

@l0gicgate l0gicgate added this to the 4.11.0 milestone Jul 7, 2022
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 7, 2022

Coverage Status

Coverage decreased (-0.0002%) to 99.892% when pulling c3dbd54 on mehdihasanpour:refactor-some-code into 2d2a295 on slimphp:4.x.

@l0gicgate l0gicgate merged commit 484a32a into slimphp:4.x Jul 7, 2022
chriscct7 pushed a commit to awesomemotive/aioseo-slim-v3-php-8.1 that referenced this pull request Sep 3, 2025
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.

4 participants