@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | final public static function chmod($path, $mode, $recursive = false, $strict = true) |
16 | 16 | { |
17 | 17 | $mode = self::fixFileModeFormat($mode); |
18 | - $recursive = ($recursive == false) ? '': '-R'; |
|
18 | + $recursive = ($recursive == false) ? '' : '-R'; |
|
19 | 19 | system("chmod {$recursive} {$mode} {$path} 2> /dev/null", $retval); |
20 | 20 | |
21 | 21 | if ($strict == false && $retval != 0) |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | final public static function chgrp($file, $group, $recursive = false, $strict = true) |
42 | 42 | { |
43 | - $recursive = ($recursive == false) ?'': '-R'; |
|
43 | + $recursive = ($recursive == false) ? '' : '-R'; |
|
44 | 44 | system("chgrp {$recursive} {$group} {$file} 2> /dev/null", $retval); |
45 | 45 | |
46 | 46 | if ($strict == false && $retval != 0) |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | { |
69 | 69 | if (preg_match('/^-.*$/', $key, $matches)) |
70 | 70 | { |
71 | - $options[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT).$value; |
|
71 | + $options[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT) . $value; |
|
72 | 72 | } |
73 | 73 | if (preg_match('/^-.*$/', $value, $matches)) |
74 | 74 | { |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | { |
93 | 93 | if (preg_match('/^-.*$/', $key, $matches)) |
94 | 94 | { |
95 | - $arguments[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT).$value; |
|
95 | + $arguments[] = is_bool($value) ? $key : str_pad($key, strlen($key) + 1, ' ', STR_PAD_RIGHT) . $value; |
|
96 | 96 | } else |
97 | 97 | { |
98 | 98 | $arguments[] = is_array($value) ? implode(' ', $value) : $value; |