116 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
Atakan Demircioğlu
719593cedc StaticFactory :: lint 2022-07-19 09:01:15 +03:00
Atakan Demircioğlu
54f809298b WinJsonWriter :: missing formatted option added 2022-06-30 01:05:54 +03:00
Atakan Demircioğlu
912d60b437 StaticFactory :: use match instead of if else 2022-06-30 00:59:46 +03:00
Atakan Demircioğlu
b2d6414f81 WorkerPool :: added missing return type & strict comparison 2022-06-30 00:54:32 +03:00
Atakan Demircioğlu
33fe6d7ee6 Removed unused constructor & Datetime 2022-06-30 00:53:41 +03:00
Atakan Demircioğlu
69eb07d3be Builder :: added missing return types 2022-06-30 00:41:24 +03:00
Dominik Liebler
8d6d00d356
Merge pull request #477 from MathiasReker/0-final-public-method-for-abstract-class
Final public method for abstract class
2022-06-17 14:58:53 +02:00
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
MathiasReker
6ec696d00b Final public method for abstract class
All public methods of abstract classes should be final. Enforce API encapsulation in an inheritance architecture. If you want to override a method, use the Template method pattern.
2022-06-16 21:09:49 +02:00
Dominik Liebler
548d20b9c2
#472 add meta keywords to category pages 2021-12-14 13:28:04 +01: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
Piotr Grabski-Gradziński
0bfe9fe9a1
Merge pull request #439 from guilhermesiani/patch-3
refactor: add string return type
2021-07-18 18:27:21 +02:00
Guilherme Siani
56e893da00
refactor: add void return type 2021-07-16 21:02:00 -03:00
Guilherme Siani
1aceddc14a
refactor: add string return type 2021-07-16 21:00:33 -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
6a6b1bbeea
no longer list Singleton and ServiceLocator as anti-pattern, still advise against it in examples 2020-04-17 13:36:04 +02: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
Biplav Subedi
f6c47b1e4d Returned proper object on WinWriterFactory 2019-09-13 12:50:08 +05:45
Dominik Liebler
a836472602
added missing files in READMEs 2019-09-12 21:13:40 +02:00
Dominik Liebler
e3fd6631b5
Abstract factory (#366)
* rewrite of the Abstract Factory pattern

* update composer deps

* fixed argument to json_encode which cannot be null
2019-09-03 18:40:18 +02:00
Dominik Liebler
5fb2980b45
add psalm and travis check 2019-08-31 14:31:01 +02: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
0582f2fb57
remove Interface-Suffix 2019-08-19 17:00:34 +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
a73c253ffc
update to phpunit8 2019-08-17 23:05:15 +02:00
Dominik Liebler
78ffb07d9c
removed old examples 2019-08-17 22:50:15 +02:00
Dominik Liebler
de5c0c929c
explicitely set script_types=1 2019-08-17 21:58:04 +02:00
Dominik Liebler
8dd39599e7
more simple an concise example of AbstractFactory 2019-02-25 21:48:29 +01:00
Wilson_Yang
f9b4da7677
Fixed the line break for Windows
Unit testing cannot pass here when using Windows
2019-02-24 16:13:57 +08:00
Koray
2821ec337d
Make the subject genderless 2018-12-20 11:14:46 +01:00
Marc Verney
643b0539d1 Fix CsvParser skipping all rows when OPTION_CONTAINS_HEADER is true 2018-12-04 09:47:31 +01:00
Dominik Liebler
b0ac02f01e removed ...Interface suffix and added method to interface 2018-11-06 20:18:30 +01:00
Dominik Liebler
5954a570a8 refactored AbstractFactory 2018-06-15 18:47:18 +02:00
Dominik Liebler
bca6af02c0 refactored Factory Method pattern 2018-06-15 18:18:26 +02:00
Kerem Güneş
4bc5a3d7a2 Fix typo (parametrized => parameterized). Didn't touch other translations due to encoding corruption. 2017-12-10 04:38:26 +03:00
Kerem Güneş
bfe62d5f1a The "protected" keyword should be used in order to subclasses to use that property. Otherwise, saying "$this->text = $text" is not making sense for extender objects. 2017-12-09 21:21:37 +03:00
Sara Bine
2f467febbf Improve grammar: these code > this code 2017-04-03 19:14:10 -06:00
Lucas Guima
608178557d Removing unused class
Removing unused class
2017-03-31 15:58:13 -03:00
Dominik Liebler
52cadb4553 added final to Multiton 2017-03-09 19:35:56 +01: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