for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* An collection of functions shared by RepeatOrdersPage and AcccountPage extension.
*
*/
trait RepeatOrdersTrait
{
* Returns all {@link Order} records for this
* member that are completed.
* @return ArrayList
DataList
This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.
@return
public function RepeatOrders()
$memberID = Member::currentUserID();
return RepeatOrder::get()
->filter(['MemberID' => $memberID])
->sort('Created', 'DESC');
}
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.