mirror of
https://github.com/jupeter/clean-code-php.git
synced 2025-09-25 21:49:04 +02:00
use var_dump instead of var_export
This commit is contained in:
@@ -549,8 +549,8 @@ function splitIntoFirstAndLastName($name) {
|
||||
$name = 'Ryan McDermott';
|
||||
$newName = splitIntoFirstAndLastName($name);
|
||||
|
||||
var_export($name); // 'Ryan McDermott';
|
||||
var_export($newName); // ['Ryan', 'McDermott'];
|
||||
var_dump($name); // 'Ryan McDermott';
|
||||
var_dump($newName); // ['Ryan', 'McDermott'];
|
||||
```
|
||||
**[⬆ back to top](#table-of-contents)**
|
||||
|
||||
@@ -1386,7 +1386,7 @@ class Car {
|
||||
}
|
||||
|
||||
public function dump() {
|
||||
var_export($this->make, $this->model, $this->color);
|
||||
var_dump($this->make, $this->model, $this->color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1430,7 +1430,7 @@ class Car {
|
||||
}
|
||||
|
||||
public function dump() {
|
||||
var_export($this->make, $this->model, $this->color);
|
||||
var_dump($this->make, $this->model, $this->color);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user