original_string: public function makeBoxFile($boxFile, $maxLength = -1, $offset = -1)
      {
          //Uploading file by file path
          if (!$boxFile instanceof BoxFile) {
              //File is valid
              if (is_file($boxFile)) {
                  //Create a BoxFile Object
                  $boxFile = new BoxFile($boxFile, $maxLength, $offset);
              } else {
                  //File invalid/doesn't exist
                  throw new Exceptions\BoxClientException("File '{$boxFile}' is invalid.");
              }
          }
  
          $boxFile->setOffset($offset);
          $boxFile->setMaxLength($maxLength);
  
          //Return the BoxFile Object
          return $boxFile;
      }
code: public function makeBoxFile($boxFile, $maxLength = -1, $offset = -1)
      {
          //Uploading file by file path
          if (!$boxFile instanceof BoxFile) {
              //File is valid
              if (is_file($boxFile)) {
                  //Create a BoxFile Object
                  $boxFile = new BoxFile($boxFile, $maxLength, $offset);
              } else {
                  //File invalid/doesn't exist
                  throw new Exceptions\BoxClientException("File '{$boxFile}' is invalid.");
              }
          }
  
          $boxFile->setOffset($offset);
          $boxFile->setMaxLength($maxLength);
  
          //Return the BoxFile Object
          return $boxFile;
      }
code_tokens: public function makeBoxFile ( $ boxFile , $ maxLength = - 1 , $ offset = - 1 ) { //Uploading file by file path if ( ! $ boxFile instanceof BoxFile ) { //File is valid if ( is_file ( $ boxFile ) ) { //Create a BoxFile Object $ boxFile = new BoxFile ( $ boxFile , $ maxLength , $ offset ) ; } else { //File invalid/doesn't exist throw new Exceptions \ BoxClientException ( "File '{$boxFile}' is invalid." ) ; } } $ boxFile -> setOffset ( $ offset ) ; $ boxFile -> setMaxLength ( $ maxLength ) ; //Return the BoxFile Object return $ boxFile ; }
docstring: Make BoxFile Object
  
  @param  string|BoxFile $boxFile BoxFile object or Path to file
  @param int $maxLength   Max Bytes to read from the file
  @param int $offset      Seek to specified offset before reading
  
  @return \Box\BoxFile
docstring_tokens: Make BoxFile Object