@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public static function isLinux() |
29 | 29 | { |
30 | - return (bool) stristr(PHP_OS, 'linux'); |
|
30 | + return (bool)stristr(PHP_OS, 'linux'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public static function isNetware() |
51 | 51 | { |
52 | - return (bool) stristr(PHP_OS, 'netware'); |
|
52 | + return (bool)stristr(PHP_OS, 'netware'); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | |
6 | 6 | // coverage-checker.php |
7 | 7 | $inputFile = $argv[1]; |
8 | -$percentage = min(100, max(0, (int) $argv[2])); |
|
8 | +$percentage = min(100, max(0, (int)$argv[2])); |
|
9 | 9 | |
10 | 10 | if (!file_exists($inputFile)) { |
11 | 11 | throw new InvalidArgumentException( |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | $checkedElements = 0; |
27 | 27 | |
28 | 28 | foreach ($metrics as $metric) { |
29 | - $totalElements += (int) $metric['elements']; |
|
30 | - $checkedElements += (int) $metric['coveredelements']; |
|
29 | + $totalElements += (int)$metric['elements']; |
|
30 | + $checkedElements += (int)$metric['coveredelements']; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | $coverage = ($checkedElements / $totalElements) * 100; |
@@ -93,10 +93,10 @@ |
||
93 | 93 | $argv = array('/path/to/command', 'list-help'); |
94 | 94 | $_SERVER['argv'] = $argv; |
95 | 95 | $input = new ArgvInput($argv, $definition); |
96 | - $this->assertSame('list-help', (string) $input); |
|
96 | + $this->assertSame('list-help', (string)$input); |
|
97 | 97 | $actual = $config->checkConfigCommandAlias($input); |
98 | 98 | $this->assertSame('list-help', $actual->getFirstArgument()); |
99 | - $this->assertSame('list-help --help', (string) $actual); |
|
99 | + $this->assertSame('list-help --help', (string)$actual); |
|
100 | 100 | } |
101 | 101 | $_SERVER['argv'] = $saved; |
102 | 102 |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | if (!is_null($this->baseDirectory)) { |
316 | 316 | if (!$this->baseDirectory->exists()) { |
317 | 317 | throw new BuildException( |
318 | - "basedir '" . (string) $this->baseDirectory . "' does not exist!", $this->getLocation() |
|
318 | + "basedir '" . (string)$this->baseDirectory . "' does not exist!", $this->getLocation() |
|
319 | 319 | ); |
320 | 320 | } |
321 | 321 | } |
@@ -332,11 +332,11 @@ discard block |
||
332 | 332 | } |
333 | 333 | |
334 | 334 | if (!$this->key->exists()) { |
335 | - throw new BuildException("key '" . (string) $this->key . "' does not exist!", $this->getLocation()); |
|
335 | + throw new BuildException("key '" . (string)$this->key . "' does not exist!", $this->getLocation()); |
|
336 | 336 | } |
337 | 337 | |
338 | 338 | if (!$this->key->canRead()) { |
339 | - throw new BuildException("key '" . (string) $this->key . "' cannot be read!", $this->getLocation()); |
|
339 | + throw new BuildException("key '" . (string)$this->key . "' cannot be read!", $this->getLocation()); |
|
340 | 340 | } |
341 | 341 | } |
342 | 342 | } |