Skip to content

Commit

Permalink
Add no_unused_imports rule to cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
akondas committed Mar 1, 2017
1 parent c028a73 commit 63c63df
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 15 deletions.
1 change: 1 addition & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ return PhpCsFixer\Config::create()
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => true,
'single_blank_line_before_namespace' => true,
'no_unused_imports' => true
])
->setFinder(
PhpCsFixer\Finder::create()
Expand Down
2 changes: 0 additions & 2 deletions src/Phpml/Classification/Ensemble/Bagging.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@

use Phpml\Helper\Predictable;
use Phpml\Helper\Trainable;
use Phpml\Math\Statistic\Mean;
use Phpml\Classification\Classifier;
use Phpml\Classification\DecisionTree;
use Phpml\Classification\NaiveBayes;

class Bagging implements Classifier
{
Expand Down
2 changes: 0 additions & 2 deletions src/Phpml/Classification/Ensemble/RandomForest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

namespace Phpml\Classification\Ensemble;

use Phpml\Classification\Ensemble\Bagging;
use Phpml\Classification\DecisionTree;
use Phpml\Classification\NaiveBayes;
use Phpml\Classification\Classifier;

class RandomForest extends Bagging
Expand Down
3 changes: 0 additions & 3 deletions src/Phpml/Classification/Linear/Adaline.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@

namespace Phpml\Classification\Linear;

use Phpml\Helper\Predictable;
use Phpml\Helper\Trainable;
use Phpml\Classification\Classifier;
use Phpml\Classification\Linear\Perceptron;

class Adaline extends Perceptron
{
Expand Down
1 change: 0 additions & 1 deletion src/Phpml/Classification/Linear/Perceptron.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Phpml\Classification\Linear;

use Phpml\Helper\Predictable;
use Phpml\Helper\Trainable;
use Phpml\Classification\Classifier;
use Phpml\Preprocessing\Normalizer;

Expand Down
6 changes: 3 additions & 3 deletions src/Phpml/Classification/WeightedClassifier.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php declare(strict_types=1);
<?php

namespace Phpml\Classification;
declare(strict_types=1);

use Phpml\Classification\Classifier;
namespace Phpml\Classification;

abstract class WeightedClassifier implements Classifier
{
Expand Down
1 change: 0 additions & 1 deletion tests/Phpml/Classification/Ensemble/BaggingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Phpml\Classification\Ensemble\Bagging;
use Phpml\Classification\DecisionTree;
use Phpml\Classification\NaiveBayes;
use Phpml\Classification\KNearestNeighbors;
use Phpml\ModelManager;
use PHPUnit\Framework\TestCase;

Expand Down
3 changes: 0 additions & 3 deletions tests/Phpml/Classification/Ensemble/RandomForestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
use Phpml\Classification\Ensemble\RandomForest;
use Phpml\Classification\DecisionTree;
use Phpml\Classification\NaiveBayes;
use Phpml\Classification\KNearestNeighbors;
use Phpml\ModelManager;
use tests\Classification\Ensemble\BaggingTest;

class RandomForestTest extends BaggingTest
{
Expand Down

0 comments on commit 63c63df

Please sign in to comment.