Skip to content

Commit 587300f

Browse files
authored
PSR-12 compliancy (simplesamlphp#1213)
PSR-12 compliancy
1 parent f505513 commit 587300f

177 files changed

Lines changed: 1881 additions & 1567 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
"require-dev": {
8888
"ext-curl": "*",
8989
"mikey179/vfsstream": "~1.6",
90-
"phpunit/phpunit": "~5.7"
90+
"phpunit/phpunit": "~5.7",
91+
"squizlabs/php_codesniffer": "^3.5"
9192
},
9293
"suggest": {
9394
"predis/predis": "Needed if a Redis server is used to store session information",

composer.lock

Lines changed: 110 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/SimpleSAML/Auth/DefaultAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private static function getAuthSource($id)
159159
{
160160
$as = Source::getById($id);
161161
if ($as === null) {
162-
throw new \Exception('Invalid authentication source: '.$id);
162+
throw new \Exception('Invalid authentication source: ' . $id);
163163
}
164164
return $as;
165165
}

lib/SimpleSAML/Auth/LDAP.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
namespace SimpleSAML\Auth;
44

5-
@trigger_error(sprintf('Using the "SimpleSAML\Auth\LDAP" class is deprecated, use "SimpleSAML\Module\ldap\Auth\Ldap" instead.'), E_USER_DEPRECATED);
5+
@trigger_error(
6+
sprintf('Using the "SimpleSAML\Auth\LDAP" class is deprecated, use "SimpleSAML\Module\ldap\Auth\Ldap" instead.'),
7+
E_USER_DEPRECATED
8+
);
69

710
/**
811
* @deprecated To be removed in 2.0

0 commit comments

Comments
 (0)