Vendor updates

This commit is contained in:
2018-10-17 22:28:29 -04:00
parent 98ea166a22
commit c34d4eafd9
42 changed files with 1759 additions and 213 deletions

View File

@ -9,6 +9,7 @@ Master: [![Build Status](https://travis-ci.org/MarkBaker/PHPComplex.png?branch=m
Develop: [![Build Status](https://travis-ci.org/MarkBaker/PHPComplex.png?branch=develop)](http://travis-ci.org/MarkBaker/PHPComplex)
[![Complex Numbers](https://imgs.xkcd.com/comics/complex_numbers_2x.png)](https://xkcd.com/2028/)
---

View File

@ -23,7 +23,7 @@ class Autoloader
spl_autoload_register('__autoload');
}
// Register ourselves with SPL
return spl_autoload_register(['Complex\Autoloader', 'Load']);
return spl_autoload_register(['Complex\\Autoloader', 'Load']);
}
@ -41,7 +41,7 @@ class Autoloader
$pClassFilePath = __DIR__ . DIRECTORY_SEPARATOR .
'src' . DIRECTORY_SEPARATOR .
str_replace('Complex\\', '', $pClassName) .
str_replace(['Complex\\', '\\'], ['', '/'], $pClassName) .
'.php';
if ((file_exists($pClassFilePath) === false) || (is_readable($pClassFilePath) === false)) {

View File

@ -73,5 +73,19 @@
"classes/src/operations/divideinto.php"
]
},
"scripts": {
"style": [
"phpcs --report-width=200 --report-summary --report-full classes/src/ --standard=PSR2 -n"
],
"mess": [
"phpmd classes/src/ xml codesize,unusedcode,design,naming -n"
],
"lines": [
"phploc classes/src/ -n"
],
"cpd": [
"phpcpd classes/src/ -n"
]
},
"minimum-stability": "dev"
}