@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | bool $leftJoin = false, |
| 69 | 69 | ): void { |
| 70 | 70 | foreach ($this->getFields(TeamEntity::class) as $field) { |
| 71 | - $qb->selectAlias($aliasDetails . '.' . $field, $aliasDetails . '_' . $field); |
|
| 71 | + $qb->selectAlias($aliasDetails.'.'.$field, $aliasDetails.'_'.$field); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | $join = ($leftJoin) ? 'leftJoin' : 'innerJoin'; |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $aliasSingleId, |
| 77 | 77 | self::TABLE, |
| 78 | 78 | $aliasDetails, |
| 79 | - $qb->expr()->eq($aliasSingleId . '.' . $fieldSingleId, $aliasDetails . '.single_id') |
|
| 79 | + $qb->expr()->eq($aliasSingleId.'.'.$fieldSingleId, $aliasDetails.'.single_id') |
|
| 80 | 80 | ); |
| 81 | 81 | } |
| 82 | 82 | |
@@ -85,8 +85,8 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | public function createTeamEntityFromRow(array $row, string $alias = ''): TeamEntity { |
| 87 | 87 | $new = []; |
| 88 | - foreach($this->getFields(TeamEntity::class) as $field) { |
|
| 89 | - $new[$field] = $row[$alias . $field]; |
|
| 88 | + foreach ($this->getFields(TeamEntity::class) as $field) { |
|
| 89 | + $new[$field] = $row[$alias.$field]; |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | if ($new['id'] === null) { |
@@ -77,8 +77,8 @@ |
||
| 77 | 77 | |
| 78 | 78 | public function createTeamMemberFromRow(array $row, string $alias = ''): TeamMember { |
| 79 | 79 | $new = []; |
| 80 | - foreach($this->getFields(TeamMember::class) as $field) { |
|
| 81 | - $new[$field] = $row[$alias . $field]; |
|
| 80 | + foreach ($this->getFields(TeamMember::class) as $field) { |
|
| 81 | + $new[$field] = $row[$alias.$field]; |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | return $this->mapRowToEntity($new); |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | return $this->teamMemberManager->getMembersFromTeam($this->getEntity(), $singleId); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public function addMember(Team|string $team, TeamEntity|string $entity): TeamMember { |
|
| 41 | + public function addMember(Team | string $team, TeamEntity | string $entity): TeamMember { |
|
| 42 | 42 | $this->confirmSessionInitialized(); |
| 43 | 43 | |
| 44 | 44 | if (!($team instanceof Team)) { |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | TeamEntityType::APP, |
| 37 | 37 | TeamEntityType::OCC, |
| 38 | 38 | TeamEntityType::SUPER_ADMIN, |
| 39 | - ],true)) { |
|
| 39 | + ], true)) { |
|
| 40 | 40 | $realOwner = null; |
| 41 | 41 | } |
| 42 | 42 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * @param TeamEntityType|TeamEntityType[] $limitToEntities |
| 51 | 51 | */ |
| 52 | - final public function confirmSessionInitialized(TeamEntityType|array $limitToEntities = []): void { |
|
| 52 | + final public function confirmSessionInitialized(TeamEntityType | array $limitToEntities = []): void { |
|
| 53 | 53 | if ($this->session === null) { |
| 54 | 54 | throw new \Exception('session/entity not initialized'); // TODO specific Exception |
| 55 | 55 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * @param TeamEntityType|TeamEntityType[] $limitToEntities |
| 66 | 66 | */ |
| 67 | - final protected function lowPriorityProcess(TeamEntityType|array $limitToEntities = []): void { |
|
| 67 | + final protected function lowPriorityProcess(TeamEntityType | array $limitToEntities = []): void { |
|
| 68 | 68 | $this->confirmSessionInitialized($limitToEntities); |
| 69 | 69 | // TODO: detect type of process and filters it |
| 70 | 70 | // if (!in_array( |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $this->userConfig->deleteKey(Application::APP_ID, 'teamSingleId'); |
| 41 | 41 | $this->appConfig->deleteKey(Application::APP_ID, 'occSingleId'); |
| 42 | 42 | $this->appConfig->deleteKey(Application::APP_ID, 'superAdminSingleId'); |
| 43 | - foreach($this->appConfig->searchValues('teamSingleId') as $appId => $value) { |
|
| 43 | + foreach ($this->appConfig->searchValues('teamSingleId') as $appId => $value) { |
|
| 44 | 44 | $this->appConfig->deleteKey($appId, 'teamSingleId'); |
| 45 | 45 | } |
| 46 | 46 | } |