Skip to content

Commit 37cbdf8

Browse files
committed
refactor: add missing namespace, doc-blocks
1 parent 6c75d35 commit 37cbdf8

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

src/commands/dc.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
* @var string $cli_name The current name of the `slic` CLI application.
88
*/
99

10-
use function StellarWP\Slic\colorize;
11-
use function StellarWP\Slic\slic_realtime;
10+
namespace StellarWP\Slic;
1211

1312
if ( $is_help ) {
1413
$help = <<< HELP

src/notify.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
namespace StellarWP\Slic;
77

8+
/**
9+
* Outputs a notification about the WordPress site URL.
10+
*
11+
* Displays a colored message showing the local WordPress site URL with the configured HTTP port.
12+
*
13+
* @return void
14+
*/
815
function service_wordpress_notify() {
916
echo colorize( PHP_EOL . "Your WordPress site is reachable at: <yellow>http://localhost:" . getenv( 'WORDPRESS_HTTP_PORT' ) . "</yellow>" . PHP_EOL );
1017
}

src/utils.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,13 @@ function is_ci() {
284284
return false;
285285
}
286286

287-
// Whether the current run context is a `slic` binary one or not.
287+
/**
288+
* Returns whether the current run context is a slic binary one or not.
289+
*
290+
* Checks environment variables to determine if the code is running in a slic context.
291+
*
292+
* @return bool Whether the current run context is a slic binary one or not.
293+
*/
288294
function is_slic() {
289295
$env_vars = [
290296
'STELLAR_SLIC',

0 commit comments

Comments
 (0)