@@ -26,97 +26,97 @@ |
||
| 26 | 26 | class Downloads extends Base { |
| 27 | 27 | |
| 28 | 28 | |
| 29 | - const SUBJECT_PUBLIC_SHARED_FILE_DOWNLOADED = 'public_shared_file_downloaded'; |
|
| 30 | - const SUBJECT_PUBLIC_SHARED_FOLDER_DOWNLOADED = 'public_shared_folder_downloaded'; |
|
| 31 | - |
|
| 32 | - const SUBJECT_SHARED_FILE_BY_EMAIL_DOWNLOADED = 'file_shared_with_email_downloaded'; |
|
| 33 | - const SUBJECT_SHARED_FOLDER_BY_EMAIL_DOWNLOADED = 'folder_shared_with_email_downloaded'; |
|
| 34 | - |
|
| 35 | - /** |
|
| 36 | - * @param IEvent $event |
|
| 37 | - * @return IEvent |
|
| 38 | - * @throws \InvalidArgumentException |
|
| 39 | - * @since 11.0.0 |
|
| 40 | - */ |
|
| 41 | - public function parseShortVersion(IEvent $event) { |
|
| 42 | - $parsedParameters = $this->getParsedParameters($event); |
|
| 43 | - |
|
| 44 | - if ($event->getSubject() === self::SUBJECT_PUBLIC_SHARED_FILE_DOWNLOADED || |
|
| 45 | - $event->getSubject() === self::SUBJECT_PUBLIC_SHARED_FOLDER_DOWNLOADED) { |
|
| 46 | - $subject = $this->l->t('Downloaded via public link'); |
|
| 47 | - } else if ($event->getSubject() === self::SUBJECT_SHARED_FILE_BY_EMAIL_DOWNLOADED || |
|
| 48 | - $event->getSubject() === self::SUBJECT_SHARED_FOLDER_BY_EMAIL_DOWNLOADED) { |
|
| 49 | - $subject = $this->l->t('Downloaded by {email}'); |
|
| 50 | - } else { |
|
| 51 | - throw new \InvalidArgumentException(); |
|
| 52 | - } |
|
| 53 | - |
|
| 54 | - if ($this->activityManager->getRequirePNG()) { |
|
| 55 | - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/download.png'))); |
|
| 56 | - } else { |
|
| 57 | - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/download.svg'))); |
|
| 58 | - } |
|
| 59 | - $this->setSubjects($event, $subject, $parsedParameters); |
|
| 60 | - |
|
| 61 | - return $event; |
|
| 62 | - } |
|
| 63 | - |
|
| 64 | - /** |
|
| 65 | - * @param IEvent $event |
|
| 66 | - * @return IEvent |
|
| 67 | - * @throws \InvalidArgumentException |
|
| 68 | - * @since 11.0.0 |
|
| 69 | - */ |
|
| 70 | - public function parseLongVersion(IEvent $event) { |
|
| 71 | - $parsedParameters = $this->getParsedParameters($event); |
|
| 72 | - |
|
| 73 | - if ($event->getSubject() === self::SUBJECT_PUBLIC_SHARED_FILE_DOWNLOADED || |
|
| 74 | - $event->getSubject() === self::SUBJECT_PUBLIC_SHARED_FOLDER_DOWNLOADED) { |
|
| 75 | - $subject = $this->l->t('{file} downloaded via public link'); |
|
| 76 | - } else if ($event->getSubject() === self::SUBJECT_SHARED_FILE_BY_EMAIL_DOWNLOADED || |
|
| 77 | - $event->getSubject() === self::SUBJECT_SHARED_FOLDER_BY_EMAIL_DOWNLOADED) { |
|
| 78 | - $subject = $this->l->t('{email} downloaded {file}'); |
|
| 79 | - } else { |
|
| 80 | - throw new \InvalidArgumentException(); |
|
| 81 | - } |
|
| 82 | - |
|
| 83 | - if ($this->activityManager->getRequirePNG()) { |
|
| 84 | - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/download.png'))); |
|
| 85 | - } else { |
|
| 86 | - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/download.svg'))); |
|
| 87 | - } |
|
| 88 | - $this->setSubjects($event, $subject, $parsedParameters); |
|
| 89 | - |
|
| 90 | - return $event; |
|
| 91 | - } |
|
| 92 | - |
|
| 93 | - /** |
|
| 94 | - * @param IEvent $event |
|
| 95 | - * @return array |
|
| 96 | - * @throws \InvalidArgumentException |
|
| 97 | - */ |
|
| 98 | - protected function getParsedParameters(IEvent $event) { |
|
| 99 | - $subject = $event->getSubject(); |
|
| 100 | - $parameters = $event->getSubjectParameters(); |
|
| 101 | - |
|
| 102 | - switch ($subject) { |
|
| 103 | - case self::SUBJECT_PUBLIC_SHARED_FILE_DOWNLOADED: |
|
| 104 | - case self::SUBJECT_PUBLIC_SHARED_FOLDER_DOWNLOADED: |
|
| 105 | - return [ |
|
| 106 | - 'file' => $this->getFile($parameters[0], $event), |
|
| 107 | - ]; |
|
| 108 | - case self::SUBJECT_SHARED_FILE_BY_EMAIL_DOWNLOADED: |
|
| 109 | - case self::SUBJECT_SHARED_FOLDER_BY_EMAIL_DOWNLOADED: |
|
| 110 | - return [ |
|
| 111 | - 'file' => $this->getFile($parameters[0], $event), |
|
| 112 | - 'email' => [ |
|
| 113 | - 'type' => 'email', |
|
| 114 | - 'id' => $parameters[1], |
|
| 115 | - 'name' => $parameters[1], |
|
| 116 | - ], |
|
| 117 | - ]; |
|
| 118 | - } |
|
| 119 | - |
|
| 120 | - throw new \InvalidArgumentException(); |
|
| 121 | - } |
|
| 29 | + const SUBJECT_PUBLIC_SHARED_FILE_DOWNLOADED = 'public_shared_file_downloaded'; |
|
| 30 | + const SUBJECT_PUBLIC_SHARED_FOLDER_DOWNLOADED = 'public_shared_folder_downloaded'; |
|
| 31 | + |
|
| 32 | + const SUBJECT_SHARED_FILE_BY_EMAIL_DOWNLOADED = 'file_shared_with_email_downloaded'; |
|
| 33 | + const SUBJECT_SHARED_FOLDER_BY_EMAIL_DOWNLOADED = 'folder_shared_with_email_downloaded'; |
|
| 34 | + |
|
| 35 | + /** |
|
| 36 | + * @param IEvent $event |
|
| 37 | + * @return IEvent |
|
| 38 | + * @throws \InvalidArgumentException |
|
| 39 | + * @since 11.0.0 |
|
| 40 | + */ |
|
| 41 | + public function parseShortVersion(IEvent $event) { |
|
| 42 | + $parsedParameters = $this->getParsedParameters($event); |
|
| 43 | + |
|
| 44 | + if ($event->getSubject() === self::SUBJECT_PUBLIC_SHARED_FILE_DOWNLOADED || |
|
| 45 | + $event->getSubject() === self::SUBJECT_PUBLIC_SHARED_FOLDER_DOWNLOADED) { |
|
| 46 | + $subject = $this->l->t('Downloaded via public link'); |
|
| 47 | + } else if ($event->getSubject() === self::SUBJECT_SHARED_FILE_BY_EMAIL_DOWNLOADED || |
|
| 48 | + $event->getSubject() === self::SUBJECT_SHARED_FOLDER_BY_EMAIL_DOWNLOADED) { |
|
| 49 | + $subject = $this->l->t('Downloaded by {email}'); |
|
| 50 | + } else { |
|
| 51 | + throw new \InvalidArgumentException(); |
|
| 52 | + } |
|
| 53 | + |
|
| 54 | + if ($this->activityManager->getRequirePNG()) { |
|
| 55 | + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/download.png'))); |
|
| 56 | + } else { |
|
| 57 | + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/download.svg'))); |
|
| 58 | + } |
|
| 59 | + $this->setSubjects($event, $subject, $parsedParameters); |
|
| 60 | + |
|
| 61 | + return $event; |
|
| 62 | + } |
|
| 63 | + |
|
| 64 | + /** |
|
| 65 | + * @param IEvent $event |
|
| 66 | + * @return IEvent |
|
| 67 | + * @throws \InvalidArgumentException |
|
| 68 | + * @since 11.0.0 |
|
| 69 | + */ |
|
| 70 | + public function parseLongVersion(IEvent $event) { |
|
| 71 | + $parsedParameters = $this->getParsedParameters($event); |
|
| 72 | + |
|
| 73 | + if ($event->getSubject() === self::SUBJECT_PUBLIC_SHARED_FILE_DOWNLOADED || |
|
| 74 | + $event->getSubject() === self::SUBJECT_PUBLIC_SHARED_FOLDER_DOWNLOADED) { |
|
| 75 | + $subject = $this->l->t('{file} downloaded via public link'); |
|
| 76 | + } else if ($event->getSubject() === self::SUBJECT_SHARED_FILE_BY_EMAIL_DOWNLOADED || |
|
| 77 | + $event->getSubject() === self::SUBJECT_SHARED_FOLDER_BY_EMAIL_DOWNLOADED) { |
|
| 78 | + $subject = $this->l->t('{email} downloaded {file}'); |
|
| 79 | + } else { |
|
| 80 | + throw new \InvalidArgumentException(); |
|
| 81 | + } |
|
| 82 | + |
|
| 83 | + if ($this->activityManager->getRequirePNG()) { |
|
| 84 | + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/download.png'))); |
|
| 85 | + } else { |
|
| 86 | + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/download.svg'))); |
|
| 87 | + } |
|
| 88 | + $this->setSubjects($event, $subject, $parsedParameters); |
|
| 89 | + |
|
| 90 | + return $event; |
|
| 91 | + } |
|
| 92 | + |
|
| 93 | + /** |
|
| 94 | + * @param IEvent $event |
|
| 95 | + * @return array |
|
| 96 | + * @throws \InvalidArgumentException |
|
| 97 | + */ |
|
| 98 | + protected function getParsedParameters(IEvent $event) { |
|
| 99 | + $subject = $event->getSubject(); |
|
| 100 | + $parameters = $event->getSubjectParameters(); |
|
| 101 | + |
|
| 102 | + switch ($subject) { |
|
| 103 | + case self::SUBJECT_PUBLIC_SHARED_FILE_DOWNLOADED: |
|
| 104 | + case self::SUBJECT_PUBLIC_SHARED_FOLDER_DOWNLOADED: |
|
| 105 | + return [ |
|
| 106 | + 'file' => $this->getFile($parameters[0], $event), |
|
| 107 | + ]; |
|
| 108 | + case self::SUBJECT_SHARED_FILE_BY_EMAIL_DOWNLOADED: |
|
| 109 | + case self::SUBJECT_SHARED_FOLDER_BY_EMAIL_DOWNLOADED: |
|
| 110 | + return [ |
|
| 111 | + 'file' => $this->getFile($parameters[0], $event), |
|
| 112 | + 'email' => [ |
|
| 113 | + 'type' => 'email', |
|
| 114 | + 'id' => $parameters[1], |
|
| 115 | + 'name' => $parameters[1], |
|
| 116 | + ], |
|
| 117 | + ]; |
|
| 118 | + } |
|
| 119 | + |
|
| 120 | + throw new \InvalidArgumentException(); |
|
| 121 | + } |
|
| 122 | 122 | } |
@@ -29,58 +29,58 @@ |
||
| 29 | 29 | use OCP\Settings\IIconSection; |
| 30 | 30 | |
| 31 | 31 | class PersonalSection implements IIconSection { |
| 32 | - /** @var IURLGenerator */ |
|
| 33 | - private $urlGenerator; |
|
| 34 | - /** @var IL10N */ |
|
| 35 | - private $l; |
|
| 32 | + /** @var IURLGenerator */ |
|
| 33 | + private $urlGenerator; |
|
| 34 | + /** @var IL10N */ |
|
| 35 | + private $l; |
|
| 36 | 36 | |
| 37 | - public function __construct(IURLGenerator $urlGenerator, IL10N $l) { |
|
| 38 | - $this->urlGenerator = $urlGenerator; |
|
| 39 | - $this->l = $l; |
|
| 40 | - } |
|
| 37 | + public function __construct(IURLGenerator $urlGenerator, IL10N $l) { |
|
| 38 | + $this->urlGenerator = $urlGenerator; |
|
| 39 | + $this->l = $l; |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | - /** |
|
| 43 | - * returns the relative path to an 16*16 icon describing the section. |
|
| 44 | - * e.g. '/core/img/places/files.svg' |
|
| 45 | - * |
|
| 46 | - * @returns string |
|
| 47 | - * @since 13.0.0 |
|
| 48 | - */ |
|
| 49 | - public function getIcon() { |
|
| 50 | - return $this->urlGenerator->imagePath('core', 'actions/share.svg'); |
|
| 51 | - } |
|
| 42 | + /** |
|
| 43 | + * returns the relative path to an 16*16 icon describing the section. |
|
| 44 | + * e.g. '/core/img/places/files.svg' |
|
| 45 | + * |
|
| 46 | + * @returns string |
|
| 47 | + * @since 13.0.0 |
|
| 48 | + */ |
|
| 49 | + public function getIcon() { |
|
| 50 | + return $this->urlGenerator->imagePath('core', 'actions/share.svg'); |
|
| 51 | + } |
|
| 52 | 52 | |
| 53 | - /** |
|
| 54 | - * returns the ID of the section. It is supposed to be a lower case string, |
|
| 55 | - * e.g. 'ldap' |
|
| 56 | - * |
|
| 57 | - * @returns string |
|
| 58 | - * @since 9.1 |
|
| 59 | - */ |
|
| 60 | - public function getID() { |
|
| 61 | - return 'sharing'; |
|
| 62 | - } |
|
| 53 | + /** |
|
| 54 | + * returns the ID of the section. It is supposed to be a lower case string, |
|
| 55 | + * e.g. 'ldap' |
|
| 56 | + * |
|
| 57 | + * @returns string |
|
| 58 | + * @since 9.1 |
|
| 59 | + */ |
|
| 60 | + public function getID() { |
|
| 61 | + return 'sharing'; |
|
| 62 | + } |
|
| 63 | 63 | |
| 64 | - /** |
|
| 65 | - * returns the translated name as it should be displayed, e.g. 'LDAP / AD |
|
| 66 | - * integration'. Use the L10N service to translate it. |
|
| 67 | - * |
|
| 68 | - * @return string |
|
| 69 | - * @since 9.1 |
|
| 70 | - */ |
|
| 71 | - public function getName() { |
|
| 72 | - return $this->l->t('Sharing'); |
|
| 73 | - } |
|
| 64 | + /** |
|
| 65 | + * returns the translated name as it should be displayed, e.g. 'LDAP / AD |
|
| 66 | + * integration'. Use the L10N service to translate it. |
|
| 67 | + * |
|
| 68 | + * @return string |
|
| 69 | + * @since 9.1 |
|
| 70 | + */ |
|
| 71 | + public function getName() { |
|
| 72 | + return $this->l->t('Sharing'); |
|
| 73 | + } |
|
| 74 | 74 | |
| 75 | - /** |
|
| 76 | - * @return int whether the form should be rather on the top or bottom of |
|
| 77 | - * the settings navigation. The sections are arranged in ascending order of |
|
| 78 | - * the priority values. It is required to return a value between 0 and 99. |
|
| 79 | - * |
|
| 80 | - * E.g.: 70 |
|
| 81 | - * @since 9.1 |
|
| 82 | - */ |
|
| 83 | - public function getPriority() { |
|
| 84 | - return 15; |
|
| 85 | - } |
|
| 75 | + /** |
|
| 76 | + * @return int whether the form should be rather on the top or bottom of |
|
| 77 | + * the settings navigation. The sections are arranged in ascending order of |
|
| 78 | + * the priority values. It is required to return a value between 0 and 99. |
|
| 79 | + * |
|
| 80 | + * E.g.: 70 |
|
| 81 | + * @since 9.1 |
|
| 82 | + */ |
|
| 83 | + public function getPriority() { |
|
| 84 | + return 15; |
|
| 85 | + } |
|
| 86 | 86 | } |
@@ -33,63 +33,63 @@ |
||
| 33 | 33 | |
| 34 | 34 | class Personal implements ISettings { |
| 35 | 35 | |
| 36 | - /** @var IConfig */ |
|
| 37 | - private $config; |
|
| 38 | - /** @var Session */ |
|
| 39 | - private $session; |
|
| 40 | - /** @var Util */ |
|
| 41 | - private $util; |
|
| 42 | - /** @var IUserSession */ |
|
| 43 | - private $userSession; |
|
| 36 | + /** @var IConfig */ |
|
| 37 | + private $config; |
|
| 38 | + /** @var Session */ |
|
| 39 | + private $session; |
|
| 40 | + /** @var Util */ |
|
| 41 | + private $util; |
|
| 42 | + /** @var IUserSession */ |
|
| 43 | + private $userSession; |
|
| 44 | 44 | |
| 45 | - public function __construct(IConfig $config, Session $session, Util $util, IUserSession $userSession) { |
|
| 46 | - $this->config = $config; |
|
| 47 | - $this->session = $session; |
|
| 48 | - $this->util = $util; |
|
| 49 | - $this->userSession = $userSession; |
|
| 50 | - } |
|
| 45 | + public function __construct(IConfig $config, Session $session, Util $util, IUserSession $userSession) { |
|
| 46 | + $this->config = $config; |
|
| 47 | + $this->session = $session; |
|
| 48 | + $this->util = $util; |
|
| 49 | + $this->userSession = $userSession; |
|
| 50 | + } |
|
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * @return TemplateResponse returns the instance with all parameters set, ready to be rendered |
|
| 54 | - * @since 9.1 |
|
| 55 | - */ |
|
| 56 | - public function getForm() { |
|
| 57 | - $recoveryAdminEnabled = $this->config->getAppValue('encryption', 'recoveryAdminEnabled'); |
|
| 58 | - $privateKeySet = $this->session->isPrivateKeySet(); |
|
| 52 | + /** |
|
| 53 | + * @return TemplateResponse returns the instance with all parameters set, ready to be rendered |
|
| 54 | + * @since 9.1 |
|
| 55 | + */ |
|
| 56 | + public function getForm() { |
|
| 57 | + $recoveryAdminEnabled = $this->config->getAppValue('encryption', 'recoveryAdminEnabled'); |
|
| 58 | + $privateKeySet = $this->session->isPrivateKeySet(); |
|
| 59 | 59 | |
| 60 | - if (!$recoveryAdminEnabled && $privateKeySet) { |
|
| 61 | - return new TemplateResponse('settings', 'settings/empty', [], ''); |
|
| 62 | - } |
|
| 60 | + if (!$recoveryAdminEnabled && $privateKeySet) { |
|
| 61 | + return new TemplateResponse('settings', 'settings/empty', [], ''); |
|
| 62 | + } |
|
| 63 | 63 | |
| 64 | - $userId = $this->userSession->getUser()->getUID(); |
|
| 65 | - $recoveryEnabledForUser = $this->util->isRecoveryEnabledForUser($userId); |
|
| 64 | + $userId = $this->userSession->getUser()->getUID(); |
|
| 65 | + $recoveryEnabledForUser = $this->util->isRecoveryEnabledForUser($userId); |
|
| 66 | 66 | |
| 67 | - $parameters = [ |
|
| 68 | - 'recoveryEnabled' => $recoveryAdminEnabled, |
|
| 69 | - 'recoveryEnabledForUser' => $recoveryEnabledForUser, |
|
| 70 | - 'privateKeySet' => $privateKeySet, |
|
| 71 | - 'initialized' => $this->session->getStatus(), |
|
| 72 | - ]; |
|
| 73 | - return new TemplateResponse('encryption', 'settings-personal', $parameters, ''); |
|
| 74 | - } |
|
| 67 | + $parameters = [ |
|
| 68 | + 'recoveryEnabled' => $recoveryAdminEnabled, |
|
| 69 | + 'recoveryEnabledForUser' => $recoveryEnabledForUser, |
|
| 70 | + 'privateKeySet' => $privateKeySet, |
|
| 71 | + 'initialized' => $this->session->getStatus(), |
|
| 72 | + ]; |
|
| 73 | + return new TemplateResponse('encryption', 'settings-personal', $parameters, ''); |
|
| 74 | + } |
|
| 75 | 75 | |
| 76 | - /** |
|
| 77 | - * @return string the section ID, e.g. 'sharing' |
|
| 78 | - * @since 9.1 |
|
| 79 | - */ |
|
| 80 | - public function getSection() { |
|
| 81 | - return 'security'; |
|
| 82 | - } |
|
| 76 | + /** |
|
| 77 | + * @return string the section ID, e.g. 'sharing' |
|
| 78 | + * @since 9.1 |
|
| 79 | + */ |
|
| 80 | + public function getSection() { |
|
| 81 | + return 'security'; |
|
| 82 | + } |
|
| 83 | 83 | |
| 84 | - /** |
|
| 85 | - * @return int whether the form should be rather on the top or bottom of |
|
| 86 | - * the admin section. The forms are arranged in ascending order of the |
|
| 87 | - * priority values. It is required to return a value between 0 and 100. |
|
| 88 | - * |
|
| 89 | - * E.g.: 70 |
|
| 90 | - * @since 9.1 |
|
| 91 | - */ |
|
| 92 | - public function getPriority() { |
|
| 93 | - return 80; |
|
| 94 | - } |
|
| 84 | + /** |
|
| 85 | + * @return int whether the form should be rather on the top or bottom of |
|
| 86 | + * the admin section. The forms are arranged in ascending order of the |
|
| 87 | + * priority values. It is required to return a value between 0 and 100. |
|
| 88 | + * |
|
| 89 | + * E.g.: 70 |
|
| 90 | + * @since 9.1 |
|
| 91 | + */ |
|
| 92 | + public function getPriority() { |
|
| 93 | + return 80; |
|
| 94 | + } |
|
| 95 | 95 | } |
@@ -38,71 +38,71 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | class GroupManagement extends Action { |
| 40 | 40 | |
| 41 | - /** |
|
| 42 | - * log add user to group event |
|
| 43 | - * |
|
| 44 | - * @param IGroup $group |
|
| 45 | - * @param IUser $user |
|
| 46 | - */ |
|
| 47 | - public function addUser(IGroup $group, IUser $user) { |
|
| 48 | - $this->log('User "%s" added to group "%s"', |
|
| 49 | - [ |
|
| 50 | - 'group' => $group->getGID(), |
|
| 51 | - 'user' => $user->getUID() |
|
| 52 | - ], |
|
| 53 | - [ |
|
| 54 | - 'user', 'group' |
|
| 55 | - ] |
|
| 56 | - ); |
|
| 57 | - } |
|
| 41 | + /** |
|
| 42 | + * log add user to group event |
|
| 43 | + * |
|
| 44 | + * @param IGroup $group |
|
| 45 | + * @param IUser $user |
|
| 46 | + */ |
|
| 47 | + public function addUser(IGroup $group, IUser $user) { |
|
| 48 | + $this->log('User "%s" added to group "%s"', |
|
| 49 | + [ |
|
| 50 | + 'group' => $group->getGID(), |
|
| 51 | + 'user' => $user->getUID() |
|
| 52 | + ], |
|
| 53 | + [ |
|
| 54 | + 'user', 'group' |
|
| 55 | + ] |
|
| 56 | + ); |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | - /** |
|
| 60 | - * log remove user from group event |
|
| 61 | - * |
|
| 62 | - * @param IGroup $group |
|
| 63 | - * @param IUser $user |
|
| 64 | - */ |
|
| 65 | - public function removeUser(IGroup $group, IUser $user) { |
|
| 66 | - $this->log('User "%s" removed from group "%s"', |
|
| 67 | - [ |
|
| 68 | - 'group' => $group->getGID(), |
|
| 69 | - 'user' => $user->getUID() |
|
| 70 | - ], |
|
| 71 | - [ |
|
| 72 | - 'user', 'group' |
|
| 73 | - ] |
|
| 74 | - ); |
|
| 75 | - } |
|
| 59 | + /** |
|
| 60 | + * log remove user from group event |
|
| 61 | + * |
|
| 62 | + * @param IGroup $group |
|
| 63 | + * @param IUser $user |
|
| 64 | + */ |
|
| 65 | + public function removeUser(IGroup $group, IUser $user) { |
|
| 66 | + $this->log('User "%s" removed from group "%s"', |
|
| 67 | + [ |
|
| 68 | + 'group' => $group->getGID(), |
|
| 69 | + 'user' => $user->getUID() |
|
| 70 | + ], |
|
| 71 | + [ |
|
| 72 | + 'user', 'group' |
|
| 73 | + ] |
|
| 74 | + ); |
|
| 75 | + } |
|
| 76 | 76 | |
| 77 | - /** |
|
| 78 | - * log create group to group event |
|
| 79 | - * |
|
| 80 | - * @param IGroup $group |
|
| 81 | - */ |
|
| 82 | - public function createGroup(IGroup $group) { |
|
| 83 | - $this->log('Group created: "%s"', |
|
| 84 | - [ |
|
| 85 | - 'group' => $group->getGID() |
|
| 86 | - ], |
|
| 87 | - [ |
|
| 88 | - 'group' |
|
| 89 | - ] |
|
| 90 | - ); |
|
| 91 | - } |
|
| 77 | + /** |
|
| 78 | + * log create group to group event |
|
| 79 | + * |
|
| 80 | + * @param IGroup $group |
|
| 81 | + */ |
|
| 82 | + public function createGroup(IGroup $group) { |
|
| 83 | + $this->log('Group created: "%s"', |
|
| 84 | + [ |
|
| 85 | + 'group' => $group->getGID() |
|
| 86 | + ], |
|
| 87 | + [ |
|
| 88 | + 'group' |
|
| 89 | + ] |
|
| 90 | + ); |
|
| 91 | + } |
|
| 92 | 92 | |
| 93 | - /** |
|
| 94 | - * log delete group to group event |
|
| 95 | - * |
|
| 96 | - * @param IGroup $group |
|
| 97 | - */ |
|
| 98 | - public function deleteGroup(IGroup $group) { |
|
| 99 | - $this->log('Group deleted: "%s"', |
|
| 100 | - [ |
|
| 101 | - 'group' => $group->getGID() |
|
| 102 | - ], |
|
| 103 | - [ |
|
| 104 | - 'group' |
|
| 105 | - ] |
|
| 106 | - ); |
|
| 107 | - } |
|
| 93 | + /** |
|
| 94 | + * log delete group to group event |
|
| 95 | + * |
|
| 96 | + * @param IGroup $group |
|
| 97 | + */ |
|
| 98 | + public function deleteGroup(IGroup $group) { |
|
| 99 | + $this->log('Group deleted: "%s"', |
|
| 100 | + [ |
|
| 101 | + 'group' => $group->getGID() |
|
| 102 | + ], |
|
| 103 | + [ |
|
| 104 | + 'group' |
|
| 105 | + ] |
|
| 106 | + ); |
|
| 107 | + } |
|
| 108 | 108 | } |
@@ -29,137 +29,137 @@ |
||
| 29 | 29 | * @package OCA\AdminAudit\Actions |
| 30 | 30 | */ |
| 31 | 31 | class Files extends Action { |
| 32 | - /** |
|
| 33 | - * Logs file read actions |
|
| 34 | - * |
|
| 35 | - * @param array $params |
|
| 36 | - */ |
|
| 37 | - public function read(array $params) { |
|
| 38 | - $this->log( |
|
| 39 | - 'File accessed: "%s"', |
|
| 40 | - $params, |
|
| 41 | - [ |
|
| 42 | - 'path', |
|
| 43 | - ] |
|
| 44 | - ); |
|
| 45 | - } |
|
| 32 | + /** |
|
| 33 | + * Logs file read actions |
|
| 34 | + * |
|
| 35 | + * @param array $params |
|
| 36 | + */ |
|
| 37 | + public function read(array $params) { |
|
| 38 | + $this->log( |
|
| 39 | + 'File accessed: "%s"', |
|
| 40 | + $params, |
|
| 41 | + [ |
|
| 42 | + 'path', |
|
| 43 | + ] |
|
| 44 | + ); |
|
| 45 | + } |
|
| 46 | 46 | |
| 47 | - /** |
|
| 48 | - * Logs rename actions of files |
|
| 49 | - * |
|
| 50 | - * @param array $params |
|
| 51 | - */ |
|
| 52 | - public function rename(array $params) { |
|
| 53 | - $this->log( |
|
| 54 | - 'File renamed: "%s" to "%s"', |
|
| 55 | - $params, |
|
| 56 | - [ |
|
| 57 | - 'oldpath', |
|
| 58 | - 'newpath', |
|
| 59 | - ] |
|
| 60 | - ); |
|
| 61 | - } |
|
| 47 | + /** |
|
| 48 | + * Logs rename actions of files |
|
| 49 | + * |
|
| 50 | + * @param array $params |
|
| 51 | + */ |
|
| 52 | + public function rename(array $params) { |
|
| 53 | + $this->log( |
|
| 54 | + 'File renamed: "%s" to "%s"', |
|
| 55 | + $params, |
|
| 56 | + [ |
|
| 57 | + 'oldpath', |
|
| 58 | + 'newpath', |
|
| 59 | + ] |
|
| 60 | + ); |
|
| 61 | + } |
|
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * Logs creation of files |
|
| 65 | - * |
|
| 66 | - * @param array $params |
|
| 67 | - */ |
|
| 68 | - public function create(array $params) { |
|
| 69 | - if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) { |
|
| 70 | - return; |
|
| 71 | - } |
|
| 63 | + /** |
|
| 64 | + * Logs creation of files |
|
| 65 | + * |
|
| 66 | + * @param array $params |
|
| 67 | + */ |
|
| 68 | + public function create(array $params) { |
|
| 69 | + if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) { |
|
| 70 | + return; |
|
| 71 | + } |
|
| 72 | 72 | |
| 73 | - $this->log( |
|
| 74 | - 'File created: "%s"', |
|
| 75 | - $params, |
|
| 76 | - [ |
|
| 77 | - 'path', |
|
| 78 | - ] |
|
| 79 | - ); |
|
| 80 | - } |
|
| 73 | + $this->log( |
|
| 74 | + 'File created: "%s"', |
|
| 75 | + $params, |
|
| 76 | + [ |
|
| 77 | + 'path', |
|
| 78 | + ] |
|
| 79 | + ); |
|
| 80 | + } |
|
| 81 | 81 | |
| 82 | - /** |
|
| 83 | - * Logs copying of files |
|
| 84 | - * |
|
| 85 | - * @param array $params |
|
| 86 | - */ |
|
| 87 | - public function copy(array $params) { |
|
| 88 | - $this->log( |
|
| 89 | - 'File copied: "%s" to "%s"', |
|
| 90 | - $params, |
|
| 91 | - [ |
|
| 92 | - 'oldpath', |
|
| 93 | - 'newpath', |
|
| 94 | - ] |
|
| 95 | - ); |
|
| 96 | - } |
|
| 82 | + /** |
|
| 83 | + * Logs copying of files |
|
| 84 | + * |
|
| 85 | + * @param array $params |
|
| 86 | + */ |
|
| 87 | + public function copy(array $params) { |
|
| 88 | + $this->log( |
|
| 89 | + 'File copied: "%s" to "%s"', |
|
| 90 | + $params, |
|
| 91 | + [ |
|
| 92 | + 'oldpath', |
|
| 93 | + 'newpath', |
|
| 94 | + ] |
|
| 95 | + ); |
|
| 96 | + } |
|
| 97 | 97 | |
| 98 | - /** |
|
| 99 | - * Logs writing of files |
|
| 100 | - * |
|
| 101 | - * @param array $params |
|
| 102 | - */ |
|
| 103 | - public function write(array $params) { |
|
| 104 | - if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) { |
|
| 105 | - return; |
|
| 106 | - } |
|
| 98 | + /** |
|
| 99 | + * Logs writing of files |
|
| 100 | + * |
|
| 101 | + * @param array $params |
|
| 102 | + */ |
|
| 103 | + public function write(array $params) { |
|
| 104 | + if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) { |
|
| 105 | + return; |
|
| 106 | + } |
|
| 107 | 107 | |
| 108 | - $this->log( |
|
| 109 | - 'File written to: "%s"', |
|
| 110 | - $params, |
|
| 111 | - [ |
|
| 112 | - 'path', |
|
| 113 | - ] |
|
| 114 | - ); |
|
| 115 | - } |
|
| 108 | + $this->log( |
|
| 109 | + 'File written to: "%s"', |
|
| 110 | + $params, |
|
| 111 | + [ |
|
| 112 | + 'path', |
|
| 113 | + ] |
|
| 114 | + ); |
|
| 115 | + } |
|
| 116 | 116 | |
| 117 | - /** |
|
| 118 | - * Logs update of files |
|
| 119 | - * |
|
| 120 | - * @param array $params |
|
| 121 | - */ |
|
| 122 | - public function update(array $params) { |
|
| 123 | - $this->log( |
|
| 124 | - 'File updated: "%s"', |
|
| 125 | - $params, |
|
| 126 | - [ |
|
| 127 | - 'path', |
|
| 128 | - ] |
|
| 129 | - ); |
|
| 130 | - } |
|
| 117 | + /** |
|
| 118 | + * Logs update of files |
|
| 119 | + * |
|
| 120 | + * @param array $params |
|
| 121 | + */ |
|
| 122 | + public function update(array $params) { |
|
| 123 | + $this->log( |
|
| 124 | + 'File updated: "%s"', |
|
| 125 | + $params, |
|
| 126 | + [ |
|
| 127 | + 'path', |
|
| 128 | + ] |
|
| 129 | + ); |
|
| 130 | + } |
|
| 131 | 131 | |
| 132 | - /** |
|
| 133 | - * Logs deletions of files |
|
| 134 | - * |
|
| 135 | - * @param array $params |
|
| 136 | - */ |
|
| 137 | - public function delete(array $params) { |
|
| 138 | - $this->log( |
|
| 139 | - 'File deleted: "%s"', |
|
| 140 | - $params, |
|
| 141 | - [ |
|
| 142 | - 'path', |
|
| 143 | - ] |
|
| 144 | - ); |
|
| 145 | - } |
|
| 132 | + /** |
|
| 133 | + * Logs deletions of files |
|
| 134 | + * |
|
| 135 | + * @param array $params |
|
| 136 | + */ |
|
| 137 | + public function delete(array $params) { |
|
| 138 | + $this->log( |
|
| 139 | + 'File deleted: "%s"', |
|
| 140 | + $params, |
|
| 141 | + [ |
|
| 142 | + 'path', |
|
| 143 | + ] |
|
| 144 | + ); |
|
| 145 | + } |
|
| 146 | 146 | |
| 147 | - /** |
|
| 148 | - * Logs preview access to a file |
|
| 149 | - * |
|
| 150 | - * @param array $params |
|
| 151 | - */ |
|
| 152 | - public function preview(array $params) { |
|
| 153 | - $this->log( |
|
| 154 | - 'Preview accessed: "%s" (width: "%s", height: "%s" crop: "%s", mode: "%s")', |
|
| 155 | - $params, |
|
| 156 | - [ |
|
| 157 | - 'path', |
|
| 158 | - 'width', |
|
| 159 | - 'height', |
|
| 160 | - 'crop', |
|
| 161 | - 'mode' |
|
| 162 | - ] |
|
| 163 | - ); |
|
| 164 | - } |
|
| 147 | + /** |
|
| 148 | + * Logs preview access to a file |
|
| 149 | + * |
|
| 150 | + * @param array $params |
|
| 151 | + */ |
|
| 152 | + public function preview(array $params) { |
|
| 153 | + $this->log( |
|
| 154 | + 'Preview accessed: "%s" (width: "%s", height: "%s" crop: "%s", mode: "%s")', |
|
| 155 | + $params, |
|
| 156 | + [ |
|
| 157 | + 'path', |
|
| 158 | + 'width', |
|
| 159 | + 'height', |
|
| 160 | + 'crop', |
|
| 161 | + 'mode' |
|
| 162 | + ] |
|
| 163 | + ); |
|
| 164 | + } |
|
| 165 | 165 | } |
@@ -29,33 +29,33 @@ |
||
| 29 | 29 | * @package OCA\AdminAudit\Actions |
| 30 | 30 | */ |
| 31 | 31 | class Auth extends Action { |
| 32 | - public function loginAttempt(array $params) { |
|
| 33 | - $this->log( |
|
| 34 | - 'Login attempt: "%s"', |
|
| 35 | - $params, |
|
| 36 | - [ |
|
| 37 | - 'uid', |
|
| 38 | - ], |
|
| 39 | - true |
|
| 40 | - ); |
|
| 41 | - } |
|
| 32 | + public function loginAttempt(array $params) { |
|
| 33 | + $this->log( |
|
| 34 | + 'Login attempt: "%s"', |
|
| 35 | + $params, |
|
| 36 | + [ |
|
| 37 | + 'uid', |
|
| 38 | + ], |
|
| 39 | + true |
|
| 40 | + ); |
|
| 41 | + } |
|
| 42 | 42 | |
| 43 | - public function loginSuccessful(array $params) { |
|
| 44 | - $this->log( |
|
| 45 | - 'Login successful: "%s"', |
|
| 46 | - $params, |
|
| 47 | - [ |
|
| 48 | - 'uid', |
|
| 49 | - ], |
|
| 50 | - true |
|
| 51 | - ); |
|
| 52 | - } |
|
| 43 | + public function loginSuccessful(array $params) { |
|
| 44 | + $this->log( |
|
| 45 | + 'Login successful: "%s"', |
|
| 46 | + $params, |
|
| 47 | + [ |
|
| 48 | + 'uid', |
|
| 49 | + ], |
|
| 50 | + true |
|
| 51 | + ); |
|
| 52 | + } |
|
| 53 | 53 | |
| 54 | - public function logout(array $params) { |
|
| 55 | - $this->log( |
|
| 56 | - 'Logout occurred', |
|
| 57 | - [], |
|
| 58 | - [] |
|
| 59 | - ); |
|
| 60 | - } |
|
| 54 | + public function logout(array $params) { |
|
| 55 | + $this->log( |
|
| 56 | + 'Logout occurred', |
|
| 57 | + [], |
|
| 58 | + [] |
|
| 59 | + ); |
|
| 60 | + } |
|
| 61 | 61 | } |
@@ -29,25 +29,25 @@ |
||
| 29 | 29 | use OCP\IUserSession; |
| 30 | 30 | |
| 31 | 31 | class PersonalSection extends Section { |
| 32 | - /** @var IUserSession */ |
|
| 33 | - private $userSession; |
|
| 32 | + /** @var IUserSession */ |
|
| 33 | + private $userSession; |
|
| 34 | 34 | |
| 35 | - /** @var UserGlobalStoragesService */ |
|
| 36 | - private $userGlobalStoragesService; |
|
| 35 | + /** @var UserGlobalStoragesService */ |
|
| 36 | + private $userGlobalStoragesService; |
|
| 37 | 37 | |
| 38 | - /** @var BackendService */ |
|
| 39 | - private $backendService; |
|
| 38 | + /** @var BackendService */ |
|
| 39 | + private $backendService; |
|
| 40 | 40 | |
| 41 | - public function __construct( |
|
| 42 | - IURLGenerator $url, |
|
| 43 | - IL10N $l, |
|
| 44 | - IUserSession $userSession, |
|
| 45 | - UserGlobalStoragesService $userGlobalStoragesService, |
|
| 46 | - BackendService $backendService |
|
| 47 | - ) { |
|
| 48 | - parent::__construct($url, $l); |
|
| 49 | - $this->userSession = $userSession; |
|
| 50 | - $this->userGlobalStoragesService = $userGlobalStoragesService; |
|
| 51 | - $this->backendService = $backendService; |
|
| 52 | - } |
|
| 41 | + public function __construct( |
|
| 42 | + IURLGenerator $url, |
|
| 43 | + IL10N $l, |
|
| 44 | + IUserSession $userSession, |
|
| 45 | + UserGlobalStoragesService $userGlobalStoragesService, |
|
| 46 | + BackendService $backendService |
|
| 47 | + ) { |
|
| 48 | + parent::__construct($url, $l); |
|
| 49 | + $this->userSession = $userSession; |
|
| 50 | + $this->userGlobalStoragesService = $userGlobalStoragesService; |
|
| 51 | + $this->backendService = $backendService; |
|
| 52 | + } |
|
| 53 | 53 | } |
@@ -7,49 +7,49 @@ discard block |
||
| 7 | 7 | <form id="ocDefaultEncryptionModule" class="section"> |
| 8 | 8 | <h2 data-anchor-name="basic-encryption-module"><?php p($l->t('Basic encryption module')); ?></h2> |
| 9 | 9 | |
| 10 | - <?php if ($_["initialized"] === \OCA\Encryption\Session::NOT_INITIALIZED ): ?> |
|
| 10 | + <?php if ($_["initialized"] === \OCA\Encryption\Session::NOT_INITIALIZED): ?> |
|
| 11 | 11 | |
| 12 | 12 | <?php p($l->t("Encryption App is enabled, but your keys are not initialized. Please log-out and log-in again.")); ?> |
| 13 | 13 | |
| 14 | - <?php elseif ( $_["initialized"] === \OCA\Encryption\Session::INIT_EXECUTED ): ?> |
|
| 14 | + <?php elseif ($_["initialized"] === \OCA\Encryption\Session::INIT_EXECUTED): ?> |
|
| 15 | 15 | <p> |
| 16 | 16 | <a name="changePKPasswd" /> |
| 17 | 17 | <label for="changePrivateKeyPasswd"> |
| 18 | - <em><?php p( $l->t( "Your private key password no longer matches your log-in password." ) ); ?></em> |
|
| 18 | + <em><?php p($l->t("Your private key password no longer matches your log-in password.")); ?></em> |
|
| 19 | 19 | </label> |
| 20 | 20 | <br /> |
| 21 | - <?php p( $l->t( "Set your old private key password to your current log-in password:" ) ); ?> |
|
| 22 | - <?php if ( $_["recoveryEnabledForUser"] ): |
|
| 23 | - p( $l->t( " If you don't remember your old password you can ask your administrator to recover your files." ) ); |
|
| 21 | + <?php p($l->t("Set your old private key password to your current log-in password:")); ?> |
|
| 22 | + <?php if ($_["recoveryEnabledForUser"]): |
|
| 23 | + p($l->t(" If you don't remember your old password you can ask your administrator to recover your files.")); |
|
| 24 | 24 | endif; ?> |
| 25 | 25 | <br /> |
| 26 | 26 | <input |
| 27 | 27 | type="password" |
| 28 | 28 | name="changePrivateKeyPassword" |
| 29 | 29 | id="oldPrivateKeyPassword" /> |
| 30 | - <label for="oldPrivateKeyPassword"><?php p($l->t( "Old log-in password" )); ?></label> |
|
| 30 | + <label for="oldPrivateKeyPassword"><?php p($l->t("Old log-in password")); ?></label> |
|
| 31 | 31 | <br /> |
| 32 | 32 | <input |
| 33 | 33 | type="password" |
| 34 | 34 | name="changePrivateKeyPassword" |
| 35 | 35 | id="newPrivateKeyPassword" /> |
| 36 | - <label for="newRecoveryPassword"><?php p($l->t( "Current log-in password" )); ?></label> |
|
| 36 | + <label for="newRecoveryPassword"><?php p($l->t("Current log-in password")); ?></label> |
|
| 37 | 37 | <br /> |
| 38 | 38 | <button |
| 39 | 39 | type="button" |
| 40 | 40 | name="submitChangePrivateKeyPassword" |
| 41 | - disabled><?php p($l->t( "Update Private Key Password" )); ?> |
|
| 41 | + disabled><?php p($l->t("Update Private Key Password")); ?> |
|
| 42 | 42 | </button> |
| 43 | 43 | <span class="msg"></span> |
| 44 | 44 | </p> |
| 45 | 45 | |
| 46 | - <?php elseif ( $_["recoveryEnabled"] && $_["privateKeySet"] && $_["initialized"] === \OCA\Encryption\Session::INIT_SUCCESSFUL ): ?> |
|
| 46 | + <?php elseif ($_["recoveryEnabled"] && $_["privateKeySet"] && $_["initialized"] === \OCA\Encryption\Session::INIT_SUCCESSFUL): ?> |
|
| 47 | 47 | <br /> |
| 48 | 48 | <p id="userEnableRecovery"> |
| 49 | - <label for="userEnableRecovery"><?php p( $l->t( "Enable password recovery:" ) ); ?></label> |
|
| 49 | + <label for="userEnableRecovery"><?php p($l->t("Enable password recovery:")); ?></label> |
|
| 50 | 50 | <span class="msg"></span> |
| 51 | 51 | <br /> |
| 52 | - <em><?php p( $l->t( "Enabling this option will allow you to reobtain access to your encrypted files in case of password loss" ) ); ?></em> |
|
| 52 | + <em><?php p($l->t("Enabling this option will allow you to reobtain access to your encrypted files in case of password loss")); ?></em> |
|
| 53 | 53 | <br /> |
| 54 | 54 | <input |
| 55 | 55 | type="radio" |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | id="userEnableRecoveryCheckbox" |
| 58 | 58 | name="userEnableRecovery" |
| 59 | 59 | value="1" |
| 60 | - <?php echo ( $_["recoveryEnabledForUser"] ? 'checked="checked"' : '' ); ?> /> |
|
| 61 | - <label for="userEnableRecoveryCheckbox"><?php p( $l->t( "Enabled" ) ); ?></label> |
|
| 60 | + <?php echo ($_["recoveryEnabledForUser"] ? 'checked="checked"' : ''); ?> /> |
|
| 61 | + <label for="userEnableRecoveryCheckbox"><?php p($l->t("Enabled")); ?></label> |
|
| 62 | 62 | <br /> |
| 63 | 63 | |
| 64 | 64 | <input |
@@ -67,8 +67,8 @@ discard block |
||
| 67 | 67 | id="userDisableRecoveryCheckbox" |
| 68 | 68 | name="userEnableRecovery" |
| 69 | 69 | value="0" |
| 70 | - <?php echo ( $_["recoveryEnabledForUser"] === false ? 'checked="checked"' : '' ); ?> /> |
|
| 71 | - <label for="userDisableRecoveryCheckbox"><?php p( $l->t( "Disabled" ) ); ?></label> |
|
| 70 | + <?php echo ($_["recoveryEnabledForUser"] === false ? 'checked="checked"' : ''); ?> /> |
|
| 71 | + <label for="userDisableRecoveryCheckbox"><?php p($l->t("Disabled")); ?></label> |
|
| 72 | 72 | </p> |
| 73 | 73 | <?php endif; ?> |
| 74 | 74 | </form> |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | - /** @var array $_ */ |
|
| 3 | - /** @var \OCP\IL10N $l */ |
|
| 2 | + /** @var array $_ */ |
|
| 3 | + /** @var \OCP\IL10N $l */ |
|
| 4 | 4 | script('encryption', 'settings-personal'); |
| 5 | 5 | ?> |
| 6 | 6 | <form id="ocDefaultEncryptionModule" class="section"> |
@@ -19,8 +19,8 @@ discard block |
||
| 19 | 19 | <br /> |
| 20 | 20 | <?php p( $l->t( "Set your old private key password to your current log-in password:" ) ); ?> |
| 21 | 21 | <?php if ( $_["recoveryEnabledForUser"] ): |
| 22 | - p( $l->t( " If you don't remember your old password you can ask your administrator to recover your files." ) ); |
|
| 23 | - endif; ?> |
|
| 22 | + p( $l->t( " If you don't remember your old password you can ask your administrator to recover your files." ) ); |
|
| 23 | + endif; ?> |
|
| 24 | 24 | <br /> |
| 25 | 25 | <input |
| 26 | 26 | type="password" |
@@ -26,19 +26,19 @@ |
||
| 26 | 26 | use OC\Files\Storage\Wrapper\Jail; |
| 27 | 27 | |
| 28 | 28 | class JailPropagator extends Propagator { |
| 29 | - /** |
|
| 30 | - * @var Jail |
|
| 31 | - */ |
|
| 32 | - protected $storage; |
|
| 29 | + /** |
|
| 30 | + * @var Jail |
|
| 31 | + */ |
|
| 32 | + protected $storage; |
|
| 33 | 33 | |
| 34 | - /** |
|
| 35 | - * @param string $internalPath |
|
| 36 | - * @param int $time |
|
| 37 | - * @param int $sizeDifference |
|
| 38 | - */ |
|
| 39 | - public function propagateChange($internalPath, $time, $sizeDifference = 0) { |
|
| 40 | - /** @var \OC\Files\Storage\Storage $storage */ |
|
| 41 | - list($storage, $sourceInternalPath) = $this->storage->resolvePath($internalPath); |
|
| 42 | - $storage->getPropagator()->propagateChange($sourceInternalPath, $time, $sizeDifference); |
|
| 43 | - } |
|
| 34 | + /** |
|
| 35 | + * @param string $internalPath |
|
| 36 | + * @param int $time |
|
| 37 | + * @param int $sizeDifference |
|
| 38 | + */ |
|
| 39 | + public function propagateChange($internalPath, $time, $sizeDifference = 0) { |
|
| 40 | + /** @var \OC\Files\Storage\Storage $storage */ |
|
| 41 | + list($storage, $sourceInternalPath) = $this->storage->resolvePath($internalPath); |
|
| 42 | + $storage->getPropagator()->propagateChange($sourceInternalPath, $time, $sizeDifference); |
|
| 43 | + } |
|
| 44 | 44 | } |