mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-04 10:46:21 +07:00
Update urls to HTTPS
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
@@ -10,7 +10,7 @@ This makes the code easier to test and thus easier to maintain.
|
||||
|
||||
If you are unfamiliar with this pattern, watch the following video:
|
||||
|
||||
* `Google Clean Code Talks <http://www.youtube.com/watch?v=RlfLCWKxHJ0>`_
|
||||
* `Google Clean Code Talks <https://www.youtube.com/watch?v=RlfLCWKxHJ0>`_
|
||||
|
||||
.. _dependency-injection:
|
||||
|
||||
@@ -380,12 +380,12 @@ In general all of the app's controllers need to be registered inside the contain
|
||||
|
||||
* It does I/O (database, write/read to files)
|
||||
* It is a global (e.g. $_POST, etc. This is in the request class by the way)
|
||||
* The output does not depend on the input variables (also called `impure function <http://en.wikipedia.org/wiki/Pure_function>`_), e.g. time, random number generator
|
||||
* The output does not depend on the input variables (also called `impure function <https://en.wikipedia.org/wiki/Pure_function>`_), e.g. time, random number generator
|
||||
* It is a service, basically it would make sense to swap it out for a different object
|
||||
|
||||
What not to inject:
|
||||
|
||||
* It is pure data and has methods that only act upon it (arrays, data objects)
|
||||
* It is a `pure function <http://en.wikipedia.org/wiki/Pure_function>`_
|
||||
* It is a `pure function <https://en.wikipedia.org/wiki/Pure_function>`_
|
||||
|
||||
.. _`reflection`: https://www.php.net/manual/en/book.reflection.php
|
||||
|
||||
@@ -4,7 +4,7 @@ Testing
|
||||
|
||||
.. sectionauthor:: Bernhard Posselt <dev@bernhard-posselt.com>
|
||||
|
||||
All PHP classes can be tested with `PHPUnit <http://phpunit.de/>`_, JavaScript can be tested by using `Karma <http://karma-runner.github.io>`_.
|
||||
All PHP classes can be tested with `PHPUnit <https://phpunit.de/>`_, JavaScript can be tested by using `Karma <http://karma-runner.github.io>`_.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user