Skip to content

Commit

Permalink
cs:fix
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <[email protected]>
  • Loading branch information
ArtificialOwl committed May 20, 2024
1 parent 512d231 commit efcc2d6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/Model/FileShares.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class FileShares implements JsonSerializable {
*
* @param FileShares $currentShares
*/
public function __construct(FileShares $currentShares = null) {
public function __construct(?FileShares $currentShares = null) {
if ($currentShares === null) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/ExternalFilesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public function updateDocumentAccess(FilesDocument &$document, Node $file) {
} else {
$access->addUsers($mount->getUsers());
$access->addGroups($mount->getGroups());
// $access->addCircles($mount->getCircles());
// $access->addCircles($mount->getCircles());
}

// twist 'n tweak.
Expand Down
10 changes: 5 additions & 5 deletions lib/Service/FilesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -753,12 +753,12 @@ private function updateFilesDocumentFromFile(FilesDocument $document, Node $file
*/
private function updateDocumentAccess(FilesDocument $document, Node $file) {

// $index = $document->getIndex();
// $index = $document->getIndex();
// This should not be needed, let's assume we _need_ to update document access
// if (!$index->isStatus(IIndex::INDEX_FULL)
// && !$index->isStatus(IIndex::INDEX_META)) {
// return;
// }
// if (!$index->isStatus(IIndex::INDEX_FULL)
// && !$index->isStatus(IIndex::INDEX_META)) {
// return;
// }

$this->localFilesService->updateDocumentAccess($document, $file);
$this->externalFilesService->updateDocumentAccess($document, $file);
Expand Down
4 changes: 2 additions & 2 deletions lib/Service/MiscService.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ public function __construct(ILogger $logger) {
* @param int $level
*/
public function log(string $message, int $level = 2) {
$data = array(
$data = [
'app' => Application::APP_ID,
'level' => $level
);
];

$this->logger->log($level, $message, $data);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/SettingsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function __construct(IConfig $config, string $userId, MiscService $miscSe
* @return bool
*/
public function checkConfig(array $data): bool {
// return false;
// return false;

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Tools/Traits/TArrayTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ protected function getList(string $k, array $arr, array $import, array $default
$list = $this->getArray($k, $arr, $default);

$r = [];
list($obj, $method) = $import;
[$obj, $method] = $import;
foreach ($list as $item) {
try {
$o = new $obj();
Expand Down

0 comments on commit efcc2d6

Please sign in to comment.