mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-11 16:15:50 +00:00
Run php-cs-fixer
This commit is contained in:
parent
8072ddb2bf
commit
1ce6bb544b
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare (strict_types = 1);
|
||||||
|
|
||||||
namespace Phpml\Association;
|
namespace Phpml\Association;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare (strict_types = 1);
|
||||||
|
|
||||||
namespace Phpml\Association;
|
namespace Phpml\Association;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare (strict_types = 1);
|
||||||
|
|
||||||
namespace Phpml\Math;
|
namespace Phpml\Math;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
declare(strict_types = 1);
|
declare (strict_types = 1);
|
||||||
|
|
||||||
namespace tests\Classification;
|
namespace tests\Classification;
|
||||||
|
|
||||||
@ -8,14 +8,14 @@ use Phpml\Association\Apriori;
|
|||||||
|
|
||||||
class AprioriTest extends \PHPUnit_Framework_TestCase
|
class AprioriTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
private $sampleGreek = [
|
private $sampleGreek = [
|
||||||
['alpha', 'beta', 'epsilon'],
|
['alpha', 'beta', 'epsilon'],
|
||||||
['alpha', 'beta', 'theta'],
|
['alpha', 'beta', 'theta'],
|
||||||
['alpha', 'beta', 'epsilon'],
|
['alpha', 'beta', 'epsilon'],
|
||||||
['alpha', 'beta', 'theta'],
|
['alpha', 'beta', 'theta'],
|
||||||
];
|
];
|
||||||
|
|
||||||
private $sampleChars = [
|
private $sampleChars = [
|
||||||
['E', 'D', 'N', 'E+N', 'EN'],
|
['E', 'D', 'N', 'E+N', 'EN'],
|
||||||
['E', 'R', 'N', 'E+R', 'E+N', 'ER', 'EN'],
|
['E', 'R', 'N', 'E+R', 'E+N', 'ER', 'EN'],
|
||||||
['D', 'R'],
|
['D', 'R'],
|
||||||
@ -25,7 +25,7 @@ class AprioriTest extends \PHPUnit_Framework_TestCase
|
|||||||
['E', 'D', 'N', 'E+N', 'EN'],
|
['E', 'D', 'N', 'E+N', 'EN'],
|
||||||
['E', 'R', 'E+R'],
|
['E', 'R', 'E+R'],
|
||||||
['E'],
|
['E'],
|
||||||
['N',],
|
['N'],
|
||||||
];
|
];
|
||||||
|
|
||||||
private $sampleBasket = [
|
private $sampleBasket = [
|
||||||
@ -179,7 +179,7 @@ class AprioriTest extends \PHPUnit_Framework_TestCase
|
|||||||
public function invoke(&$object, $method, array $params = array())
|
public function invoke(&$object, $method, array $params = array())
|
||||||
{
|
{
|
||||||
$reflection = new \ReflectionClass(get_class($object));
|
$reflection = new \ReflectionClass(get_class($object));
|
||||||
$method = $reflection->getMethod($method);
|
$method = $reflection->getMethod($method);
|
||||||
$method->setAccessible(true);
|
$method->setAccessible(true);
|
||||||
|
|
||||||
return $method->invokeArgs($object, $params);
|
return $method->invokeArgs($object, $params);
|
||||||
|
Loading…
Reference in New Issue
Block a user