@@ -32,7 +32,7 @@ |
||
32 | 32 | $errorMessage = 'Wrong hostname configured. <info>Hostname must contain a dot</info>'; |
33 | 33 | |
34 | 34 | $host = parse_url($baseUrl, PHP_URL_HOST); |
35 | - $isValid = (bool) strstr($host, '.'); |
|
35 | + $isValid = (bool)strstr($host, '.'); |
|
36 | 36 | $result->setStatus($isValid); |
37 | 37 | if ($isValid) { |
38 | 38 | $result->setMessage( |
@@ -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 | /** |
@@ -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 | } |