Skip to content

Commit d1f6d74

Browse files
committed
fix composer.json license and autoload
1 parent 7d0003a commit d1f6d74

9 files changed

Lines changed: 5 additions & 6 deletions

File tree

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "webd/language",
33
"description": "A library for language processing. Includes string distance function (Levenshtein, Jaro-Winkler,...), stemming, etc.",
4+
"license": "MIT",
45
"autoload": {
5-
"psr-0": {"": "src/"}
6+
"psr-4": {
7+
"webd\\language\\": "src/"
8+
}
69
},
710
"require-dev": {
811
"squizlabs/php_codesniffer": "^4.0",
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ private static function cvc($str)
355355
$c = self::$regex_consonant;
356356
$v = self::$regex_vowel;
357357

358-
return preg_match("#($c$v$c)$#", $str, $matches) && (strlen($matches[1]) == 3) &&
358+
return preg_match("#($c$v$c)$#", $str, $matches) && (strlen($matches[1]) == 3) &&
359359
($matches[1][2] != 'w') && ($matches[1][2] != 'x') && ($matches[1][2] != 'y');
360360
}
361361
}

tests/src/webd/language/LCSTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use PHPUnit\Framework\TestCase;
66

7-
87
class LCSTest extends TestCase
98
{
109

tests/src/webd/language/PorterStemmerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use PHPUnit\Framework\TestCase;
66

7-
87
class PorterStemmerTest extends TestCase
98
{
109

tests/src/webd/language/SpamSumTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use PHPUnit\Framework\TestCase;
66

7-
87
class SpamSumTest extends TestCase
98
{
109

tests/src/webd/language/StringDistanceTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use PHPUnit\Framework\TestCase;
66

7-
87
class StringDistanceTest extends TestCase
98
{
109

0 commit comments

Comments
 (0)