Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 6900db6

Browse files
BaranekDvyskocilpavel
authored andcommitted
Code style to PSR-2, namespaces (#11)
* Added file phpcs.xml * Changed code style to PSR-2 * Added namespaces * Fix the indentation * Fix the line length
1 parent 9d013ca commit 6900db6

19 files changed

+1014
-495
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
[Added]
6+
- Added file phpcs.xml
7+
8+
[Changed]
9+
- Changed code style to PSR-2
10+
- Module uses namespaces
511

612
## [v2.1.0]
713
[Added]

config-templates/module_statisticsproxy.php

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -8,77 +8,77 @@
88

99
$config = array(
1010

11-
/*
12-
* Fill the serverName
13-
*/
14-
'serverName' => 'localhost',
11+
/*
12+
* Fill the serverName
13+
*/
14+
'serverName' => 'localhost',
1515

16-
/*
17-
* If you want to use the default port, please comment option 'port'
18-
*/
19-
'port' => 3306,
16+
/*
17+
* If you want to use the default port, please comment option 'port'
18+
*/
19+
'port' => 3306,
2020

21-
/*
22-
* Fill the user name
23-
*/
24-
'userName' => 'stats',
21+
/*
22+
* Fill the user name
23+
*/
24+
'userName' => 'stats',
2525

26-
/*
27-
* Fill the password
28-
*/
29-
'password' => 'stats',
26+
/*
27+
* Fill the password
28+
*/
29+
'password' => 'stats',
3030

31-
/*
32-
* Fill the database name
33-
*/
34-
'databaseName' => 'STATS',
31+
/*
32+
* Fill the database name
33+
*/
34+
'databaseName' => 'STATS',
3535

3636
/*
3737
* Fill the table name for statistics
3838
*/
3939
'statisticsTableName' => 'statisticsTableName',
4040

41-
/*
42-
* Fill the table name for identityProvidersMap
43-
*/
44-
'identityProvidersMapTableName' => 'identityProvidersMap',
41+
/*
42+
* Fill the table name for identityProvidersMap
43+
*/
44+
'identityProvidersMapTableName' => 'identityProvidersMap',
4545

4646
/*
4747
* Fill the table name for serviceProviders
4848
*/
4949
'serviceProvidersMapTableName' => 'serviceProvidersMap',
5050

51-
/*
52-
* Fill true, if you want to use encryption, false if not.
53-
*/
54-
'encryption' => true/false,
51+
/*
52+
* Fill true, if you want to use encryption, false if not.
53+
*/
54+
'encryption' => true / false,
5555

56-
/*
57-
* The path name to the certificate authority file.
58-
*
59-
* If you use encryption, you must fill this option.
60-
*/
61-
'ssl_ca' => '/example/ca.pem',
56+
/*
57+
* The path name to the certificate authority file.
58+
*
59+
* If you use encryption, you must fill this option.
60+
*/
61+
'ssl_ca' => '/example/ca.pem',
6262

63-
/*
64-
* The path name to the certificate file.
65-
*
66-
* If you use encryption, you must fill this option.
67-
*/
68-
'ssl_cert_path' => '/example/cert.pem',
63+
/*
64+
* The path name to the certificate file.
65+
*
66+
* If you use encryption, you must fill this option.
67+
*/
68+
'ssl_cert_path' => '/example/cert.pem',
6969

70-
/*
71-
* The path name to the key file.
72-
*
73-
* If you use encryption, you must fill this option.
74-
*/
75-
'ssl_key_path' => '/example/key.pem',
70+
/*
71+
* The path name to the key file.
72+
*
73+
* If you use encryption, you must fill this option.
74+
*/
75+
'ssl_key_path' => '/example/key.pem',
7676

77-
/*
78-
* The pathname to a directory that contains trusted SSL CA certificates in PEM format.
79-
*
80-
* If you use encryption, you must fill this option.
81-
*/
82-
'ssl_ca_path' => '/etc/ssl',
77+
/*
78+
* The pathname to a directory that contains trusted SSL CA certificates in PEM format.
79+
*
80+
* If you use encryption, you must fill this option.
81+
*/
82+
'ssl_ca_path' => '/etc/ssl',
8383

8484
);

0 commit comments

Comments
 (0)