Skip to content

Commit

Permalink
Apply fixes from StyleCI (#186)
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
lukepolo authored Apr 11, 2017
1 parent 57d37b9 commit 45f68b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/LaraCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,14 @@ public function find($data)
}
}

switch(count($matches)) {
case 0 :
return null;
switch (count($matches)) {
case 0:
return;
break;
case 1:
return $matches[0];
break;
default :
default:
return $matches;
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ItemsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ public function testfindItemById()
$item->id = 123;

$this->assertEquals($item, $this->laracart->find([
'id' => 123
'id' => 123,
]));
}
}

0 comments on commit 45f68b4

Please sign in to comment.