Skip to content

Commit

Permalink
Merge pull request #37 from ergebnis/feature/markdown
Browse files Browse the repository at this point in the history
Enhancement: Use Markdown for license
  • Loading branch information
localheinz authored Jan 19, 2020
2 parents 4bf75da + 67d56e4 commit 17b867c
Show file tree
Hide file tree
Showing 34 changed files with 53 additions and 37 deletions.
6 changes: 3 additions & 3 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare(strict_types=1);
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand All @@ -22,8 +22,8 @@ $range = License\Range::since(
$holder = License\Holder::fromString('Andreas Möller');

$file = License\File::create(
__DIR__ . '/LICENSE',
License\Template::fromFile(__DIR__ . '/resource/license/MIT.txt'),
__DIR__ . '/LICENSE.md',
License\Template::fromFile(__DIR__ . '/resource/license/MIT.md'),
$range,
$holder
);
Expand Down
6 changes: 3 additions & 3 deletions LICENSE → LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
The MIT License (MIT)
# The MIT License (MIT)

Copyright (c) 2020 Andreas Möller

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
documentation files (the _Software_), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
THE SOFTWARE IS PROVIDED **AS IS**, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ Please have a look at [`CODE_OF_CONDUCT.md`](https://github.com/ergebnis/.github

## License

This package is licensed using the MIT License.
This package is licensed using the [MIT License](LICENSE.md).
16 changes: 16 additions & 0 deletions resource/license/MIT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# The MIT License (MIT)

Copyright (c) <range> <holder>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the _Software_), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED **AS IS**, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion src/Exception/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidHolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidReplacements.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidYear.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Holder.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Period.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Range.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Year.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/AutoReview/SrcCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/Exception/InvalidFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/Exception/InvalidHolderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/Exception/InvalidRangeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/Exception/InvalidReplacementsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/Exception/InvalidUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/Exception/InvalidYearTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/HeaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/HolderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RangeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/TemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/UrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/YearTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Util/DataProvider/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2020 Andreas Möller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/ergebnis/license
*/
Expand Down

0 comments on commit 17b867c

Please sign in to comment.