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
Dominik Liebler
bd3c2cfc66
updated UML for FactoryMethod
2016-12-27 08:08:10 +01:00
Dominik Liebler
35f5e851c8
updated UML for Pool
2016-12-27 08:06:54 +01:00
Nikita Strelkov
b182503514
Remove single file for SimpleFactory usage example
...
And move code to code-block
2016-10-04 13:13:34 +05:00
Nikita Strelkov
e15b873463
Fix indents for correct code highlighting
2016-10-03 06:27:34 +05:00
Nikita Strelkov
f0938efeab
Fix namespaces mistakes
2016-10-03 06:27:16 +05:00
Nikita Strelkov
f862fba24e
Move usage code exaple to single file and correctly include it
...
This make code more structured and fix code highlighting problem
2016-10-03 06:25:33 +05:00
Dominik Liebler
2da074e4a0
Merge pull request #239 from chey/patch-1
...
Update DirectorTest.php
2016-10-01 14:57:48 +02:00
Chey
3c288e10cf
Update DirectorTest.php
2016-09-30 13:36:51 -04:00
Konstantin Myakshin
7e2991eee5
Fix creation
2016-09-30 16:17:33 +03:00
Axel Pardemann
fc561c0d18
Merged branch master into translate-template
2016-09-23 11:44:18 -05:00
Dominik Liebler
79f25f8442
#226 fixed Builder
2016-09-23 11:29:28 +02:00