mirror of
https://github.com/jupeter/clean-code-php.git
synced 2025-09-25 21:49:04 +02:00
Update README.md
Corrected a few words.
This commit is contained in:
10
README.md
10
README.md
@@ -1308,7 +1308,7 @@ class Worker implements WorkerInterface {
|
|||||||
// ....working
|
// ....working
|
||||||
}
|
}
|
||||||
public function eat() {
|
public function eat() {
|
||||||
// ...... eating in launch break
|
// ...... eating in lunch break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1318,7 +1318,7 @@ class SuperWorker implements WorkerInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function eat() {
|
public function eat() {
|
||||||
//.... eating in launch break
|
//.... eating in lunch break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1355,7 +1355,7 @@ class Worker implements WorkableInterface, FeedableInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function eat() {
|
public function eat() {
|
||||||
//.... eating in launch break
|
//.... eating in lunch break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1371,7 +1371,7 @@ class SuperWorker implements WorkerInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function eat() {
|
public function eat() {
|
||||||
//.... eating in launch break
|
//.... eating in lunch break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1467,7 +1467,7 @@ class Manager {
|
|||||||
**[⬆ back to top](#table-of-contents)**
|
**[⬆ back to top](#table-of-contents)**
|
||||||
|
|
||||||
### Use method chaining
|
### Use method chaining
|
||||||
This pattern is very useful and commonly used it many libraries such
|
This pattern is very useful and commonly used in many libraries such
|
||||||
as PHPUnit and Doctrine. It allows your code to be expressive, and less verbose.
|
as PHPUnit and Doctrine. It allows your code to be expressive, and less verbose.
|
||||||
For that reason, I say, use method chaining and take a look at how clean your code
|
For that reason, I say, use method chaining and take a look at how clean your code
|
||||||
will be. In your class functions, simply return `this` at the end of every function,
|
will be. In your class functions, simply return `this` at the end of every function,
|
||||||
|
Reference in New Issue
Block a user