@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php require __DIR__ . '/_header.php'; ?> |
|
1 | +<?php require __DIR__.'/_header.php'; ?> |
|
2 | 2 | |
3 | 3 | <?php |
4 | 4 | $map = [ |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | <tbody> |
58 | 58 | <?php foreach ($classes as $class) { |
59 | 59 | if (count($class['violations']) > 0) { |
60 | - $currentId = 'bloc-' . uniqid('', true); |
|
60 | + $currentId = 'bloc-'.uniqid('', true); |
|
61 | 61 | ?> |
62 | 62 | |
63 | 63 | <tr> |
@@ -107,4 +107,4 @@ discard block |
||
107 | 107 | } |
108 | 108 | } |
109 | 109 | </script> |
110 | -<?php require __DIR__ . '/_footer.php'; ?> |
|
110 | +<?php require __DIR__.'/_footer.php'; ?> |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function writeln($message) |
25 | 25 | { |
26 | - $this->write(\PHP_EOL . $message); |
|
26 | + $this->write(\PHP_EOL.$message); |
|
27 | 27 | return $this; |
28 | 28 | } |
29 | 29 |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function writeln($message) |
33 | 33 | { |
34 | - return $this->write(\PHP_EOL . $message); |
|
34 | + return $this->write(\PHP_EOL.$message); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function clearln() |
59 | 59 | { |
60 | - return $this->writeln("\x0D" . \PHP_EOL . "\x1B[2K"); |
|
60 | + return $this->writeln("\x0D".\PHP_EOL."\x1B[2K"); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -98,7 +98,7 @@ |
||
98 | 98 | return |
99 | 99 | 0 >= \version_compare( |
100 | 100 | '10.0.10586', |
101 | - \PHP_WINDOWS_VERSION_MAJOR . '.' . \PHP_WINDOWS_VERSION_MINOR . '.' . \PHP_WINDOWS_VERSION_BUILD |
|
101 | + \PHP_WINDOWS_VERSION_MAJOR.'.'.\PHP_WINDOWS_VERSION_MINOR.'.'.\PHP_WINDOWS_VERSION_BUILD |
|
102 | 102 | ) |
103 | 103 | || false !== \getenv('ANSICON') |
104 | 104 | || 'ON' === \getenv('ConEmuANSI') |
@@ -71,16 +71,16 @@ |
||
71 | 71 | $files = []; |
72 | 72 | |
73 | 73 | $regexForFilter = !empty($this->excludedDirs) |
74 | - ? '((?!' . \implode('|', \array_map('\preg_quote', $this->excludedDirs)) . ').)+' |
|
74 | + ? '((?!'.\implode('|', \array_map('\preg_quote', $this->excludedDirs)).').)+' |
|
75 | 75 | : '.+'; |
76 | 76 | |
77 | 77 | foreach ($paths as $path) { |
78 | 78 | if (\is_dir($path)) { |
79 | - $path = \rtrim($path, \DIRECTORY_SEPARATOR) . \DIRECTORY_SEPARATOR; |
|
79 | + $path = \rtrim($path, \DIRECTORY_SEPARATOR).\DIRECTORY_SEPARATOR; |
|
80 | 80 | $directory = new RecursiveDirectoryIterator($path, $this->flags); |
81 | 81 | $iterator = new RecursiveIteratorIterator($directory); |
82 | 82 | |
83 | - $filterRegex = \sprintf('`^%s%s$`', $regexForFilter, '\.(' . \implode('|', $this->extensions) . ')'); |
|
83 | + $filterRegex = \sprintf('`^%s%s$`', $regexForFilter, '\.('.\implode('|', $this->extensions).')'); |
|
84 | 84 | |
85 | 85 | $filteredIterator = new RegexIterator( |
86 | 86 | $iterator, |
@@ -32,7 +32,7 @@ |
||
32 | 32 | public function read(Config $config) |
33 | 33 | { |
34 | 34 | if (false === ($options = \parse_ini_file($this->filename))) { |
35 | - throw new InvalidArgumentException('Cannot parse configuration file ' . $this->filename . '.'); |
|
35 | + throw new InvalidArgumentException('Cannot parse configuration file '.$this->filename.'.'); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | $config->fromArray($options); |
@@ -37,13 +37,13 @@ |
||
37 | 37 | $jsonText = \file_get_contents($this->filename); |
38 | 38 | |
39 | 39 | if (false === $jsonText) { |
40 | - throw new InvalidArgumentException('Cannot read configuration file ' . $this->filename . '.'); |
|
40 | + throw new InvalidArgumentException('Cannot read configuration file '.$this->filename.'.'); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | $jsonData = \json_decode($jsonText, true); |
44 | 44 | |
45 | 45 | if (false === $jsonData) { |
46 | - throw new InvalidArgumentException('Bad json file ' . $this->filename . '.'); |
|
46 | + throw new InvalidArgumentException('Bad json file '.$this->filename.'.'); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | $config->fromArray($this->collapse($jsonData)); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | public static function createFromFileName($filename) |
38 | 38 | { |
39 | 39 | if (!\is_readable($filename)) { |
40 | - throw new InvalidArgumentException('Cannot read configuration file ' . $filename . '.'); |
|
40 | + throw new InvalidArgumentException('Cannot read configuration file '.$filename.'.'); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | $ext = static::checkAllowed(\pathinfo($filename, \PATHINFO_EXTENSION)); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * GitChanges constructor. |
30 | 30 | * |
31 | 31 | * @param Config $config |
32 | - * @param array $files |
|
32 | + * @param string[] $files |
|
33 | 33 | */ |
34 | 34 | public function __construct(Config $config, array $files) |
35 | 35 | { |