Skip to content

Commit

Permalink
Remove unnecessary docblocks
Browse files Browse the repository at this point in the history
Add missing declare(strict) in tests
Add missing type hint on ini factory method
  • Loading branch information
dave-redfern committed Feb 14, 2023
1 parent 8a388c1 commit 96b2d71
Show file tree
Hide file tree
Showing 210 changed files with 91 additions and 1,319 deletions.
6 changes: 0 additions & 6 deletions src/AbstractCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
use function is_array;
use function is_null;

/**
* Class AbstractCollection
*
* @package Somnambulist\Components\Collection
* @subpackage Somnambulist\Components\Collection\AbstractCollection
*/
abstract class AbstractCollection implements Collection
{

Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Aggregate/AggregateValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
use function is_null;

/**
* Trait AggregateValues
*
* @package Somnambulist\Components\Collection\Behaviours\Aggregate
* @subpackage Somnambulist\Components\Collection\Behaviours\Aggregate\AggregateValues
*
* @property array $items
*/
trait AggregateValues
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Aggregate/CountBy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
use function is_null;

/**
* Trait CountBy
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Aggregate\CountBy
*
* @property array $items
*/
trait CountBy
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Assertion/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
use Somnambulist\Components\Collection\Exceptions\AssertionFailedException;

/**
* Trait Assert
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Assertion\Assert
*
* @property array $items
*/
trait Assert
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/CanAddAndRemoveItems.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
namespace Somnambulist\Components\Collection\Behaviours;

/**
* Trait CanAddAndRemoveItems
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\CanAddAndRemoveItems
*
* @property array $items
*/
trait CanAddAndRemoveItems
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/CannotAddDuplicateItems.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
use Somnambulist\Components\Collection\Exceptions\DuplicateItemException;

/**
* Trait CannotAddDuplicateItems
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\CannotAddDuplicateItems
*
* @property array $items
*/
trait CannotAddDuplicateItems
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/CannotAddOrRemoveItems.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
use Somnambulist\Components\Collection\Exceptions\CollectionIsFrozenException;

/**
* Trait CannotAddOrRemoveItems
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\CannotAddOrRemoveItems
*
* @property array $items
*/
trait CannotAddOrRemoveItems
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Compare/DiffKeys.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
use function array_diff_ukey;

/**
* Trait DiffKeys
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Compare\DiffKeys
*
* @property array $items
*/
trait DiffKeys
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Compare/DiffValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@
use function array_udiff;

/**
* Trait DiffValues
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Compare\DiffValues
*
* @property array $items
*/
trait DiffValues
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Compare/Intersect.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
use function array_intersect_key;

/**
* Trait Intersect
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Compare\Intersect
*
* @property array $items
*/
trait Intersect
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Export/ExportToArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
use Somnambulist\Components\Collection\Utils\Value;

/**
* Trait ExportToArray
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Export\ExportToArray
*
* @property array $items
*/
trait ExportToArray
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Export/ExportToJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
use function json_encode;

/**
* Trait ExportToJson
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Export\ExportToJson
*
* @property array $items
*/
trait ExportToJson
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Export/ExportToQueryString.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
use function http_build_query;

/**
* Trait ExportToQueryString
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Export\ExportToQueryString
*
* @property array $items
*/
trait ExportToQueryString
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Export/ExportToString.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
use function sprintf;

/**
* Trait ExportToString
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Export\ExportToString
*
* @property array $items
*/
trait ExportToString
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Export/JsonSerialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
namespace Somnambulist\Components\Collection\Behaviours\Export;

/**
* Trait JsonSerialize
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Export\JsonSerialize
*
* @property array $items
*/
trait JsonSerialize
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Export/Serializable.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
use function unserialize;

/**
* Trait Serializable
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Export\Serializable
*
* @property array $items
*/
trait Serializable
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Freezeable.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
use Somnambulist\Components\Collection\Utils\ClassUtils;

/**
* Trait Freezeable
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Freezeable
*
* @property array $items
*/
trait Freezeable
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/MapReduce/Collapse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
use Somnambulist\Components\Collection\Utils\Value;

/**
* Trait Collapse
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\MapReduce\Collapse
*
* @property array $items
*/
trait Collapse
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/MapReduce/FlatMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
use Somnambulist\Components\Collection\Contracts\Collection;

/**
* Trait FlatMap
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\MapReduce\FlatMap
*
* @property array $items
*/
trait FlatMap
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/MapReduce/Flatten.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
use Somnambulist\Components\Collection\Utils\Value;

/**
* Trait Flatten
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\MapReduce\Flatten
*
* @property array $items
*/
trait Flatten
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/MapReduce/Map.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
use function array_map;

/**
* Trait Map
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\MapReduce\Map
*
* @property array $items
*/
trait Map
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/MapReduce/MapInto.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
use Somnambulist\Components\Collection\Contracts\Collection;

/**
* Trait MapInto
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\MapReduce\MapInto
*
* @property array $items
*/
trait MapInto
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/MapReduce/Reduce.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
use function array_reduce;

/**
* Trait Reduce
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\MapReduce\Reduce
*
* @property array $items
*/
trait Reduce
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Mutate/AppendOnlyUniqueValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
use function array_push;

/**
* Trait AppendOnlyUniqueValues
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Mutate\AppendOnlyUniqueValues
*
* @property array $items
*/
trait AppendOnlyUniqueValues
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Mutate/AppendValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
use function array_push;

/**
* Trait AppendValues
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Mutate\AppendValues
*
* @property array $items
*/
trait AppendValues
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Mutate/Clear.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
use Somnambulist\Components\Collection\Contracts\Collection;

/**
* Trait Clear
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Mutate\Clear
*
* @property array $items
*/
trait Clear
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Mutate/CombineOnlyUniqueValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
use function array_combine;

/**
* Trait CombineOnlyUniqueValues
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Mutate\CombineOnlyUniqueValues
*
* @property array $items
*/
trait CombineOnlyUniqueValues
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Mutate/CombineValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
use function array_combine;

/**
* Trait CombineValues
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Mutate\CombineValues
*
* @property array $items
*/
trait CombineValues
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Mutate/Fill.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
use function array_fill_keys;

/**
* Trait Fill
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Mutate\Fill
*
* @property array $items
*/
trait Fill
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Mutate/Flip.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
use function array_flip;

/**
* Trait Flip
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Mutate\Flip
*
* @property array $items
*/
trait Flip
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Mutate/MergeOnlyUniqueValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
use Somnambulist\Components\Collection\Utils\Value;

/**
* Trait MergeOnlyUniqueValues
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Mutate\MergeOnlyUniqueValues
*
* @property array $items
*/
trait MergeOnlyUniqueValues
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Mutate/MergeValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
use function array_merge;

/**
* Trait MergeValues
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Mutate\MergeValues
*
* @property array $items
*/
trait MergeValues
Expand Down
5 changes: 0 additions & 5 deletions src/Behaviours/Mutate/Pad.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
use function array_pad;

/**
* Trait Pad
*
* @package Somnambulist\Components\Collection\Behaviours
* @subpackage Somnambulist\Components\Collection\Behaviours\Mutate\Pad
*
* @property array $items
*/
trait Pad
Expand Down
Loading

0 comments on commit 96b2d71

Please sign in to comment.