mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-01-17 05:28:16 +01:00
added missing files in READMEs
This commit is contained in:
parent
e41d4321d1
commit
a836472602
@ -44,12 +44,24 @@ Command.php
|
|||||||
:language: php
|
:language: php
|
||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
|
UndoableCommand.php
|
||||||
|
|
||||||
|
.. literalinclude:: UndoableCommand.php
|
||||||
|
:language: php
|
||||||
|
:linenos:
|
||||||
|
|
||||||
HelloCommand.php
|
HelloCommand.php
|
||||||
|
|
||||||
.. literalinclude:: HelloCommand.php
|
.. literalinclude:: HelloCommand.php
|
||||||
:language: php
|
:language: php
|
||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
|
AddMessageDateCommand.php
|
||||||
|
|
||||||
|
.. literalinclude:: AddMessageDateCommand.php
|
||||||
|
:language: php
|
||||||
|
:linenos:
|
||||||
|
|
||||||
Receiver.php
|
Receiver.php
|
||||||
|
|
||||||
.. literalinclude:: Receiver.php
|
.. literalinclude:: Receiver.php
|
||||||
@ -71,5 +83,11 @@ Tests/CommandTest.php
|
|||||||
:language: php
|
:language: php
|
||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
|
Tests/UndoableCommandTest.php
|
||||||
|
|
||||||
|
.. literalinclude:: Tests/UndoableCommandTest.php
|
||||||
|
:language: php
|
||||||
|
:linenos:
|
||||||
|
|
||||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Command
|
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/Command
|
||||||
.. __: http://en.wikipedia.org/wiki/Command_pattern
|
.. __: http://en.wikipedia.org/wiki/Command_pattern
|
||||||
|
@ -37,4 +37,10 @@ Multiton.php
|
|||||||
Test
|
Test
|
||||||
----
|
----
|
||||||
|
|
||||||
|
MultitonTest.php
|
||||||
|
|
||||||
|
.. literalinclude:: Tests/MultitonTest.php
|
||||||
|
:language: php
|
||||||
|
:linenos:
|
||||||
|
|
||||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Multiton
|
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Multiton
|
||||||
|
@ -33,6 +33,12 @@ Code
|
|||||||
|
|
||||||
You can also find this code on `GitHub`_
|
You can also find this code on `GitHub`_
|
||||||
|
|
||||||
|
Service.php
|
||||||
|
|
||||||
|
.. literalinclude:: Service.php
|
||||||
|
:language: php
|
||||||
|
:linenos:
|
||||||
|
|
||||||
ServiceLocator.php
|
ServiceLocator.php
|
||||||
|
|
||||||
.. literalinclude:: ServiceLocator.php
|
.. literalinclude:: ServiceLocator.php
|
||||||
|
@ -46,5 +46,11 @@ BankAccountProxy.php
|
|||||||
Test
|
Test
|
||||||
----
|
----
|
||||||
|
|
||||||
|
ProxyTest.php
|
||||||
|
|
||||||
|
.. literalinclude:: Tests/ProxyTest.php
|
||||||
|
:language: php
|
||||||
|
:linenos:
|
||||||
|
|
||||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Proxy
|
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Structural/Proxy
|
||||||
.. __: http://en.wikipedia.org/wiki/Proxy_pattern
|
.. __: http://en.wikipedia.org/wiki/Proxy_pattern
|
||||||
|
@ -27,6 +27,12 @@ Registry.php
|
|||||||
:language: php
|
:language: php
|
||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
|
Service.php
|
||||||
|
|
||||||
|
.. literalinclude:: Service.php
|
||||||
|
:language: php
|
||||||
|
:linenos:
|
||||||
|
|
||||||
Test
|
Test
|
||||||
----
|
----
|
||||||
|
|
||||||
|
@ -55,11 +55,16 @@ function getFilesFromReadmes() {
|
|||||||
$phpFiles = getFiles('/^.+\.php$/');
|
$phpFiles = getFiles('/^.+\.php$/');
|
||||||
$filesFromReadme = getFilesFromReadmes();
|
$filesFromReadme = getFilesFromReadmes();
|
||||||
$diff = array_diff($phpFiles, $filesFromReadme);
|
$diff = array_diff($phpFiles, $filesFromReadme);
|
||||||
|
$diff2 = array_diff($filesFromReadme, $phpFiles);
|
||||||
|
|
||||||
foreach ($diff as $file) {
|
foreach ($diff as $file) {
|
||||||
echo $file . PHP_EOL;
|
echo $file . PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($diff) != 0) {
|
foreach ($diff2 as $file) {
|
||||||
|
echo $file . PHP_EOL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (count($diff) != 0 || count($diff2) != 0) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user