XML 38 R27.htm IDEA: XBRL DOCUMENT v3.8.0.1
(Loss) Earnings Per Share (Tables)
3 Months Ended
Oct. 31, 2017
(Loss) Earnings Per Share [Abstract]  
Summary of weighted-average number of shares used in the calculation of basic and diluted (loss) earnings per share
  Three Months Ended
October 31,
 
  2017  2016 
  (in thousands) 
Basic weighted-average number of shares  24,628   22,712 
Effect of dilutive securities:        
Stock options     38 
Non-vested restricted Class B common stock     149 
Diluted weighted-average number of shares  24,628   22,899
Summary of shares excluded from the diluted earnings per share
  Three Months Ended
October 31,
 
  2017  2016 
  (in thousands) 
Stock options  1,273   32 
Non-vested restricted Class B common stock  223    
Shares excluded from the calculation of diluted earnings per share  1,496   32