Skip to content

Commit 8a17a5b

Browse files
authored
Minor identation issues (#1273)
1 parent 9792bd0 commit 8a17a5b

File tree

1 file changed

+21
-27
lines changed

1 file changed

+21
-27
lines changed

tinyfilemanager.php

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,26 +2156,23 @@ class="edit-file"><i class="fa fa-pencil-square"></i> <?php echo lng('AdvancedEd
21562156
$owner = array('name' => '?');
21572157
$group = array('name' => '?');
21582158
if (function_exists('posix_getpwuid') && function_exists('posix_getgrgid')) {
2159-
try{
2159+
try {
21602160
$owner_id = fileowner($path . '/' . $f);
2161-
if($owner_id != 0) {
2161+
if ($owner_id != 0) {
21622162
$owner_info = posix_getpwuid($owner_id);
2163-
if ($owner_info) {
2164-
$owner = $owner_info;
2165-
}
2166-
}
2167-
2163+
if ($owner_info) {
2164+
$owner = $owner_info;
2165+
}
2166+
}
21682167
$group_id = filegroup($path . '/' . $f);
21692168
$group_info = posix_getgrgid($group_id);
21702169
if ($group_info) {
2171-
$group = $group_info;
2172-
}
2173-
2174-
} catch(Exception $e){
2175-
error_log("exception:" . $e->getMessage());
2170+
$group = $group_info;
2171+
}
2172+
} catch (Exception $e) {
2173+
error_log("exception:" . $e->getMessage());
21762174
}
21772175
}
2178-
21792176
?>
21802177
<tr>
21812178
<?php if (!FM_READONLY): ?>
@@ -2231,26 +2228,23 @@ class="edit-file"><i class="fa fa-pencil-square"></i> <?php echo lng('AdvancedEd
22312228
$owner = array('name' => '?');
22322229
$group = array('name' => '?');
22332230
if (function_exists('posix_getpwuid') && function_exists('posix_getgrgid')) {
2234-
try{
2231+
try {
22352232
$owner_id = fileowner($path . '/' . $f);
2236-
if($owner_id != 0) {
2233+
if ($owner_id != 0) {
22372234
$owner_info = posix_getpwuid($owner_id);
2238-
if ($owner_info) {
2239-
$owner = $owner_info;
2240-
}
2241-
}
2242-
2235+
if ($owner_info) {
2236+
$owner = $owner_info;
2237+
}
2238+
}
22432239
$group_id = filegroup($path . '/' . $f);
22442240
$group_info = posix_getgrgid($group_id);
22452241
if ($group_info) {
2246-
$group = $group_info;
2247-
}
2248-
2249-
} catch(Exception $e){
2250-
error_log("exception:" . $e->getMessage());
2242+
$group = $group_info;
2243+
}
2244+
} catch (Exception $e) {
2245+
error_log("exception:" . $e->getMessage());
22512246
}
22522247
}
2253-
22542248
?>
22552249
<tr>
22562250
<?php if (!FM_READONLY): ?>
@@ -5600,4 +5594,4 @@ function lng($txt)
56005594
else return "$txt";
56015595
}
56025596

5603-
?>
5597+
?>

0 commit comments

Comments
 (0)