File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
app/code/Magento/Sales/Model Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1766,31 +1766,31 @@ public function getTracksCollection()
1766
1766
/**
1767
1767
* Check order invoices availability
1768
1768
*
1769
- * @return int
1769
+ * @return bool
1770
1770
*/
1771
1771
public function hasInvoices ()
1772
1772
{
1773
- return $ this ->getInvoiceCollection ()->count ();
1773
+ return boolval ( $ this ->getInvoiceCollection ()->count () );
1774
1774
}
1775
1775
1776
1776
/**
1777
1777
* Check order shipments availability
1778
1778
*
1779
- * @return int
1779
+ * @return bool
1780
1780
*/
1781
1781
public function hasShipments ()
1782
1782
{
1783
- return $ this ->getShipmentsCollection ()->count ();
1783
+ return boolval ( $ this ->getShipmentsCollection ()->count () );
1784
1784
}
1785
1785
1786
1786
/**
1787
1787
* Check order creditmemos availability
1788
1788
*
1789
- * @return int
1789
+ * @return bool
1790
1790
*/
1791
1791
public function hasCreditmemos ()
1792
1792
{
1793
- return $ this ->getCreditmemosCollection ()->count ();
1793
+ return boolval ( $ this ->getCreditmemosCollection ()->count () );
1794
1794
}
1795
1795
1796
1796
/**
You can’t perform that action at this time.
0 commit comments