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
Push — master ( 668441...ff0f08 )
by P.R.
02:56
created

KerapuStyle   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 92.31%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 32
ccs 12
cts 13
cp 0.9231
rs 10
wmc 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 16 1
A text() 0 8 3
1
"""
2
PyStratum
3
4
Copyright 2015-2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8 1
from cleo import OutputFormatterStyle
9 1
from cleo.styles import CleoStyle
10
11
12 1
class KerapuStyle(CleoStyle):
13
    """
14
    Output style for Kerapu.
15
    """
16
17
    # ------------------------------------------------------------------------------------------------------------------
18 1
    def __init__(self, input, output):
19
        """
20
        Object constructor.
21
22
        :param cleo.inputs.input.Input input: The input object.
23
        :param cleo.outputs.output.Output output: The output object.
24
        """
25 1
        CleoStyle.__init__(self, input, output)
26
27
        # Create style notes.
28 1
        style = OutputFormatterStyle('yellow', None, ['bold'])
29 1
        output.get_formatter().set_style('note', style)
30
31
        # Create style for file and directory names.
32 1
        style = OutputFormatterStyle('white', None, ['bold'])
33 1
        output.get_formatter().set_style('fso', style)
34
35
    # ------------------------------------------------------------------------------------------------------------------
36 1
    def text(self, message):
37 1
        if isinstance(message, list):
38
            messages = message
39
        else:
40 1
            messages = [message]
41
42 1
        for line in messages:
43 1
            self.writeln(' {0}'.format(line))
44
45
# ----------------------------------------------------------------------------------------------------------------------
46