GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#26)
by
unknown
03:00
created

Utils.is_short_code?   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1 1
module Textris
2 1
  module Utils
3
    # The Phony gem doesn't handle short codes. Short codes can be 5 or 6 digits
4
    # long. There are more restrictions on short codes, but this is a good
5
    # general start.
6 1
    def is_short_code?(phone_number)
7 43
      !!phone_number.to_s.match(/\A\d{5,6}\z/)
8
    end
9
  end
10
end
11