Skip to content

Commit d9587b9

Browse files
committed
Fix code style
1 parent 332bfdb commit d9587b9

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed

app/Command/BackupDbCommand.php

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7575
case 1:
7676
$io->error('There was an issue backing up the database');
7777
$io->listing($output);
78+
7879
return Command::FAILURE;
7980
}
8081

app/Core/Configuration/laravelConfig.php

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
*/
1313
\Leantime\Core\Providers\AppServiceProvider::class,
1414

15-
1615
\Leantime\Core\Providers\Cache::class, //\Illuminate\Cache\CacheServiceProvider::class,
1716
\Leantime\Core\Providers\Redis::class,
1817

app/Core/Events/EventDispatcher.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -293,16 +293,16 @@ public static function add_event_listener(
293293
): void {
294294

295295
//Some backwards compatibility rules
296-
if(str_starts_with($eventName, "leantime.core.template.tpl")) {
297-
$eventParts = explode(".", $eventName);
296+
if (str_starts_with($eventName, 'leantime.core.template.tpl')) {
297+
$eventParts = explode('.', $eventName);
298298

299299
$count = count($eventParts);
300300

301-
$eventName = "leantime.*.".($eventParts[$count-2] ?? '').".".($eventParts[$count-1] ?? '');
301+
$eventName = 'leantime.*.'.($eventParts[$count - 2] ?? '').'.'.($eventParts[$count - 1] ?? '');
302302
}
303303

304-
if($eventName == "leantime.core.*.afterFooterOpen") {
305-
$eventName = "leantime.*.afterFooterOpen";
304+
if ($eventName == 'leantime.core.*.afterFooterOpen') {
305+
$eventName = 'leantime.*.afterFooterOpen';
306306
}
307307

308308
if (! array_key_exists($eventName, self::$eventRegistry)) {

app/Domain/Plugins/Services/Plugins.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function __construct(
6969
/**
7070
* Retrieves all plugins, optionally filtering only the enabled ones.
7171
*
72-
* @param bool $enabledOnly If set to true, only enabled plugins will be returned.
72+
* @param bool $enabledOnly If set to true, only enabled plugins will be returned.
7373
* @return false|array<InstalledPlugin> Returns an array of all plugins or false if an error occurs.
7474
*
7575
* @api

app/Domain/Projects/Repositories/Projects.php

+4-7
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ public function getUsersAssignedToProject($id, $includeApiUsers = false): array|
146146
/**
147147
* Retrieves the relationship of users assigned to a specific project.
148148
*
149-
* @param int $id The ID of the project.
150-
* @param bool $includeApiUsers Flag to determine whether to include API users. Default is false.
149+
* @param int $id The ID of the project.
150+
* @param bool $includeApiUsers Flag to determine whether to include API users. Default is false.
151151
* @return array|bool Returns an array of users assigned to the project or false on failure.
152152
*
153153
* @Deprecated
154-
*
155154
*/
156-
public function getProjectUserRelation($id, $includeApiUsers = false): array|bool {
155+
public function getProjectUserRelation($id, $includeApiUsers = false): array|bool
156+
{
157157
return $this->getUsersAssignedToProject($id, $includeApiUsers);
158158
}
159159

@@ -318,9 +318,6 @@ public function getProjectsUserHasAccessTo($userId, string $status = 'all', stri
318318
return $values;
319319
}
320320

321-
322-
323-
324321
/**
325322
* @return int|mixed
326323
*/

0 commit comments

Comments
 (0)