Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

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.

Simple_Dashes::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 5
rs 10
c 0
b 0
f 0
ccs 5
cts 5
cp 1
cc 1
nc 1
nop 4
crap 1
1
<?php
2
/**
3
 *  This file is part of PHP-Typography.
4
 *
5
 *  Copyright 2017 Peter Putzer.
6
 *
7
 *  This program is free software; you can redistribute it and/or modify
8
 *  it under the terms of the GNU General Public License as published by
9
 *  the Free Software Foundation; either version 2 of the License, or
10
 *  (at your option) any later version.
11
 *
12
 *  This program is distributed in the hope that it will be useful,
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 *  GNU General Public License for more details.
16
 *
17
 *  You should have received a copy of the GNU General Public License along
18
 *  with this program; if not, write to the Free Software Foundation, Inc.,
19
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
 *
21
 *  ***
22
 *
23
 *  @package mundschenk-at/php-typography
24
 *  @license http://www.gnu.org/licenses/gpl-2.0.html
25
 */
26
27
namespace PHP_Typography\Settings;
28
29
/**
30
 * A basic Dashes implementation.
31
 *
32
 * @author Peter Putzer <[email protected]>
33
 *
34
 * @since 5.0.0
35
 */
36
final class Simple_Dashes implements Dashes {
37
38
	/**
39
	 * The dash character used for parenthetical dashes.
40
	 *
41
	 * @var string
42
	 */
43
	private $parenthetical_dash;
44
45
	/**
46
	 * The space character used around parenthetical dashes.
47
	 *
48
	 * @var string
49
	 */
50
	private $parenthetical_space;
51
52
	/**
53
	 * The dash character used for interval dashes.
54
	 *
55
	 * @var string
56
	 */
57
	private $interval_dash;
58
59
	/**
60
	 * The space character used around interval dashes.
61
	 *
62
	 * @var string
63
	 */
64
	private $interval_space;
65
66
	/**
67
	 * Creates a new quotes object.
68
	 *
69
	 * @param string $parenthetical       The dash character used for parenthetical dashes.
70
	 * @param string $parenthetical_space The space character used around parenthetical dashes.
71
	 * @param string $interval            The dash character used for interval dashes.
72
	 * @param string $interval_space      The space character used around interval dashes.
73
	 */
74 2
	public function __construct( $parenthetical, $parenthetical_space, $interval, $interval_space ) {
75 2
		$this->parenthetical_dash  = $parenthetical;
76 2
		$this->parenthetical_space = $parenthetical_space;
77 2
		$this->interval_dash       = $interval;
78 2
		$this->interval_space      = $interval_space;
79 2
	}
80
81
	/**
82
	 * Retrieves the dash used for interval dashes.
83
	 *
84
	 * @return string
85
	 */
86 2
	public function interval_dash() {
87 2
		return $this->interval_dash;
88
	}
89
90
	/**
91
	 * Retrieves the space character used around interval dashes.
92
	 *
93
	 * @return string
94
	 */
95 2
	public function interval_space() {
96 2
		return $this->interval_space;
97
	}
98
99
	/**
100
	 * Retrieves the dash used for parenthetical dashes.
101
	 *
102
	 * @return string
103
	 */
104 2
	public function parenthetical_dash() {
105 2
		return $this->parenthetical_dash;
106
	}
107
108
	/**
109
	 * Retrieves the space character used around parenthetical dashes.
110
	 *
111
	 * @return string
112
	 */
113 2
	public function parenthetical_space() {
114 2
		return $this->parenthetical_space;
115
	}
116
}
117