Skip to content

Commit 5b172a7

Browse files
committed
phpcs
1 parent 9659b49 commit 5b172a7

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

workers/update-ldap-cache.php

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
22

33
require_once __DIR__ . "/../resources/autoload.php";
44

5-
use UnityWebPortal\lib\{
6-
UnityConfig,
7-
UnityLDAP,
8-
UnityMailer,
9-
UnitySQL,
10-
UnitySite,
11-
UnitySSO,
12-
UnityUser,
13-
UnityRedis,
14-
UnityWebhook
15-
};
5+
use UnityWebPortal\lib\UnityConfig;
6+
use UnityWebPortal\lib\UnityLDAP;
7+
use UnityWebPortal\lib\UnityMailer;
8+
use UnityWebPortal\lib\UnitySQL;
9+
use UnityWebPortal\lib\UnitySite;
10+
use UnityWebPortal\lib\UnitySSO;
11+
use UnityWebPortal\lib\UnityUser;
12+
use UnityWebPortal\lib\UnityRedis;
13+
use UnityWebPortal\lib\UnityWebhook;
1614
use PHPOpenLDAPer\LDAPEntry;
1715

1816
$options = getopt("fu");
@@ -22,7 +20,8 @@
2220
}
2321

2422
if ((!is_null($REDIS->getCache("initialized", "")) and (!array_key_exists("u", $options)))) {
25-
echo "cache is already initialized, nothing doing. use -f argument to flush cache, or -u argument to update without flush.\n";
23+
echo "cache is already initialized, nothing doing.";
24+
echo " use -f argument to flush cache, or -u argument to update without flush.";
2625
} else {
2726
echo "updating cache...\n";
2827
$user_ou = new LDAPEntry($LDAP->getConn(), $CONFIG["ldap"]["user_ou"]);

0 commit comments

Comments
 (0)