Skip to content

Commit

Permalink
update AbstractRecombee
Browse files Browse the repository at this point in the history
  • Loading branch information
amranidev committed Apr 21, 2019
1 parent 788eb42 commit 625a9e4
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/AbstractRecombee.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function deleteItem($item_id)
*
* @return \Recombee\RecommApi\Requests\ListItems
*/
public function listItems(array $options)
public function listItems(array $options = [])
{
$items = new ListItems($options);

Expand Down Expand Up @@ -225,7 +225,7 @@ public function deleteUser($user_id)
*
* @return \Recombee\RecommApi\Requests\MergeUsers
*/
public function mergeUsersWithId($target_user_id, $source_user_id, array $params)
public function mergeUsersWithId($target_user_id, $source_user_id, array $params = [])
{
$merge = new MergeUsers($target_user_id, $source_user_id, $params);

Expand All @@ -239,7 +239,7 @@ public function mergeUsersWithId($target_user_id, $source_user_id, array $params
*
* @return \Recombee\RecommApi\Requests\ListUsers
*/
public function listUsers(array $options)
public function listUsers(array $options = [])
{
$users = new listUsers($options);

Expand Down Expand Up @@ -358,9 +358,9 @@ public function deleteItemProperty($property)
*
* @return \Recombee\RecommApi\Requests\AddDetailView
*/
public function addDetailView($user_id, $item_id, array $options)
public function addDetailView($user_id, $item_id, array $options = [])
{
$detailedView = new AddDetailView($user_id, $item_id, $options);
$detailedView = new AddDetailView($user_id, $item_id, $options = []);

return $detailedView;
}
Expand All @@ -374,7 +374,7 @@ public function addDetailView($user_id, $item_id, array $options)
*
* @return \Recombee\RecommApi\Requests\DeleteDetailView
*/
public function deleteDetailView($user_id, $item_id, array $options)
public function deleteDetailView($user_id, $item_id, array $options = [])
{
$detailedView = new DeleteDetailView($user_id, $item_id, $options);

Expand Down Expand Up @@ -404,7 +404,7 @@ public function listItemDetailViews($item_id)
*
* @return \Recombee\RecommApi\Requests\AddPurchase
*/
public function addPurchase($user_id, $item_id, $options)
public function addPurchase($user_id, $item_id, array $options = [])
{
$purchase = new AddPurchase($user_id, $item_id, $options);

Expand All @@ -420,7 +420,7 @@ public function addPurchase($user_id, $item_id, $options)
*
* @return \Recombee\RecommApi\Requests\DeletePurchase
*/
public function deletePurchase($user_id, $item_id, array $options)
public function deletePurchase($user_id, $item_id, array $options = [])
{
$purchase = new DeletePurchase($user_id, $item_id, $options);

Expand All @@ -437,7 +437,7 @@ public function deletePurchase($user_id, $item_id, array $options)
*
* @return \Recombee\RecommApi\Requests\AddRating
*/
public function addRating($user_id, $item_id, float $rating, array $options)
public function addRating($user_id, $item_id, float $rating, array $options = [])
{
$rating = new AddRating($user_id, $item_id, $rating, $options);

Expand All @@ -453,7 +453,7 @@ public function addRating($user_id, $item_id, float $rating, array $options)
*
* @return \Recombee\RecommApi\Requests\DeleteRating
*/
public function deleteRating($user_id, $item_id, array $options)
public function deleteRating($user_id, $item_id, array $options = [])
{
$rating = new DeleteRating($user_id, $item_id, $options);

Expand Down Expand Up @@ -497,7 +497,7 @@ public function listUserRatings($user_id)
*
* @return \Recombee\RecommApi\Requests\AddCartAddition
*/
public function addCartAddition($user_id, $item_id, array $options)
public function addCartAddition($user_id, $item_id, array $options = [])
{
$addition = new AddCartAddition($user_id, $item_id, $options);

Expand All @@ -513,7 +513,7 @@ public function addCartAddition($user_id, $item_id, array $options)
*
* @return \Recombee\RecommApi\Requests\DeleteCartAddition
*/
public function deleteCartAddition($user_id, $item_id, array $options)
public function deleteCartAddition($user_id, $item_id, array $options = [])
{
$addition = new DeleteCartAddition($user_id, $item_id, $options);

Expand All @@ -529,7 +529,7 @@ public function deleteCartAddition($user_id, $item_id, array $options)
*
* @return \Recombee\RecommApi\Requests\AddBookmark
*/
public function addBookmark($user_id, $item_id, array $options)
public function addBookmark($user_id, $item_id, array $options = [])
{
$bookmark = new AddBookmark($user_id, $item_id, $options);

Expand All @@ -545,7 +545,7 @@ public function addBookmark($user_id, $item_id, array $options)
*
* @return \Recombee\RecommApi\Requests\DeleteBookmark
*/
public function deleteBookmark($user_id, $item_id, array $options)
public function deleteBookmark($user_id, $item_id, array $options = [])
{
$bookmark = new DeleteBookmark($user_id, $item_id, $options);

Expand Down Expand Up @@ -629,13 +629,13 @@ public function listSeries()
/**
* List Series items.
*
* @param string $serie_id
* @param string $series_id
*
* @return \Recombee\RecommApi\Requests\ListSeriesItems
*/
public function listSeriesItems($serie_id)
public function listSeriesItems($series_id)
{
$items = new ListSeriesItems($serie_id);
$items = new ListSeriesItems($series_id);

return $items;
}
Expand All @@ -650,7 +650,7 @@ public function listSeriesItems($serie_id)
*
* @return \Recombee\RecommApi\Requests\SetViewPortion
*/
public function setViewPortion($userId, $itemId, float $portion, array $options)
public function setViewPortion($userId, $itemId, float $portion, array $options = [])
{
$viewPortion = new SetViewPortion($userId, $itemId, $portion, $options);

Expand All @@ -666,7 +666,7 @@ public function setViewPortion($userId, $itemId, float $portion, array $options)
*
* @return \Recombee\RecommApi\Requests\DeleteViewPortion
*/
public function deleteViewPortion($userId, $itemId, array $options)
public function deleteViewPortion($userId, $itemId, array $options = [])
{
$deleteViewPortion = new DeleteViewPortion($userId, $itemId, $options);

Expand Down

0 comments on commit 625a9e4

Please sign in to comment.