mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
fixed error
This commit is contained in:
parent
2af757e0c2
commit
e92347d2de
@ -33,7 +33,8 @@ This class prints out all prenames of a person and is called by using:
|
||||
.. code-block:: php
|
||||
|
||||
<?php
|
||||
PersonController::listNames();
|
||||
$controller = new PersonController();
|
||||
$controller->listNames();
|
||||
|
||||
|
||||
This looks like clean code until the first tests are written. **Tests are absolutely necessary in every application! Do not think that your app is too small to require them.** The code will eventuell grow bigger and will have to be refactored.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user