original_string: private function createFile(array $fileInfo = []) {
      $file = new \Nuki\Models\Data\File($fileInfo['tmp_name'], $fileInfo['size']);
      
      $file->setExtension(pathinfo($fileInfo['name'], PATHINFO_EXTENSION));
      $file->setName(pathinfo($fileInfo['name'], PATHINFO_BASENAME));
      
      return $file;
    }
code: private function createFile(array $fileInfo = []) {
      $file = new \Nuki\Models\Data\File($fileInfo['tmp_name'], $fileInfo['size']);
      
      $file->setExtension(pathinfo($fileInfo['name'], PATHINFO_EXTENSION));
      $file->setName(pathinfo($fileInfo['name'], PATHINFO_BASENAME));
      
      return $file;
    }
code_tokens: private function createFile ( array $ fileInfo = [ ] ) { $ file = new \ Nuki \ Models \ Data \ File ( $ fileInfo [ 'tmp_name' ] , $ fileInfo [ 'size' ] ) ; $ file -> setExtension ( pathinfo ( $ fileInfo [ 'name' ] , PATHINFO_EXTENSION ) ) ; $ file -> setName ( pathinfo ( $ fileInfo [ 'name' ] , PATHINFO_BASENAME ) ) ; return $ file ; }
docstring: Create file object
  
  @param array $fileInfo
  @return \Nuki\Models\Data\File
docstring_tokens: Create file object