38 Commits

Author SHA1 Message Date
borislavsabev
b8aa050a73 Init RTD v2 config 2023-09-27 10:21:07 +03:00
Sepehr
4af130b13f Update README.rst
add some examples
2023-05-11 15:30:37 +03:30
MathiasReker
40a46455bd Self static accessor
Inside a final class or anonymous class self should be preferred to static.
2022-06-16 21:10:57 +02:00
Mario Simão
56970cc221 style: Adopt PSR12
Dev dependency flyeralarm/php-code-validator has been removed.

Closes #444
2021-10-01 10:26:04 -03:00
Ali Nazari
8d87391aa1 re-add __clone
I re-added the `__clone` method which removed in the last commit.
2021-04-30 01:22:29 +04:30
Dominik Liebler
4678b5d86f PHP8 2021-04-12 14:04:45 +02:00
Roman Martinuk
74c96851d1 singleton fix visible __wakeup()
1) DesignPatterns\Creational\Singleton\Tests\SingletonTest::testUniqueness
The magic method DesignPatterns\Creational\Singleton\Singleton::__wakeup() must have public visibility

/app/Creational/Singleton/Singleton.php:39
/app/Creational/Singleton/Tests/SingletonTest.php:12

ERRORS!
2021-03-14 20:58:23 +03:00
Ana Carolina Lima Hamud
998da795dd Fix links to the main branch 2020-06-20 11:27:02 -03:00
Dominik Liebler
62e6f5dbc8 remove Multiton 2019-12-14 13:55:04 +01:00
Dominik Liebler
579a5ac946 update deps & install rector 2019-12-14 13:41:03 +01:00
Dominik Liebler
b3f144c4b2 removed Yoda condition 2019-08-25 20:34:48 +02:00
Dominik Liebler
e02bcea33f put declare() in the same line as the php tag 2019-08-19 18:11:49 +02:00
Dominik Liebler
26b1f209e2 remove UML files as only PNGs are used 2019-08-19 16:55:54 +02:00
Dominik Liebler
db3032cd48 removed not used uml.svg 2019-08-19 16:48:14 +02:00
Dominik Liebler
de5c0c929c explicitely set script_types=1 2019-08-17 21:58:04 +02:00
Sara Bine
2f467febbf Improve grammar: these code > this code 2017-04-03 19:14:10 -06:00
Fabri Di Napoli
894dbc033b Merge branch 'master' into feature/class-instead-of-namespace 2017-03-09 10:35:23 +01:00
Fabri Di Napoli
5df6eec070 Adapt Unit Tests code to PHPUnit 6 2017-03-09 00:35:08 +01:00
Fabri Di Napoli
10ee886fe1 Use class constant instead of hardcoded namespace 2017-03-09 00:14:31 +01:00
Dominik Liebler
6a98bcb73b PHP7 Singleton und Multiton 2016-09-22 13:15:24 +02:00
Dominik Liebler
4cf817b143 PHP7 Singleton 2016-09-22 13:07:59 +02:00
Dominik Liebler
fe1f144ec3 Applied fixes from StyleCI 2015-12-21 07:28:20 -05:00
Marius Bogdan
df060dab97 Fixed wrong implementation of Singleton Pattern 2015-12-12 22:44:19 +01:00
Faust
fa36638e88 use Anonymous Hyperlinks for wikipedia link 2015-05-29 12:11:16 +02:00
Dominik Liebler
8eed6f9c21 Merge pull request #130 from nueckman/codestyle-1
codestyle - remove trailing whitespaces
2015-04-09 21:40:48 +02:00
Faust
23abee8078 sort php files Creational 2015-04-07 22:00:12 +02:00
Faust
ff327e3a0c Change index.rst to README.rst
remove all pattern's README.md
2015-04-05 06:05:24 +02:00
Faust
818c221c78 fix wikipedia links for pdf version 2015-04-05 03:29:00 +02:00
Faust
c609ef5952 add wikipedia link 2015-04-03 10:57:00 +02:00
Faust
bba8b0df43 execute read-the-docs.sh 2015-04-02 00:03:33 +02:00
Nils Rückmann
2bc3d20e5e codestyle - remove trailing whitespaces 2015-03-27 12:19:20 +01:00
John Webb
1dabe3c6ed Added Behavioral pattern UMLs 2014-07-31 14:47:55 -05:00
John Webb
658d601507 Added Creational pattern UMLs 2014-07-31 14:34:10 -05:00
John Webb
de431c5126 Added More pattern UMLs 2014-07-31 14:13:53 -05:00
Antonio Spinelli
0c774a89e4 create a Test folder for each pattern 2014-05-05 12:02:29 -03:00
Antonio Spinelli
7bf6593e3f it was created the Creational namespace and append its patterns 2014-04-15 22:59:59 -03:00
Antonio Spinelli
2f7837927f merged from master 2014-04-15 22:07:48 -03:00
Antonio Spinelli
e59d70a0ac start a restructure 2014-03-21 18:03:45 -03:00