Fix coding standard (no_blank_lines_after_phpdoc, single_blank_line_before_namespace, yoda_style)

This commit is contained in:
Meritoo
2017-09-20 09:27:56 +02:00
parent e1fefcdeae
commit 7aa2239dbd
12 changed files with 69 additions and 69 deletions

View File

@@ -109,7 +109,7 @@ class Collection implements Countable, ArrayAccess, IteratorAggregate
*/
public function add($element, $index = null)
{
if ($index === null) {
if (null === $index) {
$this->elements[] = $element;
} else {
$this->elements[$index] = $element;
@@ -216,7 +216,7 @@ class Collection implements Countable, ArrayAccess, IteratorAggregate
{
$index = Arrays::getIndexOf($this->elements, $element);
return $index !== null && $index !== false;
return null !== $index && false !== $index;
}
/**