Skip to content

Commit

Permalink
Remove debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
opticbob committed Sep 6, 2024
1 parent d58ae69 commit aaf8224
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ def next_steps_part3(pdf)
private

def add_text_with_spacing(pdf, text, size: 12, move_down: 10, style: :normal, font: 'bitter')

Check failure on line 94 in modules/representation_management/lib/representation_management/v0/pdf_constructor/base.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Metrics/ParameterLists: Avoid parameter lists longer than 5 parameters. [6/5]
p "add_text_with_spacing: #{text}", "size: #{size}", "move_down: #{move_down}", "style: #{style}",
"font: #{font}", '*' * 50
pdf.font(font, style:) do
pdf.font_size(size)
pdf.text(text)
Expand All @@ -103,14 +101,11 @@ def add_text_with_spacing(pdf, text, size: 12, move_down: 10, style: :normal, fo
end

def format_phone_number(phone_number)
p "format_phone_number: #{phone_number}"
return '' if phone_number.blank?

p "format_phone_number: #{phone_number} not blank"
phone_number = phone_number.gsub(/\D/, '')
return phone_number if phone_number.length < 10

p "format_phone_number: #{phone_number} length >= 10"
"#{phone_number[0..2]}-#{phone_number[3..5]}-#{phone_number[6..9]}"
end

Expand Down

0 comments on commit aaf8224

Please sign in to comment.