Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CS] Changes to support new php-cs-fixer rule set #1046

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Async/ResolveCache.php
Expand Up @@ -84,11 +84,11 @@ public static function jsonDeserialize(string $json): self
{
$data = array_replace(['path' => null, 'filters' => null, 'force' => false], JSON::decode($json));

if (false == $data['path']) {
if (!$data['path']) {
throw new LogicException('The message does not contain "path" but it is required.');
}

if (false == (is_null($data['filters']) || is_array($data['filters']))) {
if (!(is_null($data['filters']) || is_array($data['filters']))) {
throw new LogicException('The message filters could be either null or array.');
}

Expand Down
2 changes: 1 addition & 1 deletion Imagine/Cache/CacheManager.php
Expand Up @@ -106,7 +106,7 @@ public function addResolver($filter, ResolverInterface $resolver)
protected function getResolver($filter, $resolver)
{
// BC
if (false == $resolver) {
if (!$resolver) {
$config = $this->filterConfig->get($filter);

$resolverName = empty($config['cache']) ? $this->defaultResolver : $config['cache'];
Expand Down