original_string: protected function copyBrokenImage($path)
      {
          try {
              $thumbnailDir = dirname($path);
              if (!File::isDirectory($thumbnailDir) && File::makeDirectory($thumbnailDir, 0777, true) === false) {
                  return;
              }
  
              File::copy($this->getBrokenImagePath(), $path);
          }
          catch (Exception $ex) {
              traceLog($ex->getMessage());
          }
      }
code: protected function copyBrokenImage($path)
      {
          try {
              $thumbnailDir = dirname($path);
              if (!File::isDirectory($thumbnailDir) && File::makeDirectory($thumbnailDir, 0777, true) === false) {
                  return;
              }
  
              File::copy($this->getBrokenImagePath(), $path);
          }
          catch (Exception $ex) {
              traceLog($ex->getMessage());
          }
      }
code_tokens: protected function copyBrokenImage ( $ path ) { try { $ thumbnailDir = dirname ( $ path ) ; if ( ! File :: isDirectory ( $ thumbnailDir ) && File :: makeDirectory ( $ thumbnailDir , 0777 , true ) === false ) { return ; } File :: copy ( $ this -> getBrokenImagePath ( ) , $ path ) ; } catch ( Exception $ ex ) { traceLog ( $ ex -> getMessage ( ) ) ; } }
docstring: Copy broken image to destination
  @param string $path
  @return void
docstring_tokens: Copy broken image to destination