Skip to content

Commit

Permalink
add missing types to Traits phphdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
fgibaux committed Jul 10, 2023
1 parent 669ed53 commit 3536bfc
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions src/Resources/Traits/FindsByName.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ trait FindsByName
/**
* Find an element by name.
*
* @param $term
* @param array $options
* @deprecated Use search method instead
* @param string $term
* @param array $options
* @deprecated Use search method instead
* @return Response
*/
public function findByName($term, $options = [])
Expand Down
10 changes: 5 additions & 5 deletions src/Resources/Traits/HandlesAssignments.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trait HandlesAssignments
/**
* Get the resource assignments.
*
* @param $id
* @param int $id
* @param array $options
* @return Response
*/
Expand All @@ -23,8 +23,8 @@ public function assignments($id, $options = [])
/**
* Add a new assignment to the resource.
*
* @param $id
* @param $user_id
* @param int $id
* @param int $user_id
* @return Response
*/
public function addAssignment($id, $user_id)
Expand All @@ -35,8 +35,8 @@ public function addAssignment($id, $user_id)
/**
* Delete an assignemt from the resource.
*
* @param $id
* @param $user_id
* @param int $id
* @param int $user_id
* @return Response
*/
public function deleteAssignment($id, $user_id)
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Traits/ListsActivities.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trait ListsActivities
/**
* List the resource activities.
*
* @param $id
* @param int $id
* @param array $options
* @return Response
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Traits/ListsAttachedFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trait ListsAttachedFiles
/**
* Get the resource attached files.
*
* @param $id The resource id
* @param int $id The resource id
* @param array $options Extra parameters
* @return Response
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Traits/ListsDeals.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trait ListsDeals
/**
* Get the resource deals.
*
* @param $id The resource id
* @param int $id The resource id
* @param array $options Extra parameters
* @return Response
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Traits/ListsFollowers.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trait ListsFollowers
/**
* List the followers of a resource.
*
* @param $id
* @param int $id
* @return Response
*/
public function followers($id)
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Traits/ListsPermittedUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trait ListsPermittedUsers
/**
* Get the resource permitted users.
*
* @param $id The resource id
* @param int $id The resource id
* @param null $access_level Access level value
* @return Response
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Traits/ListsProducts.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trait ListsProducts
/**
* Get the products attached to a resource.
*
* @param $id The resource id
* @param int $id The resource id
* @param array $options Extra parameters
* @return Response
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Traits/ListsUpdates.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trait ListsUpdates
/**
* Get the resource updates.
*
* @param $id
* @param int $id
* @param array $options
* @return Response
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/Traits/Searches.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
trait Searches
{
/**
* @param $term
* @param array $fields
* @param string $term
* @param array $fields
*
* @return Response
*/
Expand Down

0 comments on commit 3536bfc

Please sign in to comment.