From e342483f03307687047f8410e9f97a7b3c52b78e Mon Sep 17 00:00:00 2001 From: Gabriel Baker Date: Thu, 23 May 2013 06:36:40 +0100 Subject: [PATCH] This should be checking the value not the key --- PHPCI/Plugin/PhpCsFixer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPCI/Plugin/PhpCsFixer.php b/PHPCI/Plugin/PhpCsFixer.php index b4d298e9..9aaa7536 100644 --- a/PHPCI/Plugin/PhpCsFixer.php +++ b/PHPCI/Plugin/PhpCsFixer.php @@ -66,7 +66,7 @@ class PhpCsFixer implements \PHPCI\Plugin $this->args .= ' --diff'; } - if ( array_key_exists('level', $options) && array_key_exists($options['level'], $this->levels) ) + if ( array_key_exists('level', $options) && in_array($options['level'], $this->levels) ) { $this->level = $options['level']; $this->args .= ' --level='.$options['level'];