Skip to content

Commit

Permalink
Update php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
akondas committed Nov 20, 2016
1 parent bca2196 commit cbdc049
Show file tree
Hide file tree
Showing 139 changed files with 160 additions and 159 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ CHANGELOG

This changelog references the relevant changes done in PHP-ML library.

* 0.2.1 (in plan/progress)
* 0.2.2 (in plan/progress)
* feature [Regression] - SSE, SSTo, SSR - sum of the squared

* 0.2.1 (2016-11-20)
* feature [Association] - Apriori algorithm implementation
* bug [Metric] - division by zero

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Association/Apriori.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Association;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Association/Associator.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Association;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Classification/Classifier.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Classification;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Classification/KNearestNeighbors.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Classification;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Classification/NaiveBayes.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Classification;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Classification/SVC.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Classification;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Clustering/Clusterer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Clustering;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Clustering/DBSCAN.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Clustering;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Clustering/KMeans.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Clustering;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Clustering/KMeans/Cluster.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Clustering\KMeans;

Expand Down
4 changes: 2 additions & 2 deletions src/Phpml/Clustering/KMeans/Point.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Clustering\KMeans;

Expand Down Expand Up @@ -46,7 +46,7 @@ public function getDistanceWith(self $point, $precise = true)
$distance = 0;
for ($n = 0; $n < $this->dimension; ++$n) {
$difference = $this->coordinates[$n] - $point->coordinates[$n];
$distance += $difference * $difference;
$distance += $difference * $difference;
}

return $precise ? sqrt((float) $distance) : $distance;
Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Clustering/KMeans/Space.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Clustering\KMeans;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/CrossValidation/RandomSplit.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\CrossValidation;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/CrossValidation/Split.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\CrossValidation;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/CrossValidation/StratifiedRandomSplit.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\CrossValidation;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Dataset/ArrayDataset.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Dataset;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Dataset/CsvDataset.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Dataset;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Dataset/Dataset.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Dataset;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Dataset/Demo/GlassDataset.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Dataset\Demo;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Dataset/Demo/IrisDataset.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Dataset\Demo;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Dataset/Demo/WineDataset.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Dataset\Demo;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Dataset/FilesDataset.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Dataset;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Estimator.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Exception/DatasetException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Exception;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Exception;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Exception/MatrixException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Exception;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Exception/NormalizerException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Exception;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/FeatureExtraction/StopWords.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\FeatureExtraction;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/FeatureExtraction/StopWords/English.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\FeatureExtraction\StopWords;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/FeatureExtraction/StopWords/Polish.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\FeatureExtraction\StopWords;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/FeatureExtraction/TfIdfTransformer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\FeatureExtraction;

Expand Down
4 changes: 2 additions & 2 deletions src/Phpml/FeatureExtraction/TokenCountVectorizer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\FeatureExtraction;

Expand Down Expand Up @@ -173,7 +173,7 @@ private function updateFrequency(string $token)

/**
* @param array $samples
*
*
* @return array
*/
private function checkDocumentFrequency(array &$samples)
Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Helper/Predictable.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Helper;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Helper/Trainable.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Helper;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Math/Distance.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Math;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Math/Distance/Chebyshev.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Math\Distance;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Math/Distance/Euclidean.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Math\Distance;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Math/Distance/Manhattan.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Math\Distance;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Math/Distance/Minkowski.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Math\Distance;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Math/Kernel.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Math;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Math/Kernel/RBF.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Math\Kernel;

Expand Down
4 changes: 2 additions & 2 deletions src/Phpml/Math/Matrix.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Math;

Expand Down Expand Up @@ -113,7 +113,7 @@ public function getColumnValues($column)

/**
* @return float|int
*
*
* @throws MatrixException
*/
public function getDeterminant()
Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Math/Product.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Math;

Expand Down
2 changes: 1 addition & 1 deletion src/Phpml/Math/Set.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

declare (strict_types = 1);
declare(strict_types=1);

namespace Phpml\Math;

Expand Down
Loading

0 comments on commit cbdc049

Please sign in to comment.