-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from krlv/plural_to_singular_namespaces
Migrate from plural to singular names in namespaces
- Loading branch information
Showing
25 changed files
with
92 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
* | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
|
@@ -28,7 +30,7 @@ | |
|
||
|
||
use doganoo\PHPAlgorithms\Datastructure\Graph\Graph\Node; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayLists\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayList\ArrayList; | ||
|
||
/** | ||
* TODO implement AbstractGraphSearch | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ | |
/** | ||
* MIT License | ||
* | ||
* Copyright (c) 2018 Dogan Ucar | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -31,7 +33,7 @@ | |
use doganoo\PHPAlgorithms\Common\Interfaces\IGraphSortable; | ||
use doganoo\PHPAlgorithms\Datastructure\Graph\Graph\DirectedGraph; | ||
use doganoo\PHPAlgorithms\Datastructure\Graph\Graph\Node; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayLists\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayList\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Stackqueue\Stack; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
* | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
|
@@ -26,7 +28,7 @@ | |
|
||
namespace doganoo\PHPAlgorithms\Algorithm\Various; | ||
|
||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayLists\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayList\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Table\HashTable; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
* | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
|
@@ -28,7 +30,7 @@ | |
|
||
use doganoo\PHPAlgorithms\Common\Exception\IndexOutOfBoundsException; | ||
use doganoo\PHPAlgorithms\Common\Util\Comparator; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayLists\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayList\ArrayList; | ||
|
||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
* | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
|
@@ -34,7 +36,7 @@ | |
use doganoo\PHPAlgorithms\Common\Interfaces\IComparable; | ||
use doganoo\PHPAlgorithms\Common\Util\Comparator; | ||
use doganoo\PHPAlgorithms\Datastructure\Graph\Graph\Node; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayLists\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayList\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Stackqueue\Queue; | ||
use doganoo\PHPAlgorithms\Datastructure\Table\HashTable; | ||
use JsonSerializable; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ | |
/** | ||
* MIT License | ||
* | ||
* Copyright (c) 2018 Dogan Ucar | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -27,7 +29,7 @@ | |
namespace doganoo\PHPAlgorithms\Common\Abstracts; | ||
|
||
use doganoo\PHPAlgorithms\Datastructure\Graph\Graph\Node; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayLists\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayList\ArrayList; | ||
use function is_callable; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ | |
/** | ||
* MIT License | ||
* | ||
* Copyright (c) 2018 Dogan Ucar | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -27,7 +29,7 @@ | |
namespace doganoo\PHPAlgorithms\Datastructure\Graph\Graph; | ||
|
||
use doganoo\PHPAlgorithms\Common\Abstracts\AbstractGraph; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayLists\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayList\ArrayList; | ||
|
||
/** | ||
* Class Graph | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ | |
/** | ||
* MIT License | ||
* | ||
* Copyright (c) 2018 Dogan Ucar | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -28,7 +30,7 @@ | |
|
||
use doganoo\PHPAlgorithms\Common\Interfaces\INode; | ||
use doganoo\PHPAlgorithms\Common\Util\Comparator; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayLists\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayList\ArrayList; | ||
|
||
/** | ||
* Class Node | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ | |
/** | ||
* MIT License | ||
* | ||
* Copyright (c) 2018 Dogan Ucar | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -28,7 +30,7 @@ | |
|
||
use doganoo\PHPAlgorithms\Common\Interfaces\INode; | ||
use doganoo\PHPAlgorithms\Common\Util\Comparator; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayLists\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayList\ArrayList; | ||
|
||
/** | ||
* Class Node | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
* | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
|
@@ -24,7 +26,7 @@ | |
* SOFTWARE. | ||
*/ | ||
|
||
namespace doganoo\PHPAlgorithms\Datastructure\Lists\ArrayLists; | ||
namespace doganoo\PHPAlgorithms\Datastructure\Lists\ArrayList; | ||
|
||
use ArrayIterator; | ||
use doganoo\PHPAlgorithms\Algorithm\Sorting\TimSort; | ||
|
@@ -56,7 +58,7 @@ | |
* | ||
* see here: https://gist.github.com/wwsun/71ebbaded68930884746 | ||
* | ||
* @package doganoo\PHPAlgorithms\Lists\ArrayLists | ||
* @package doganoo\PHPAlgorithms\Lists\ArrayList | ||
*/ | ||
class ArrayList implements IteratorAggregate, JsonSerializable, IComparable { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
* | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
|
@@ -24,7 +26,7 @@ | |
* SOFTWARE. | ||
*/ | ||
|
||
namespace doganoo\PHPAlgorithms\Datastructure\Lists\ArrayLists; | ||
namespace doganoo\PHPAlgorithms\Datastructure\Lists\ArrayList; | ||
|
||
use doganoo\PHPAlgorithms\Common\Exception\IndexOutOfBoundsException; | ||
use doganoo\PHPAlgorithms\Datastructure\Stackqueue\Queue; | ||
|
@@ -36,7 +38,7 @@ | |
/** | ||
* Class StringBuilder | ||
* | ||
* @package doganoo\PHPAlgorithms\Lists\ArrayLists | ||
* @package doganoo\PHPAlgorithms\Lists\ArrayList | ||
*/ | ||
class StringBuilder { | ||
/** @var ArrayList $arrayList */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
* | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
|
@@ -24,15 +26,15 @@ | |
* SOFTWARE. | ||
*/ | ||
|
||
namespace doganoo\PHPAlgorithms\Datastructure\Lists\LinkedLists; | ||
namespace doganoo\PHPAlgorithms\Datastructure\Lists\LinkedList; | ||
|
||
use doganoo\PHPAlgorithms\Common\Abstracts\AbstractLinkedList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\Node; | ||
|
||
/** | ||
* Class DoublyLinkedList | ||
* | ||
* @package doganoo\PHPAlgorithms\LinkedLists | ||
* @package doganoo\PHPAlgorithms\LinkedList | ||
*/ | ||
class DoublyLinkedList extends AbstractLinkedList { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
* | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
|
@@ -24,15 +26,15 @@ | |
* SOFTWARE. | ||
*/ | ||
|
||
namespace doganoo\PHPAlgorithms\Datastructure\Lists\LinkedLists; | ||
namespace doganoo\PHPAlgorithms\Datastructure\Lists\LinkedList; | ||
|
||
use doganoo\PHPAlgorithms\Common\Abstracts\AbstractLinkedList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\Node; | ||
|
||
/** | ||
* Class SinglyLinkedList | ||
* | ||
* @package doganoo\PHPAlgorithms\LinkedLists | ||
* @package doganoo\PHPAlgorithms\LinkedList | ||
*/ | ||
class SinglyLinkedList extends AbstractLinkedList { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
* | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
|
@@ -24,7 +26,7 @@ | |
* SOFTWARE. | ||
*/ | ||
|
||
namespace doganoo\PHPAlgorithms\Datastructure\Maps; | ||
namespace doganoo\PHPAlgorithms\Datastructure\Map; | ||
|
||
use doganoo\PHPAlgorithms\Common\Util\Comparator; | ||
use function array_fill; | ||
|
@@ -35,7 +37,7 @@ | |
/** | ||
* Class Map | ||
* | ||
* @package doganoo\PHPAlgorithms\Datastructure\maps | ||
* @package doganoo\PHPAlgorithms\Datastructure\Map | ||
*/ | ||
class Map { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
* | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
|
@@ -24,7 +26,7 @@ | |
* SOFTWARE. | ||
*/ | ||
|
||
namespace doganoo\PHPAlgorithms\Datastructure\Sets; | ||
namespace doganoo\PHPAlgorithms\Datastructure\Set; | ||
|
||
use doganoo\PHPAlgorithms\Common\Abstracts\AbstractSet; | ||
use doganoo\PHPAlgorithms\Common\Exception\InvalidKeyTypeException; | ||
|
@@ -37,7 +39,7 @@ | |
/** | ||
* Class HashSet | ||
* | ||
* @package doganoo\PHPAlgorithms\Datastructure\Sets | ||
* @package doganoo\PHPAlgorithms\Datastructure\Set | ||
*/ | ||
class HashSet extends AbstractSet implements ISet { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ | |
/** | ||
* MIT License | ||
* | ||
* Copyright (c) 2018 Dogan Ucar | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
|
@@ -29,7 +31,7 @@ | |
use doganoo\PHPAlgorithms\Common\Exception\IndexOutOfBoundsException; | ||
use doganoo\PHPAlgorithms\Common\Interfaces\IComparable; | ||
use doganoo\PHPAlgorithms\Common\Util\Comparator; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayLists\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayList\ArrayList; | ||
use JsonSerializable; | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
* | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
|
@@ -31,7 +33,7 @@ | |
use doganoo\PHPAlgorithms\Common\Exception\InvalidKeyTypeException; | ||
use doganoo\PHPAlgorithms\Common\Exception\UnsupportedKeyTypeException; | ||
use doganoo\PHPAlgorithms\Common\Util\MapUtil; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\LinkedLists\SinglyLinkedList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\LinkedList\SinglyLinkedList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\Node; | ||
use JsonSerializable; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
* | ||
* Copyright (c) 2018 Dogan Ucar, <[email protected]> | ||
* | ||
* @author Eugene Kirillov <[email protected]> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
|
@@ -28,7 +30,7 @@ | |
|
||
use doganoo\PHPAlgorithms\Common\Util\Comparator; | ||
use doganoo\PHPAlgorithms\Datastructure\Graph\Graph\Node; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayLists\ArrayList; | ||
use doganoo\PHPAlgorithms\Datastructure\Lists\ArrayList\ArrayList; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class ComparatorTest extends TestCase { | ||
|
Oops, something went wrong.