Skip to content

Commit a024169

Browse files
committed
CS Fix
1 parent 4b7a5b2 commit a024169

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

public/index.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
if (getenv('ENV_DIR') !== false && getenv('ENV_DIR') !== '' ) {
3+
if (false !== getenv('ENV_DIR') && '' !== getenv('ENV_DIR')) {
44
$_SERVER['APP_RUNTIME_OPTIONS']['dotenv_path'] = getenv('ENV_DIR').'/.env';
55
}
66

@@ -11,11 +11,9 @@
1111

1212
require dirname(__DIR__).'/vendor/autoload.php';
1313

14-
15-
$env_dir = getenv('ENV_DIR') != false ? getenv('ENV_DIR') : dirname(__DIR__);
14+
$env_dir = false != getenv('ENV_DIR') ? getenv('ENV_DIR') : dirname(__DIR__);
1615
(new Dotenv())->bootEnv($env_dir.'/.env');
1716

18-
1917
if ($_SERVER['APP_DEBUG']) {
2018
umask(0000);
2119

src/Controller/DAVController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class DAVController extends AbstractController
7272
/**
7373
* WebDAV User Homes directory.
7474
*
75-
* @var string | null
75+
* @var string|null
7676
*/
7777
protected $webdavHomesDir;
7878

src/Services/LDAPAuth.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,19 @@ protected function ldapOpen($username, $password)
9090
$ldap = ldap_connect($this->LDAPAuthUrl);
9191
} catch (\Exception $e) {
9292
error_log('LDAP Error (ldap_connect with '.$this->LDAPAuthUrl.'): '.$e->getMessage());
93+
9394
return false;
9495
}
9596

96-
if ($ldap === false) {
97+
if (false === $ldap) {
9798
error_log('LDAP Error (ldap_connect with '.$this->LDAPAuthUrl.'): provided LDAP URI does not seems plausible');
99+
98100
return false;
99101
}
100102

101103
if (!ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3)) {
102104
error_log('LDAP Error (ldap_set_option): could not set LDAP_OPT_PROTOCOL_VERSION to 3');
105+
103106
return false;
104107
}
105108

0 commit comments

Comments
 (0)