Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Increase readability #741

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removing unnecessary variable attributions
  • Loading branch information
rotelok committed Jun 16, 2018
commit fd2603a956e122af645b81da0139556ae18bfa18
4 changes: 1 addition & 3 deletions lib/file-control-xhr.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ function stitchChanges($fileLines) {
}

// Set and return the newly stitched together content
$contents = implode("",$fileLines);

return $contents;
return implode("",$fileLines);
}


Expand Down
8 changes: 3 additions & 5 deletions lib/ftp-control.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ function ftpGetFileInfo($ftpConn, $directory = '.', $fileName) {
$detailedList = $ftpListArrays['detailedList'];

// Now get the file info for our file
$fileInfo = $detailedList[$fileName];

// Return the info
return $fileInfo;
// Return the info
return $detailedList[$fileName];
}

// Get contents over FTP
Expand Down Expand Up @@ -112,4 +110,4 @@ function ftpDelete($ftpConn, $type, $path) {
return ftp_rmdir($ftpConn, $path);
}
}
?>
?>
3 changes: 1 addition & 2 deletions lib/settings-common.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ function xssClean($data,$type) {
}
}

$output = str_replace($bad, $good, $data);
return $output;
return str_replace($bad, $good, $data);
}


Expand Down