original_string: protected function writeAndRelease($handle, $content, $rewrite = false)
      {
          $rewrite && rewind($handle) && ftruncate($handle, 0);
          $result = fwrite($handle, $content);
          flock($handle, LOCK_UN);
          fclose($handle);
          return (bool) $result;
      }
code: protected function writeAndRelease($handle, $content, $rewrite = false)
      {
          $rewrite && rewind($handle) && ftruncate($handle, 0);
          $result = fwrite($handle, $content);
          flock($handle, LOCK_UN);
          fclose($handle);
          return (bool) $result;
      }
code_tokens: protected function writeAndRelease ( $ handle , $ content , $ rewrite = false ) { $ rewrite && rewind ( $ handle ) && ftruncate ( $ handle , 0 ) ; $ result = fwrite ( $ handle , $ content ) ; flock ( $ handle , LOCK_UN ) ; fclose ( $ handle ) ; return ( bool ) $ result ; }
docstring: Write content, release lock and close file
  
  @param  resource $handle  file handle
  @param  string   $content the value of cache
  @param  bool     $rewrite whether rewrite the whole file
  @return boolean
docstring_tokens: Write content release lock and close file