XML 39 R28.htm IDEA: XBRL DOCUMENT v3.8.0.1
Earnings (Loss) Per Share (Tables)
9 Months Ended
Apr. 30, 2018
Earnings (Loss) 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
April 30,
  Nine Months Ended
April 30,
 
  2018  2017  2018  2017 
  (in thousands) 
Basic weighted-average number of shares  24,675   23,054   24,649   22,845 
Effect of dilutive securities:                
Stock options           49 
Non-vested restricted Class B common stock           95 
Diluted weighted-average number of shares  24,675   23,054   24,649   22,989 
Summary of shares excluded from the diluted earnings per share
  Three Months Ended
April 30,
  Nine Months Ended
April 30,
 
  2018  2017  2018  2017 
  (in thousands) 
Stock options  1,253   273   1,253   20 
Non-vested restricted Class B common stock  191   212   191    
Shares excluded from the calculation of diluted earnings per share  1,444   485   1,444   20