Skip to content

Commit f57ca58

Browse files
committed
Remove scrutinizer, add License, update README.
1 parent 6f37e83 commit f57ca58

3 files changed

Lines changed: 22 additions & 93 deletions

File tree

.scrutinizer.yml

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

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Pol Dellaiera
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
[![GitHub stars](https://img.shields.io/github/stars/drupol/phpartition.svg?style=flat-square)](https://packagist.org/packages/drupol/phpartition)
33
[![Total Downloads](https://img.shields.io/packagist/dt/drupol/phpartition.svg?style=flat-square)](https://packagist.org/packages/drupol/phpartition)
44
[![Build Status](https://img.shields.io/travis/drupol/phpartition/master.svg?style=flat-square)](https://travis-ci.org/drupol/phpartition)
5-
[![Scrutinizer code quality](https://img.shields.io/scrutinizer/quality/g/drupol/phpartition/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/drupol/phpartition/?branch=master)
65
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/drupol/phpartition/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/drupol/phpartition/?branch=master)
76
[![License](https://img.shields.io/packagist/l/drupol/phpartition.svg?style=flat-square)](https://packagist.org/packages/drupol/phpartition)
87

@@ -21,37 +20,7 @@ In number theory and computer science, the partition problem is the task of deci
2120

2221
include './vendor/autoload.php';
2322

24-
$data = array(1, 5, 5, 11, 6, 7, 9, 3);
25-
26-
$greedy = new \drupol\phpartition\Algorithm\Greedy();
27-
$greedy->setDataset($data);
28-
$result = $greedy->export(3);
29-
30-
// $result is:
31-
/*
32-
* Array
33-
(
34-
[0] => Array
35-
(
36-
[0] => 9
37-
[1] => 5
38-
[2] => 1
39-
)
40-
41-
[1] => Array
42-
(
43-
[0] => 7
44-
[1] => 6
45-
[2] => 3
46-
)
47-
48-
[2] => Array
49-
(
50-
[0] => 11
51-
[1] => 5
52-
)
53-
)
54-
*/
23+
5524
```
5625

5726
## TODO

0 commit comments

Comments
 (0)