From 168f37dc8a19998b47e58cde42ea8e0ef9c84cdb Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sun, 25 Apr 2021 11:25:45 +0300 Subject: [PATCH] doc fix --- application/Espo/Core/Acl.php | 18 +++++++++--------- application/Espo/Core/Acl/Map/Map.php | 4 ++-- .../Espo/Core/Acl/Map/MetadataProvider.php | 6 +++--- .../Core/Acl/Table/DefaultRoleListProvider.php | 2 +- .../Espo/Core/Acl/Table/RoleListProvider.php | 2 +- application/Espo/Core/AclManager.php | 18 +++++++++--------- .../Core/Authentication/ConfigDataProvider.php | 2 +- application/Espo/Core/Console/Params.php | 8 ++++---- .../Espo/Core/FieldValidation/Params.php | 8 ++++---- .../Currency/CurrencyConfigDataProvider.php | 2 +- .../Espo/Core/Fields/EmailAddressGroup.php | 14 +++++++------- application/Espo/Core/Fields/LinkMultiple.php | 10 +++++----- .../Espo/Core/Fields/LinkMultipleItem.php | 2 +- .../Espo/Core/Fields/PhoneNumberGroup.php | 14 +++++++------- .../Core/Portal/Acl/Table/RoleListProvider.php | 2 +- application/Espo/Core/Utils/File/Manager.php | 2 +- application/Espo/ORM/Defs/Defs.php | 4 ++-- application/Espo/ORM/Defs/EntityDefs.php | 16 ++++++++-------- application/Espo/ORM/Metadata.php | 2 +- 19 files changed, 68 insertions(+), 68 deletions(-) diff --git a/application/Espo/Core/Acl.php b/application/Espo/Core/Acl.php index 918a44d2cc..f4e4af4033 100644 --- a/application/Espo/Core/Acl.php +++ b/application/Espo/Core/Acl.php @@ -200,7 +200,7 @@ class Acl * Get attributes forbidden for a user. * * @param $thresholdLevel Should not be used. Stands for possible future enhancements. * - * @return array + * @return array */ public function getScopeForbiddenAttributeList( string $scope, @@ -216,7 +216,7 @@ class Acl * Get fields forbidden for a user. * * @param $thresholdLevel Should not be used. Stands for possible future enhancements. - * @return array + * @return array */ public function getScopeForbiddenFieldList( string $scope, @@ -232,7 +232,7 @@ class Acl * Get links forbidden for a user. * * @param $thresholdLevel Should not be used. Stands for possible future enhancements. - * @return array + * @return array */ public function getScopeForbiddenLinkList( string $scope, @@ -266,8 +266,8 @@ class Acl /** * Get a restricted field list for a specific scope by a restriction type. * - * @param string|array $type - * @return array + * @param string|array $type + * @return array */ public function getScopeRestrictedFieldList(string $scope, $type): array { @@ -277,8 +277,8 @@ class Acl /** * Get a restricted attribute list for a specific scope by a restriction type. * - * @param string|array $type - * @return array + * @param string|array $type + * @return array */ public function getScopeRestrictedAttributeList(string $scope, $type): array { @@ -288,8 +288,8 @@ class Acl /** * Get a restricted link list for a specific scope by a restriction type. * - * @param string|array $type - * @return array + * @param string|array $type + * @return array */ public function getScopeRestrictedLinkList(string $scope, $type): array { diff --git a/application/Espo/Core/Acl/Map/Map.php b/application/Espo/Core/Acl/Map/Map.php index 219e82a9a9..8a75b94f4b 100644 --- a/application/Espo/Core/Acl/Map/Map.php +++ b/application/Espo/Core/Acl/Map/Map.php @@ -112,7 +112,7 @@ class Map * @param $action An action. * @param $thresholdLevel An attribute will be treated as forbidden if the level is * equal to or lower than the threshold. - * @return array + * @return array */ public function getScopeForbiddenAttributeList( string $scope, @@ -184,7 +184,7 @@ class Map * @param $action An action. * @param $thresholdLevel An attribute will be treated as forbidden if the level is * equal to or lower than the threshold. - * @return array + * @return array */ public function getScopeForbiddenFieldList( string $scope, diff --git a/application/Espo/Core/Acl/Map/MetadataProvider.php b/application/Espo/Core/Acl/Map/MetadataProvider.php index 07d1585a3c..31a3512093 100644 --- a/application/Espo/Core/Acl/Map/MetadataProvider.php +++ b/application/Espo/Core/Acl/Map/MetadataProvider.php @@ -45,7 +45,7 @@ class MetadataProvider } /** - * @return array + * @return array */ public function getScopeList(): array { @@ -58,7 +58,7 @@ class MetadataProvider } /** - * @return array + * @return array */ public function getScopeFieldList(string $scope): array { @@ -66,7 +66,7 @@ class MetadataProvider } /** - * @return array + * @return array */ public function getPermissionList(): array { diff --git a/application/Espo/Core/Acl/Table/DefaultRoleListProvider.php b/application/Espo/Core/Acl/Table/DefaultRoleListProvider.php index c17f2c641f..d548e64820 100644 --- a/application/Espo/Core/Acl/Table/DefaultRoleListProvider.php +++ b/application/Espo/Core/Acl/Table/DefaultRoleListProvider.php @@ -49,7 +49,7 @@ class DefaultRoleListProvider implements RoleListProvider } /** - * @return array + * @return array */ public function get(): array { diff --git a/application/Espo/Core/Acl/Table/RoleListProvider.php b/application/Espo/Core/Acl/Table/RoleListProvider.php index 16e17bcc70..915ffe5f0f 100644 --- a/application/Espo/Core/Acl/Table/RoleListProvider.php +++ b/application/Espo/Core/Acl/Table/RoleListProvider.php @@ -32,7 +32,7 @@ namespace Espo\Core\Acl\Table; interface RoleListProvider { /** - * @return array + * @return array */ public function get(): array; } diff --git a/application/Espo/Core/AclManager.php b/application/Espo/Core/AclManager.php index 3549a05f84..c51640579f 100644 --- a/application/Espo/Core/AclManager.php +++ b/application/Espo/Core/AclManager.php @@ -450,7 +450,7 @@ class AclManager * Get attributes forbidden for a user. * * @param $thresholdLevel Should not be used. Stands for possible future enhancements. - * @return array + * @return array */ public function getScopeForbiddenAttributeList( User $user, @@ -478,7 +478,7 @@ class AclManager * Get fields forbidden for a user. * * @param $thresholdLevel Should not be used. Stands for possible future enhancements. - * @return array + * @return array */ public function getScopeForbiddenFieldList( User $user, @@ -506,7 +506,7 @@ class AclManager * Get links forbidden for a user. * * @param $thresholdLevel Should not be used. Stands for possible future enhancements. - * @return array + * @return array */ public function getScopeForbiddenLinkList( User $user, @@ -589,8 +589,8 @@ class AclManager /** * Get a restricted field list for a specific scope by a restriction type. * - * @param string|array $type - * @return array + * @param string|array $type + * @return array */ public function getScopeRestrictedFieldList(string $scope, $type): array { @@ -615,8 +615,8 @@ class AclManager /** * Get a restricted attribute list for a specific scope by a restriction type. * - * @param string|array $type - * @return array + * @param string|array $type + * @return array */ public function getScopeRestrictedAttributeList(string $scope, $type): array { @@ -641,8 +641,8 @@ class AclManager /** * Get a restricted link list for a specific scope by a restriction type. * - * @param string|array $type - * @return array + * @param string|array $type + * @return array */ public function getScopeRestrictedLinkList(string $scope, $type): array { diff --git a/application/Espo/Core/Authentication/ConfigDataProvider.php b/application/Espo/Core/Authentication/ConfigDataProvider.php index 882e78115c..a309ac7eb6 100644 --- a/application/Espo/Core/Authentication/ConfigDataProvider.php +++ b/application/Espo/Core/Authentication/ConfigDataProvider.php @@ -93,7 +93,7 @@ class ConfigDataProvider /** * Allowed methods of 2FA. * - * @return array + * @return array */ public function getTwoFactorMethodList(): array { diff --git a/application/Espo/Core/Console/Params.php b/application/Espo/Core/Console/Params.php index c8a15e6c20..df6ad61de8 100644 --- a/application/Espo/Core/Console/Params.php +++ b/application/Espo/Core/Console/Params.php @@ -40,12 +40,12 @@ class Params private $options; /** - * @var array + * @var array */ private $flagList; /** - * @var array + * @var array */ private $argumentList; @@ -65,7 +65,7 @@ class Params } /** - * @return array + * @return array */ public function getFlagList(): array { @@ -73,7 +73,7 @@ class Params } /** - * @return array + * @return array */ public function getArgumentList(): array { diff --git a/application/Espo/Core/FieldValidation/Params.php b/application/Espo/Core/FieldValidation/Params.php index 103398e3ab..e253108e09 100644 --- a/application/Espo/Core/FieldValidation/Params.php +++ b/application/Espo/Core/FieldValidation/Params.php @@ -42,7 +42,7 @@ class Params /** * A field list that will be skipped in validation. * - * @return array + * @return array */ public function getSkipFieldList(): array { @@ -52,7 +52,7 @@ class Params /** * A field list that will be skipped in validation for a specific validation type. * - * @return array + * @return array */ public function getTypeSkipFieldList(string $type): array { @@ -62,7 +62,7 @@ class Params /** * Clone with a specified field list that will be skipped in validation. * - * @param array $list + * @param array $list */ public function withSkipFieldList(array $list): self { @@ -76,7 +76,7 @@ class Params /** * Clone with a specified field list that will be skipped in validation for a specific validation type. * - * @param array $list + * @param array $list */ public function withTypeSkipFieldList(string $type, array $list): self { diff --git a/application/Espo/Core/Fields/Currency/CurrencyConfigDataProvider.php b/application/Espo/Core/Fields/Currency/CurrencyConfigDataProvider.php index 47ae2ecd84..8ae7702dfb 100644 --- a/application/Espo/Core/Fields/Currency/CurrencyConfigDataProvider.php +++ b/application/Espo/Core/Fields/Currency/CurrencyConfigDataProvider.php @@ -61,7 +61,7 @@ class CurrencyConfigDataProvider /** * Get a list of available currencies. * - * @return array + * @return array */ public function getCurrencyList(): array { diff --git a/application/Espo/Core/Fields/EmailAddressGroup.php b/application/Espo/Core/Fields/EmailAddressGroup.php index b628507dc6..79504aaa5a 100644 --- a/application/Espo/Core/Fields/EmailAddressGroup.php +++ b/application/Espo/Core/Fields/EmailAddressGroup.php @@ -38,7 +38,7 @@ use RuntimeException; class EmailAddressGroup { /** - * @var array + * @var array */ private $list = []; @@ -48,7 +48,7 @@ class EmailAddressGroup private $primary = null; /** - * @param array $list + * @param array $list * * @throws RuntimeException */ @@ -95,7 +95,7 @@ class EmailAddressGroup /** * Get a list of all email addresses. * - * @return array + * @return array */ public function getList(): array { @@ -113,7 +113,7 @@ class EmailAddressGroup /** * Get a list of email addresses w/o a primary. * - * @return array + * @return array */ public function getSecondaryList(): array { @@ -133,7 +133,7 @@ class EmailAddressGroup /** * Get a list of email addresses represented as strings. * - * @return array + * @return array */ public function getAddressList(): array { @@ -191,7 +191,7 @@ class EmailAddressGroup /** * Clone with an added email address list. * - * @param array $list + * @param array $list */ public function withAddedList(array $list): self { @@ -249,7 +249,7 @@ class EmailAddressGroup /** * Create from an email address list. A first item will be set as primary. * - * @param array $list + * @param array $list */ public static function fromList(array $list): self { diff --git a/application/Espo/Core/Fields/LinkMultiple.php b/application/Espo/Core/Fields/LinkMultiple.php index 9254e9077b..00e0abf81c 100644 --- a/application/Espo/Core/Fields/LinkMultiple.php +++ b/application/Espo/Core/Fields/LinkMultiple.php @@ -39,7 +39,7 @@ class LinkMultiple private $list = []; /** - * @param array $list + * @param array $list * * @throws RuntimeException */ @@ -72,7 +72,7 @@ class LinkMultiple /** * Get a list of IDs. * - * @return array + * @return array */ public function getIdList(): array { @@ -88,7 +88,7 @@ class LinkMultiple /** * Get a list of items. * - * @return array + * @return array */ public function getList(): array { @@ -128,7 +128,7 @@ class LinkMultiple /** * Clone with an added item list. * . - * @param array $list + * @param array $list * * @throws RuntimeException */ @@ -180,7 +180,7 @@ class LinkMultiple /** * Create from an item list. * - * @param array $list + * @param array $list * * @throws RuntimeException */ diff --git a/application/Espo/Core/Fields/LinkMultipleItem.php b/application/Espo/Core/Fields/LinkMultipleItem.php index 48d3e056e7..271e91c3eb 100644 --- a/application/Espo/Core/Fields/LinkMultipleItem.php +++ b/application/Espo/Core/Fields/LinkMultipleItem.php @@ -91,7 +91,7 @@ class LinkMultipleItem /** * Get a list of set columns. * - * @return array + * @return array */ public function getColumnList(): array { diff --git a/application/Espo/Core/Fields/PhoneNumberGroup.php b/application/Espo/Core/Fields/PhoneNumberGroup.php index f4e30d57a1..b010e4fbd3 100644 --- a/application/Espo/Core/Fields/PhoneNumberGroup.php +++ b/application/Espo/Core/Fields/PhoneNumberGroup.php @@ -38,7 +38,7 @@ use RuntimeException; class PhoneNumberGroup { /** - * @var array + * @var array */ private $list = []; @@ -48,7 +48,7 @@ class PhoneNumberGroup private $primary = null; /** - * @param array $list + * @param array $list * * @throws RuntimeException */ @@ -95,7 +95,7 @@ class PhoneNumberGroup /** * Get a list of all phone numbers. * - * @return array + * @return array */ public function getList(): array { @@ -113,7 +113,7 @@ class PhoneNumberGroup /** * Get a list of phone numbers w/o a primary. * - * @return array + * @return array */ public function getSecondaryList(): array { @@ -133,7 +133,7 @@ class PhoneNumberGroup /** * Get a list of phone numbers represented as strings. * - * @return array + * @return array */ public function getNumberList(): array { @@ -191,7 +191,7 @@ class PhoneNumberGroup /** * Clone with an added phone number list. * - * @param array $list + * @param array $list */ public function withAddedList(array $list): self { @@ -249,7 +249,7 @@ class PhoneNumberGroup /** * Create from a phone number list. A first item will be set as primary. * - * @param array $list + * @param array $list */ public static function fromList(array $list): self { diff --git a/application/Espo/Core/Portal/Acl/Table/RoleListProvider.php b/application/Espo/Core/Portal/Acl/Table/RoleListProvider.php index 9b63ecc774..813a96c05d 100644 --- a/application/Espo/Core/Portal/Acl/Table/RoleListProvider.php +++ b/application/Espo/Core/Portal/Acl/Table/RoleListProvider.php @@ -59,7 +59,7 @@ class RoleListProvider implements RoleListProviderInterface } /** - * @return array + * @return array */ public function get(): array { diff --git a/application/Espo/Core/Utils/File/Manager.php b/application/Espo/Core/Utils/File/Manager.php index f4524a9376..960d61e11d 100644 --- a/application/Espo/Core/Utils/File/Manager.php +++ b/application/Espo/Core/Utils/File/Manager.php @@ -86,7 +86,7 @@ class Manager * If TRUE - returns only file list, if FALSE - only directory list. * @param bool $returnSingleArray Return a single array. * - * @return array + * @return array */ public function getFileList( string $path, diff --git a/application/Espo/ORM/Defs/Defs.php b/application/Espo/ORM/Defs/Defs.php index 18ba7e3598..d746a1969d 100644 --- a/application/Espo/ORM/Defs/Defs.php +++ b/application/Espo/ORM/Defs/Defs.php @@ -46,7 +46,7 @@ class Defs /** * Get an entity type list. * - * @return array + * @return array */ public function getEntityTypeList(): array { @@ -56,7 +56,7 @@ class Defs /** * Get an entity definitions list. * - * @return array + * @return array */ public function getEntityList(): array { diff --git a/application/Espo/ORM/Defs/EntityDefs.php b/application/Espo/ORM/Defs/EntityDefs.php index 4e4bf87e3a..861fb97c00 100644 --- a/application/Espo/ORM/Defs/EntityDefs.php +++ b/application/Espo/ORM/Defs/EntityDefs.php @@ -71,7 +71,7 @@ class EntityDefs /** * Get an attribute name list. * - * @return array + * @return array */ public function getAttributeNameList(): array { @@ -81,7 +81,7 @@ class EntityDefs /** * Get a relation name list. * - * @return array + * @return array */ public function getRelationNameList(): array { @@ -91,7 +91,7 @@ class EntityDefs /** * Get an index name list. * - * @return array + * @return array */ public function getIndexNameList(): array { @@ -101,7 +101,7 @@ class EntityDefs /** * Get a field name list. * - * @return array + * @return array */ public function getFieldNameList(): array { @@ -111,7 +111,7 @@ class EntityDefs /** * Get an attribute definitions list. * - * @return array + * @return array */ public function getAttributeList(): array { @@ -127,7 +127,7 @@ class EntityDefs /** * Get a relation definitions list. * - * @return array + * @return array */ public function getRelationList(): array { @@ -143,7 +143,7 @@ class EntityDefs /** * Get an index definitions list. * - * @return array + * @return array */ public function getIndexList(): array { @@ -159,7 +159,7 @@ class EntityDefs /** * Get a field definitions list. * - * @return array + * @return array */ public function getFieldList(): array { diff --git a/application/Espo/ORM/Metadata.php b/application/Espo/ORM/Metadata.php index b774797dd2..98cb781894 100644 --- a/application/Espo/ORM/Metadata.php +++ b/application/Espo/ORM/Metadata.php @@ -116,7 +116,7 @@ class Metadata /** * Get a list of entity types. * - * @return array + * @return array */ public function getEntityTypeList(): array {