From cd352b81a8341fe0b01214b225d01f151f09fced Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 17 Oct 2019 11:00:51 +0200 Subject: [PATCH] prevent initialization --- Algorithm/CoinMatching/MinimumCoinProblem.php | 2 +- Algorithm/JobScheduling/Weighted.php | 10 ++++++++++ Algorithm/Knapsack/Bounded.php | 10 ++++++++++ Algorithm/Knapsack/Continuous.php | 10 ++++++++++ Algorithm/Sort/BitonicSort.php | 10 ++++++++++ Algorithm/Sort/BubbleSort.php | 10 ++++++++++ Algorithm/Sort/CocktailShakerSort.php | 10 ++++++++++ Algorithm/Sort/CombSort.php | 10 ++++++++++ Algorithm/Sort/CycleSort.php | 10 ++++++++++ Algorithm/Sort/GnomeSort.php | 10 ++++++++++ Algorithm/Sort/HeapSort.php | 10 ++++++++++ Algorithm/Sort/InsertionSort.php | 10 ++++++++++ Algorithm/Sort/IntroSort.php | 10 ++++++++++ Algorithm/Sort/MergeSort.php | 10 ++++++++++ Algorithm/Sort/OddEvenSort.php | 10 ++++++++++ Algorithm/Sort/PancakeSort.php | 10 ++++++++++ Algorithm/Sort/QuickSort.php | 10 ++++++++++ Algorithm/Sort/SelectionSort.php | 10 ++++++++++ Algorithm/Sort/ShellSort.php | 10 ++++++++++ Algorithm/Sort/StoogeSort.php | 10 ++++++++++ 20 files changed, 191 insertions(+), 1 deletion(-) diff --git a/Algorithm/CoinMatching/MinimumCoinProblem.php b/Algorithm/CoinMatching/MinimumCoinProblem.php index bba29cf63..2334e215c 100644 --- a/Algorithm/CoinMatching/MinimumCoinProblem.php +++ b/Algorithm/CoinMatching/MinimumCoinProblem.php @@ -25,7 +25,7 @@ namespace phpOMS\Algorithm\CoinMatching; final class MinimumCoinProblem { /** - * Constructure + * Constructor * * @since 1.0.0 * @codeCoverageIgnore diff --git a/Algorithm/JobScheduling/Weighted.php b/Algorithm/JobScheduling/Weighted.php index 423363492..b770e8f68 100644 --- a/Algorithm/JobScheduling/Weighted.php +++ b/Algorithm/JobScheduling/Weighted.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\JobScheduling; */ final class Weighted { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * Sort jobs by end date. * diff --git a/Algorithm/Knapsack/Bounded.php b/Algorithm/Knapsack/Bounded.php index b595220d5..c55b8afcf 100644 --- a/Algorithm/Knapsack/Bounded.php +++ b/Algorithm/Knapsack/Bounded.php @@ -27,6 +27,16 @@ namespace phpOMS\Algorithm\Knapsack; */ final class Bounded { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * Fill the backpack with items * diff --git a/Algorithm/Knapsack/Continuous.php b/Algorithm/Knapsack/Continuous.php index f874779d0..4d0d7d68d 100644 --- a/Algorithm/Knapsack/Continuous.php +++ b/Algorithm/Knapsack/Continuous.php @@ -25,6 +25,16 @@ namespace phpOMS\Algorithm\Knapsack; */ final class Continuous { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * Fill the backpack with items * diff --git a/Algorithm/Sort/BitonicSort.php b/Algorithm/Sort/BitonicSort.php index a20ea2ad0..d90f7b7a8 100644 --- a/Algorithm/Sort/BitonicSort.php +++ b/Algorithm/Sort/BitonicSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class BitonicSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/BubbleSort.php b/Algorithm/Sort/BubbleSort.php index c48230f08..609104e96 100644 --- a/Algorithm/Sort/BubbleSort.php +++ b/Algorithm/Sort/BubbleSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class BubbleSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/CocktailShakerSort.php b/Algorithm/Sort/CocktailShakerSort.php index 385511436..8e7b38df5 100644 --- a/Algorithm/Sort/CocktailShakerSort.php +++ b/Algorithm/Sort/CocktailShakerSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class CocktailShakerSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/CombSort.php b/Algorithm/Sort/CombSort.php index 53a01d238..c22df2451 100644 --- a/Algorithm/Sort/CombSort.php +++ b/Algorithm/Sort/CombSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class CombSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/CycleSort.php b/Algorithm/Sort/CycleSort.php index fa21a3c38..3417f739b 100644 --- a/Algorithm/Sort/CycleSort.php +++ b/Algorithm/Sort/CycleSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class CycleSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/GnomeSort.php b/Algorithm/Sort/GnomeSort.php index 804adf1f7..c5bed742b 100644 --- a/Algorithm/Sort/GnomeSort.php +++ b/Algorithm/Sort/GnomeSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class GnomeSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/HeapSort.php b/Algorithm/Sort/HeapSort.php index b19138b43..6af98d1c2 100644 --- a/Algorithm/Sort/HeapSort.php +++ b/Algorithm/Sort/HeapSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class HeapSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/InsertionSort.php b/Algorithm/Sort/InsertionSort.php index eb10e0042..6eebf9537 100644 --- a/Algorithm/Sort/InsertionSort.php +++ b/Algorithm/Sort/InsertionSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class InsertionSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/IntroSort.php b/Algorithm/Sort/IntroSort.php index dff99a5a5..ed5e1f9bc 100644 --- a/Algorithm/Sort/IntroSort.php +++ b/Algorithm/Sort/IntroSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class IntroSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/MergeSort.php b/Algorithm/Sort/MergeSort.php index 9f1373047..84f3d48b7 100644 --- a/Algorithm/Sort/MergeSort.php +++ b/Algorithm/Sort/MergeSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class MergeSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/OddEvenSort.php b/Algorithm/Sort/OddEvenSort.php index b2d2b8c5d..d7f6d9f06 100644 --- a/Algorithm/Sort/OddEvenSort.php +++ b/Algorithm/Sort/OddEvenSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class OddEvenSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/PancakeSort.php b/Algorithm/Sort/PancakeSort.php index a9a62b0e5..3a22b2725 100644 --- a/Algorithm/Sort/PancakeSort.php +++ b/Algorithm/Sort/PancakeSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class PancakeSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/QuickSort.php b/Algorithm/Sort/QuickSort.php index 292007edb..ba8de03f3 100644 --- a/Algorithm/Sort/QuickSort.php +++ b/Algorithm/Sort/QuickSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class QuickSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/SelectionSort.php b/Algorithm/Sort/SelectionSort.php index 4324a357f..e1f51f185 100644 --- a/Algorithm/Sort/SelectionSort.php +++ b/Algorithm/Sort/SelectionSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class SelectionSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/ShellSort.php b/Algorithm/Sort/ShellSort.php index 90576f931..1e9773a59 100644 --- a/Algorithm/Sort/ShellSort.php +++ b/Algorithm/Sort/ShellSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class ShellSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */ diff --git a/Algorithm/Sort/StoogeSort.php b/Algorithm/Sort/StoogeSort.php index ebf939771..391cee2bd 100644 --- a/Algorithm/Sort/StoogeSort.php +++ b/Algorithm/Sort/StoogeSort.php @@ -24,6 +24,16 @@ namespace phpOMS\Algorithm\Sort; */ final class StoogeSort implements SortInterface { + /** + * Constructor + * + * @since 1.0.0 + * @codeCoverageIgnore + */ + private function __construct() + { + } + /** * {@inheritdoc} */