Skip to content

Commit

Permalink
Merge pull request #1046 from robfrawley/feature-ready-src-for-strict…
Browse files Browse the repository at this point in the history
…er-php-cs-rules

[CS] Changes to support new php-cs-fixer rule set
  • Loading branch information
robfrawley committed Feb 10, 2018
2 parents 390f4e5 + a7a3db1 commit 7593385
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 7593385

Please sign in to comment.