From 5ee0e675125fff300537f5951f973b944577cdb3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 17 Oct 2019 10:49:07 +0200 Subject: [PATCH] make classes final --- Algorithm/Sort/BitonicSort.php | 2 +- Algorithm/Sort/BubbleSort.php | 2 +- Algorithm/Sort/BucketSort.php | 2 +- Algorithm/Sort/CocktailShakerSort.php | 2 +- Algorithm/Sort/CombSort.php | 2 +- Algorithm/Sort/CycleSort.php | 2 +- Algorithm/Sort/GnomeSort.php | 2 +- Algorithm/Sort/HeapSort.php | 2 +- Algorithm/Sort/InsertionSort.php | 2 +- Algorithm/Sort/IntroSort.php | 2 +- Algorithm/Sort/MergeSort.php | 2 +- Algorithm/Sort/OddEvenSort.php | 2 +- Algorithm/Sort/PancakeSort.php | 2 +- Algorithm/Sort/QuickSort.php | 2 +- Algorithm/Sort/SelectionSort.php | 2 +- Algorithm/Sort/ShellSort.php | 2 +- Algorithm/Sort/StoogeSort.php | 2 +- Algorithm/Sort/TimSort.php | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Algorithm/Sort/BitonicSort.php b/Algorithm/Sort/BitonicSort.php index 729264745..a20ea2ad0 100644 --- a/Algorithm/Sort/BitonicSort.php +++ b/Algorithm/Sort/BitonicSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class BitonicSort implements SortInterface +final class BitonicSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/BubbleSort.php b/Algorithm/Sort/BubbleSort.php index 400eaa34c..c48230f08 100644 --- a/Algorithm/Sort/BubbleSort.php +++ b/Algorithm/Sort/BubbleSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class BubbleSort implements SortInterface +final class BubbleSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/BucketSort.php b/Algorithm/Sort/BucketSort.php index 15f81f7c1..b0dffdffa 100644 --- a/Algorithm/Sort/BucketSort.php +++ b/Algorithm/Sort/BucketSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class BucketSort +final class BucketSort { /** * Sort array diff --git a/Algorithm/Sort/CocktailShakerSort.php b/Algorithm/Sort/CocktailShakerSort.php index 1ec833aec..385511436 100644 --- a/Algorithm/Sort/CocktailShakerSort.php +++ b/Algorithm/Sort/CocktailShakerSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class CocktailShakerSort implements SortInterface +final class CocktailShakerSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/CombSort.php b/Algorithm/Sort/CombSort.php index e2dc9b1d5..53a01d238 100644 --- a/Algorithm/Sort/CombSort.php +++ b/Algorithm/Sort/CombSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class CombSort implements SortInterface +final class CombSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/CycleSort.php b/Algorithm/Sort/CycleSort.php index 72cbbb32e..fa21a3c38 100644 --- a/Algorithm/Sort/CycleSort.php +++ b/Algorithm/Sort/CycleSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class CycleSort implements SortInterface +final class CycleSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/GnomeSort.php b/Algorithm/Sort/GnomeSort.php index 18f9a21b0..804adf1f7 100644 --- a/Algorithm/Sort/GnomeSort.php +++ b/Algorithm/Sort/GnomeSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class GnomeSort implements SortInterface +final class GnomeSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/HeapSort.php b/Algorithm/Sort/HeapSort.php index 44a6b7e0c..b19138b43 100644 --- a/Algorithm/Sort/HeapSort.php +++ b/Algorithm/Sort/HeapSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class HeapSort implements SortInterface +final class HeapSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/InsertionSort.php b/Algorithm/Sort/InsertionSort.php index 9079fc14a..eb10e0042 100644 --- a/Algorithm/Sort/InsertionSort.php +++ b/Algorithm/Sort/InsertionSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class InsertionSort implements SortInterface +final class InsertionSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/IntroSort.php b/Algorithm/Sort/IntroSort.php index 2ce06f659..dff99a5a5 100644 --- a/Algorithm/Sort/IntroSort.php +++ b/Algorithm/Sort/IntroSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class IntroSort implements SortInterface +final class IntroSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/MergeSort.php b/Algorithm/Sort/MergeSort.php index 7da3f08b9..9f1373047 100644 --- a/Algorithm/Sort/MergeSort.php +++ b/Algorithm/Sort/MergeSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class MergeSort implements SortInterface +final class MergeSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/OddEvenSort.php b/Algorithm/Sort/OddEvenSort.php index da6566fc2..b2d2b8c5d 100644 --- a/Algorithm/Sort/OddEvenSort.php +++ b/Algorithm/Sort/OddEvenSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class OddEvenSort implements SortInterface +final class OddEvenSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/PancakeSort.php b/Algorithm/Sort/PancakeSort.php index 7a6efb241..a9a62b0e5 100644 --- a/Algorithm/Sort/PancakeSort.php +++ b/Algorithm/Sort/PancakeSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class PancakeSort implements SortInterface +final class PancakeSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/QuickSort.php b/Algorithm/Sort/QuickSort.php index 10f559732..292007edb 100644 --- a/Algorithm/Sort/QuickSort.php +++ b/Algorithm/Sort/QuickSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class QuickSort implements SortInterface +final class QuickSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/SelectionSort.php b/Algorithm/Sort/SelectionSort.php index 1dfa2403d..4324a357f 100644 --- a/Algorithm/Sort/SelectionSort.php +++ b/Algorithm/Sort/SelectionSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class SelectionSort implements SortInterface +final class SelectionSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/ShellSort.php b/Algorithm/Sort/ShellSort.php index 5410b1dca..90576f931 100644 --- a/Algorithm/Sort/ShellSort.php +++ b/Algorithm/Sort/ShellSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class ShellSort implements SortInterface +final class ShellSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/StoogeSort.php b/Algorithm/Sort/StoogeSort.php index 988174311..ebf939771 100644 --- a/Algorithm/Sort/StoogeSort.php +++ b/Algorithm/Sort/StoogeSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class StoogeSort implements SortInterface +final class StoogeSort implements SortInterface { /** * {@inheritdoc} diff --git a/Algorithm/Sort/TimSort.php b/Algorithm/Sort/TimSort.php index b68c27a70..2032debb4 100644 --- a/Algorithm/Sort/TimSort.php +++ b/Algorithm/Sort/TimSort.php @@ -22,7 +22,7 @@ namespace phpOMS\Algorithm\Sort; * @link https://orange-management.org * @since 1.0.0 */ -class TimSort implements SortInterface +final class TimSort implements SortInterface { /** * Blocks the sorting is devided into