diff options
author | Deven Bansod <devenbansod@users.noreply.github.com> | 2018-12-09 15:51:22 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-09 15:51:22 +0530 |
commit | 5e8dbcf3ff0d1123efd731863083a9af539e5992 (patch) | |
tree | b60470ba4a628ee748310403dd71caad46101968 /src/Components/Array2d.php | |
parent | ad6a0ce1efcde74726e28e9b3da9ffad3fc4c474 (diff) | |
parent | 4b3684f16ecb3539057cbba3141473c059141a45 (diff) | |
download | sql-parser-5e8dbcf3ff0d1123efd731863083a9af539e5992.zip sql-parser-5e8dbcf3ff0d1123efd731863083a9af539e5992.tar.gz sql-parser-5e8dbcf3ff0d1123efd731863083a9af539e5992.tar.bz2 |
Merge pull request #206 from bperel/cleanup
Cleanup the code
* Avoid duplicate if conditions
* Use switch/case instead of ifs when possible
* Use triple (in)equalities when type compatibility is ensured
Diffstat (limited to 'src/Components/Array2d.php')
-rw-r--r-- | src/Components/Array2d.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Components/Array2d.php b/src/Components/Array2d.php index 92d8b16..984179c 100644 --- a/src/Components/Array2d.php +++ b/src/Components/Array2d.php @@ -82,7 +82,7 @@ class Array2d extends Component $arrCount = count($arr->values); if ($count === -1) { $count = $arrCount; - } elseif ($arrCount != $count) { + } elseif ($arrCount !== $count) { $parser->error( sprintf( Translator::gettext('%1$d values were expected, but found %2$d.'), |