Skip to content

Commit b2725ab

Browse files
committed
Fix up authors, license, vendor name, gitattributes
1 parent cbe5892 commit b2725ab

File tree

5 files changed

+22
-47
lines changed

5 files changed

+22
-47
lines changed

.gitattributes

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
/spec export-ignore
2-
.coveralls.yml export-ignore
32
.editorconfig export-ignore
43
.gitattributes export-ignore
54
.gitignore export-ignore
6-
.travis.yml export-ignore
7-
.php_cs export-ignore
8-
phpspec.yml.dist export-ignore
5+
.php-cs-fixer.php export-ignore
6+
phpspec.yml export-ignore
7+
rector.php export-ignore
8+
phpstan.neon export-ignore
9+
phpstan-baseline.neon export-ignore

.travis.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
The MIT License (MIT)
22

33
Copyright (c) 2015 Rik Bruil
4+
Copyright (c) 2024 Nicholas Ruunu
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal
@@ -19,4 +20,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1920
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2021
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2122
SOFTWARE.
22-

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
# Doctrine Specification
2-
[![Build Status](https://travis-ci.org/rikbruil/Doctrine-Specification.svg)](https://travis-ci.org/rikbruil/Doctrine-Specification)
3-
[![Coverage Status](https://coveralls.io/repos/rikbruil/Doctrine-Specification/badge.svg?branch=master)](https://coveralls.io/r/rikbruil/Doctrine-Specification?branch=master)
4-
[![Latest Stable Version](https://poser.pugx.org/rikbruil/doctrine-specification/v/stable.svg)](https://packagist.org/packages/rikbruil/doctrine-specification)
5-
[![License](https://poser.pugx.org/rikbruil/doctrine-specification/license.svg)](https://packagist.org/packages/rikbruil/doctrine-specification)
6-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rikbruil/Doctrine-Specification/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/rikbruil/Doctrine-Specification/?branch=master)
7-
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/bb221821-1ba6-4613-b39f-f43718aaa92d/mini.png)](https://insight.sensiolabs.com/projects/bb221821-1ba6-4613-b39f-f43718aaa92d)
82

9-
Doctrine [Specification pattern][specification_pattern] for building queries dynamically and with re-usable classes for composition.
3+
Doctrine [Specification pattern][specification_pattern] for building queries dynamically and with re-usable classes for
4+
composition.
105

11-
This library started out as an adaptation of Benjamin Eberlei's [blog post][blog_post]. I was also inspired by the [Happyr Doctrine-Specification][happyr_spec] code, however this library has some small differences.
12-
The main one is that SpecificationRepository->match() does not return the results directly, but returns the query object.
6+
This library started out as an adaptation of Benjamin Eberlei's [blog post][blog_post]. I was also inspired by
7+
the [Happyr Doctrine-Specification][happyr_spec] code, however this library has some small differences.
8+
The main one is that SpecificationRepository->match() does not return the results directly, but returns the query
9+
object.
1310

1411
Since I like Doctrine's Paginator object, I wanted to be able to use that in combination with the Specification pattern.
1512

16-
__Note:__ In versions prior to 1.2 it was required to extend the SpecificationRepository class. This is no longer needed since we provide a SpecificationRepositoryTrait that you can use instead.
17-
The class is still provided for backwards compatibility reasons. There is also the SpecificationAwareInterface that you can use if you need it.
13+
__Note:__ In versions prior to 1.2 it was required to extend the SpecificationRepository class. This is no longer needed
14+
since we provide a SpecificationRepositoryTrait that you can use instead.
15+
The class is still provided for backwards compatibility reasons. There is also the SpecificationAwareInterface that you
16+
can use if you need it.
1817

1918
## Usage
2019

21-
Install the latest version with `composer require rikbruil/doctrine-specification`
20+
Install the latest version with `composer require purist/doctrine-specification`
2221

2322
```php
2423
// Not using the lib
@@ -67,6 +66,7 @@ return $this->em->getRepository('Advertisement')->match($spec)->execute();
6766
```
6867

6968
## Composition
69+
7070
A bonus of this pattern is composition, which makes specifications very reusable:
7171

7272
```php
@@ -168,5 +168,7 @@ This library is heavily inspired by Benjamin Eberlei's [blog post][blog_post]
168168
and [Happyr's Doctrine-Specification library][happyr_spec].
169169

170170
[specification_pattern]: http://en.wikipedia.org/wiki/Specification_pattern
171+
171172
[happyr_spec]: https://github.com/Happyr/Doctrine-Specification
173+
172174
[blog_post]: http://www.whitewashing.de/2013/03/04/doctrine_repositories.html

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"license": "MIT",
77
"authors": [
88
{
9-
"name": "Rik Bruil",
10-
"email": "rik.bruil@gmail.com"
9+
"name": "Nicholas Ruunu",
10+
"email": "nicholas@ruu.nu"
1111
}
1212
],
1313
"minimum-stability": "stable",

0 commit comments

Comments
 (0)