original_string: public function onEndCroppingSession()
      {
          $this->abortIfReadOnly();
  
          $cropSessionKey = Input::get('cropSessionKey');
          if (!preg_match('/^[0-9a-z]+$/', $cropSessionKey)) {
              throw new ApplicationException('Invalid input data');
          }
  
          $this->removeCropEditDir($cropSessionKey);
      }
code: public function onEndCroppingSession()
      {
          $this->abortIfReadOnly();
  
          $cropSessionKey = Input::get('cropSessionKey');
          if (!preg_match('/^[0-9a-z]+$/', $cropSessionKey)) {
              throw new ApplicationException('Invalid input data');
          }
  
          $this->removeCropEditDir($cropSessionKey);
      }
code_tokens: public function onEndCroppingSession ( ) { $ this -> abortIfReadOnly ( ) ; $ cropSessionKey = Input :: get ( 'cropSessionKey' ) ; if ( ! preg_match ( '/^[0-9a-z]+$/' , $ cropSessionKey ) ) { throw new ApplicationException ( 'Invalid input data' ) ; } $ this -> removeCropEditDir ( $ cropSessionKey ) ; }
docstring: End crop session AJAX handler
  @return array
docstring_tokens: End crop session AJAX handler