35 Commits

Author SHA1 Message Date
Peter Kokot
ad4b5705ae Update links in pages to https 2023-01-15 19:29:46 +01:00
Xymph
98942ccc3b Split run-on sentence into 2 sentences 2022-08-23 22:35:45 +02:00
Xymph
8c0b237667 Use plural grammar/spelling where intended 2022-08-23 22:35:34 +02:00
Xymph
6e0076e2c2 Add missing punctuation 2022-08-23 22:15:28 +02:00
tacodes
74caf083ba Add/remove commas for readability 2021-04-30 13:44:00 -06:00
Josh Lockhart
efbcbf5de2 Remove singleton code sample, update gemfile 2016-11-19 17:29:12 -05:00
Eric Poe
ccdbf97a4a Link to easy-to-read Read The Docs version rather than github repo
The Read The Docs version is a nicely formatted version of the github
version. It pulls directly from github, so it is just as up-to-date,
but has nicer formatting.
2016-10-05 23:00:15 -05:00
Phil Sturgeon
85ce98134f Merge pull request #504 from bocharsky-bw/patch-2
Use static property instead of static variable
2015-06-12 11:41:28 -04:00
Ryan Nickel
c31603c7e5 typo fixed 2015-02-01 14:28:32 -05:00
Phil Sturgeon
78674b1d5b Merge pull request #500 from peterkokot/patch-sitemap
jekyll-sitemap gem added
2015-01-02 11:41:18 -05:00
Josh Lockhart
c460b9091a Make test change to check build errors 2014-12-30 09:47:59 -05:00
Bocharsky Victor
17432d88cb Use @var instead of obsolete @static tag 2014-12-19 11:36:14 +02:00
Bocharsky Victor
0f6709c751 Use static property instead of static variable
I think better to use OOP static property for Singleton class like in other resources, isn't it?
- (domnikl/DesignPatternsPHP Singleton)[https://github.com/domnikl/DesignPatternsPHP/blob/master/Creational/Singleton/Singleton.php#L13]
- (Singleton Wiki)[https://uk.wikipedia.org/wiki/%D0%9E%D0%B4%D0%B8%D0%BD%D0%B0%D0%BA_(%D1%88%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD_%D0%BF%D1%80%D0%BE%D0%B5%D0%BA%D1%82%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F)#.D0.A0.D0.B5.D0.B0.D0.BB.D1.96.D0.B7.D0.B0.D1.86.D1.96.D1.8F_.D0.BD.D0.B0_PHP5]
2014-12-19 11:09:40 +02:00
Peter Kokot
d1851cc82b jekyll-sitemap gem added 2014-12-09 06:18:31 +01:00
jrfnl
185120cf6f Minor style fixes
- use `()` when referencing functions
2014-12-08 22:05:28 +01:00
jrfnl
3f66f074d5 Wrap bullet list 2014-12-08 22:03:56 +01:00
jrfnl
82ee7ad76a Fix line wrapping consistency - round 1
Comply with the 'wrap at 120 chars' style rule stated in the contributing.md document
2014-12-08 22:03:47 +01:00
jrfnl
7d19feaf98 Fix highlighter consistency
- in some places php would not be highlighted as the `<?php` tag was missing
- in one place there was a duplicate `<?php` tage
- replaced `bash` with `console` for better highlighting
- ensured all console snippets are wrapped within highlighting code
- wrapped ini examples in highlighting code
2014-12-08 19:32:03 +01:00
jrfnl
1852c53aa5 Use language independent permalinks for php.net urls
@see http://php.net/urlhowto.php
2014-12-08 17:48:38 +01:00
Phil Sturgeon
e6436bf9a1 Merge pull request #384 from Mihailoff/patch-1
Link to collection of pattern implementations
2014-10-19 15:43:19 -05:00
Dave Hulbert
3e660e37ed Tweak example code for PSR-1/PSR-2 coding standard 2014-08-08 12:14:24 +01:00
George Mihailov
145e5eef74 Link to collection of pattern implementations
See https://github.com/domnikl/DesignPatternsPHP
2014-03-26 10:44:47 +02:00
Justin Page
f8e785be16 Fixed grammar error to indicate possession of sentence. 2014-03-05 18:09:03 -08:00
Ryan Koven
36135d613e Remove an extraneous 'to'; rectify an instance of an incorrect verb tense; small adjust to punctuation.
Original text noted that it's "usually a good idea to follow to common patterns". Removed extra 'to'. 

In MVC section the sentence "The model-view-controller (MVC) pattern... let..." should be changed to "The model-view-controller (MVC) pattern...lets..."

Also added a semicolon to a sentence in the Factory section that Strunk and White would agree enhances the clarity of the sentence.
2014-02-01 09:47:02 -05:00
Matt Kirwan
8991c3f013 Made the following changes: Removed class, standardised property names to camel case and switched method names. 2013-08-05 16:23:28 +01:00
Matt Kirwan
eda4616331 Added the strategy pattern to the Design Patterns page 2013-07-25 23:04:40 +01:00
Simon R Jones
4d2fcc80e7 Adding () after static keyword to make it clearer this is instantiating a new object 2013-05-31 15:43:46 +01:00
Simon R Jones
dc059e9858 Removing back-slash from global functions for consistency with print_r() in factory example and since it's unecessary 2013-05-31 15:42:16 +01:00
Florian Wolters
78b8adc015 Enhanced the example for the Singleton design pattern.
- Moved static variable into the static creation method getInstance.
- Replaced "new self();" with "new static" (late static binding to allow
subclassing).
- Changed visibility of __construct to protected.
- Added the two private methods __clone and __wakeup.
- Added DocBlock comments.
- Updated description and enhanced with links to the PHP manual.
2013-03-13 16:21:22 +01:00
Florian Wolters
7d91e9cd07 Removed trailing whitespaces. 2013-03-13 15:52:19 +01:00
David Joos
ba77b5918f Fixed typo: it > is 2013-02-11 09:55:29 +00:00
Corey McMahon
8d5ab66099 Added a sentence defining the benefit or using DI over the singleton pattern 2013-01-14 15:28:25 +11:00
Corey McMahon
7850ebd5e4 Added singleton pattern to the Design-Patterns page 2013-01-09 17:59:24 +11:00
Sydney Arikan
003071c6b7 changed the grammar used to define Factory pattern 2012-07-27 14:05:24 +03:00
Steven Benner
2cb5960c43 Added Design Patterns page. 2012-07-20 11:38:00 -07:00