Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe1567f

Browse files
committed
Merge pull request #1 from domnikl/master
Update from original
2 parents d24be57 + 34c12b1 commit fe1567f

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

Behavioral/ChainOfResponsibilities/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Purpose:
44

5-
To build a chain of objects to handle a call. If one object cannot handle a call, it delegates the call to the next in the chain and so forth.
5+
To build a chain of objects to handle a call in sequential order. If one object cannot handle a call, it delegates the call to the next in the chain and so forth.
66

77
## Examples:
88

Behavioral/Observer/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function detach(\SplObserver $observer)
5959
*/
6060
public function notify()
6161
{
62-
/** @var SplObserver $observer */
62+
/** @var \SplObserver $observer */
6363
foreach ($this->observers as $observer) {
6464
$observer->update($this);
6565
}

Creational/Pool/Processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function process($image)
2020
if ($this->processing++ < $this->maxProcesses) {
2121
$this->createWorker($image);
2222
} else {
23-
$this->pushToWaitingQueue($worker);
23+
$this->pushToWaitingQueue($image);
2424
}
2525
}
2626

Creational/Prototype/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## Purpose
44

5-
To avoid the cost of creating objects the standard way (new Foo()) and instead create a prototype and clone it
5+
To avoid the cost of creating objects the standard way (new Foo()) and instead create a prototype and clone it.
66

77
## Examples
88

9-
* Large amounts of data (e.g. create 1,000,000 rows in a database at once via a ORM)
9+
* Large amounts of data (e.g. create 1,000,000 rows in a database at once via a ORM).

Creational/SimpleFactory/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ ConcreteFactory is a simple factory pattern.
66

77
It differs from the static factory because it is NOT static and as you know: static => global => evil!
88

9-
Therefore, you can haZ multiple factories, differently parametrized, you can subclass it and you can mock-up it.
9+
Therefore, you can have multiple factories, differently parametrized, you can subclass it and you can mock-up it.

More/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# More
22

33
* [Delegation](Delegation) [:notebook:](http://en.wikipedia.org/wiki/Delegation_pattern)
4-
* [ServiceLocator](ServiceLocator) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern)
4+
* [ServiceLocator](ServiceLocator) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern)
5+
* [Repository](Repository)

0 commit comments

Comments
 (0)