XML 85 R65.htm IDEA: XBRL DOCUMENT v3.19.3
DEBT - Summary of Interest Expense Related to Convertible Notes (Detail) - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2019
Jul. 31, 2018
5.25% Convertible Senior Notes Due 2019    
Interest Expense, Debt [Line Items]    
Debt instrument, interest expense $ 4,916 $ 8,427
5.25% Convertible Senior Notes Due 2019 | Interest expense related to contractual interest coupon    
Interest Expense, Debt [Line Items]    
Debt instrument, interest expense 1,932 3,655
5.25% Convertible Senior Notes Due 2019 | Interest expense related to accretion of the discount    
Interest Expense, Debt [Line Items]    
Debt instrument, interest expense 2,741 4,384
5.25% Convertible Senior Notes Due 2019 | Interest expense related to debt issuance costs    
Interest Expense, Debt [Line Items]    
Debt instrument, interest expense 243 $ 388
SPHG Holdings    
Interest Expense, Debt [Line Items]    
Debt instrument, interest expense 1,165  
SPHG Holdings | Interest expense related to contractual interest coupon    
Interest Expense, Debt [Line Items]    
Debt instrument, interest expense 473  
SPHG Holdings | Interest expense related to accretion of the discount    
Interest Expense, Debt [Line Items]    
Debt instrument, interest expense $ 692