Skip to content

Commit ad4b570

Browse files
committedJan 15, 2023
Update links in pages to https
1 parent aba68e9 commit ad4b570

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed
 

‎pages/Design-Patterns.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ make your code easier to manage and easier for others to understand.
1111

1212
* [Architectural pattern on Wikipedia](https://en.wikipedia.org/wiki/Architectural_pattern)
1313
* [Software design pattern on Wikipedia](https://en.wikipedia.org/wiki/Software_design_pattern)
14-
* [Collection of implementation examples](http://designpatternsphp.readthedocs.io/en/latest/)
14+
* [Collection of implementation examples](https://designpatternsphp.readthedocs.io/en/latest/)
1515

1616
## Factory
1717

@@ -70,17 +70,17 @@ one instance of a particular class. The singleton pattern enables us to do this.
7070

7171
**TODO: NEED NEW SINGLETON CODE EXAMPLE**
7272

73-
The code above implements the singleton pattern using a [*static* variable](http://php.net/language.variables.scope#language.variables.scope.static) and the static creation method `getInstance()`.
73+
The code above implements the singleton pattern using a [*static* variable](https://www.php.net/language.variables.scope#language.variables.scope.static) and the static creation method `getInstance()`.
7474
Note the following:
7575

76-
* The constructor [`__construct()`](http://php.net/language.oop5.decon#object.construct) is declared as protected to
76+
* The constructor [`__construct()`](https://www.php.net/language.oop5.decon#object.construct) is declared as protected to
7777
prevent creating a new instance outside of the class via the `new` operator.
78-
* The magic method [`__clone()`](http://php.net/language.oop5.cloning#object.clone) is declared as private to prevent
79-
cloning of an instance of the class via the [`clone`](http://php.net/language.oop5.cloning) operator.
80-
* The magic method [`__wakeup()`](http://php.net/language.oop5.magic#object.wakeup) is declared as private to prevent
81-
unserializing of an instance of the class via the global function [`unserialize()`](http://php.net/function.unserialize)
78+
* The magic method [`__clone()`](https://www.php.net/language.oop5.cloning#object.clone) is declared as private to prevent
79+
cloning of an instance of the class via the [`clone`](https://www.php.net/language.oop5.cloning) operator.
80+
* The magic method [`__wakeup()`](https://www.php.net/language.oop5.magic#object.wakeup) is declared as private to prevent
81+
unserializing of an instance of the class via the global function [`unserialize()`](https://www.php.net/function.unserialize)
8282
.
83-
* A new instance is created via [late static binding](http://php.net/language.oop5.late-static-bindings) in the static
83+
* A new instance is created via [late static binding](https://www.php.net/language.oop5.late-static-bindings) in the static
8484
creation method `getInstance()` with the keyword `static`. This allows the subclassing of the class `Singleton` in the
8585
example.
8686

@@ -142,7 +142,7 @@ add new output types without affecting the client code.
142142
143143
You will see how each concrete 'output' class implements an OutputInterface - this serves two purposes, primarily it
144144
provides a simple contract which must be obeyed by any new concrete implementations. Secondly by implementing a common
145-
interface you will see in the next section that you can now utilise [Type Hinting](http://php.net/language.oop5.typehinting) to ensure that the client which is utilising these behaviours is of the correct type,
145+
interface you will see in the next section that you can now utilise [Type Hinting](https://www.php.net/language.oop5.typehinting) to ensure that the client which is utilising these behaviours is of the correct type,
146146
in this case 'OutputInterface'.
147147
148148
The next snippet of code outlines how a calling client class might use one of these algorithms and even better set the
@@ -184,7 +184,7 @@ $data = $client->loadOutput();
184184

185185
{% endhighlight %}
186186

187-
* [Strategy pattern on Wikipedia](http://en.wikipedia.org/wiki/Strategy_pattern)
187+
* [Strategy pattern on Wikipedia](https://en.wikipedia.org/wiki/Strategy_pattern)
188188

189189
## Front Controller
190190

‎pages/Functional-Programming.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ defined to capture variables in scope and access them later when the anonymous f
8484
* [Read about dynamically invoking functions with `call_user_func_array()`][call-user-func-array]
8585

8686

87-
[anonymous-functions]: http://php.net/functions.anonymous
87+
[anonymous-functions]: https://www.php.net/functions.anonymous
8888
[closures-rfc]: https://wiki.php.net/rfc/closures
89-
[call-user-func-array]: http://php.net/function.call-user-func-array
89+
[call-user-func-array]: https://www.php.net/function.call-user-func-array

0 commit comments

Comments
 (0)
Please sign in to comment.