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 @@ -1783,31 +1783,31 @@ public function getTracksCollection()
1783
1783
/**
1784
1784
* Check order invoices availability
1785
1785
*
1786
- * @return int
1786
+ * @return bool
1787
1787
*/
1788
1788
public function hasInvoices ()
1789
1789
{
1790
- return $ this ->getInvoiceCollection ()->count ();
1790
+ return boolval ( $ this ->getInvoiceCollection ()->count () );
1791
1791
}
1792
1792
1793
1793
/**
1794
1794
* Check order shipments availability
1795
1795
*
1796
- * @return int
1796
+ * @return bool
1797
1797
*/
1798
1798
public function hasShipments ()
1799
1799
{
1800
- return $ this ->getShipmentsCollection ()->count ();
1800
+ return boolval ( $ this ->getShipmentsCollection ()->count () );
1801
1801
}
1802
1802
1803
1803
/**
1804
1804
* Check order creditmemos availability
1805
1805
*
1806
- * @return int
1806
+ * @return bool
1807
1807
*/
1808
1808
public function hasCreditmemos ()
1809
1809
{
1810
- return $ this ->getCreditmemosCollection ()->count ();
1810
+ return boolval ( $ this ->getCreditmemosCollection ()->count () );
1811
1811
}
1812
1812
1813
1813
/**
You can’t perform that action at this time.
0 commit comments