Skip to content
Permalink
Browse files

Fix code smell

  • Loading branch information...
dereuromark committed Aug 16, 2017
1 parent bf64092 commit 02bcacee4560cb895f375142a96a2dff582a375f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Controller/Component/PaginatorComponent.php
@@ -204,7 +204,7 @@ public function paginate($object, array $settings = [])
$order = (array)$options['order'];
$sortDefault = $directionDefault = false;
if (!empty($defaults['order']) && count($defaults['order']) == 1) {
if (!empty($defaults['order']) && count($defaults['order']) === 1) {
$sortDefault = key($defaults['order']);
$directionDefault = current($defaults['order']);
}

0 comments on commit 02bcace

Please sign in to comment.
You can’t perform that action at this time.