Commit graph

18 commits

Author SHA1 Message Date
Henrique Moody
880103c55f
Apply "SlevomatCodingStandard.Functions.StaticClosure"
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-09 14:13:35 +01:00
Henrique Moody
c30603759e
Apply "SlevomatCodingStandard.TypeHints.TypeHintDeclaration"
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-09 14:09:28 +01:00
Henrique Moody
8e59ec5d4a
Apply "Squiz.WhiteSpace.MemberVarSpacing"
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-09 14:08:43 +01:00
Henrique Moody
b7043b2652
Set up "squizlabs/php_codesniffer"
The tool we used to verify whether the code base has the correct coding
standard was removed [1].

This commit will set up one that works best for us and will also make
sure we have fully compliant to PS1 and PSR2.

[1]: ffec95acda

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-03 19:39:14 +01:00
Henrique Moody
9e7571fb98
Add missing "@author" annotations
This commit will make sure that every class, interface, or trait will
have the "@author" annotation in it.

In order to create a list of authors, I used the "git blame" command,
which means that if someone changed or even created the file but does
not have any remaining line will not be shown in the list; it's a
trade-off worth but it is worth it. The other way to do it would be
carefully checking each file.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-11-25 18:08:44 +01:00
Henrique Moody
ccf60f0ee3
Method validate() should always return a boolean 2018-01-28 17:38:36 +01:00
Henrique Moody
ef975629f3
Changes on PHP-CS-Fixer configuration
Because of `declare(strict_types=1)` some changes were necessary.
2018-01-04 17:59:37 +01:00
Henrique Moody
5b7ea399c0
Fix coding standards 2017-11-12 14:21:46 +01:00
Mikhail Vyrtsev
41658279e8 Codestyle fixed according to @nickl- 2017-06-29 16:26:47 +03:00
Mikhail Vyrtsev
c50c27eecb Removed unwanted semicolon 2017-06-29 15:49:48 +03:00
Mikhail Vyrtsev
19174a8cb1 Fix codestyle according to @nickl- 2017-06-29 15:36:09 +03:00
Mikhail Vyrtsev
017f78e89e Fix scrutinizer warning 2017-06-29 15:03:50 +03:00
Mikhail Vyrtsev
ac3f9c8d78 Removed $cmp variable, creds to @nickl- 2017-06-29 14:40:09 +03:00
Mikhail Vyrtsev
53d4182b18 uhm, well, it was actually fine 2017-06-29 06:37:26 +03:00
Mikhail Vyrtsev
9c89018c22 all that before was wrong >_< >_< 2017-06-29 06:18:40 +03:00
Mikhail Vyrtsev
ce3597bce5 fix assertion when neighbour values are equal 2017-06-29 05:54:48 +03:00
Mikhail Vyrtsev
8d8735cdd0 fix indentation >_< 2017-06-29 05:42:29 +03:00
Mikhail Vyrtsev
52c8541b9e New rule: Sorted 2017-06-29 05:18:02 +03:00