Skip to content

Commit

Permalink
Merge pull request #29 from simPod/fix-cs
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
peter-gribanov authored Aug 23, 2021
2 parents 342c31e + 904bcb5 commit edf1a6f
Show file tree
Hide file tree
Showing 26 changed files with 2 additions and 330 deletions.
12 changes: 0 additions & 12 deletions src/BaseIntervalPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
abstract class BaseIntervalPoint implements IntervalPointInterface
{
/**
* @param IntervalPointInterface $point
*
* @return bool
*/
public function eq(IntervalPointInterface $point)
Expand All @@ -22,8 +20,6 @@ public function eq(IntervalPointInterface $point)
}

/**
* @param IntervalPointInterface $point
*
* @return bool
*/
public function neq(IntervalPointInterface $point)
Expand All @@ -32,8 +28,6 @@ public function neq(IntervalPointInterface $point)
}

/**
* @param IntervalPointInterface $point
*
* @return bool
*/
public function lt(IntervalPointInterface $point)
Expand All @@ -42,8 +36,6 @@ public function lt(IntervalPointInterface $point)
}

/**
* @param IntervalPointInterface $point
*
* @return bool
*/
public function lte(IntervalPointInterface $point)
Expand All @@ -52,8 +44,6 @@ public function lte(IntervalPointInterface $point)
}

/**
* @param IntervalPointInterface $point
*
* @return bool
*/
public function gt(IntervalPointInterface $point)
Expand All @@ -62,8 +52,6 @@ public function gt(IntervalPointInterface $point)
}

/**
* @param IntervalPointInterface $point
*
* @return bool
*/
public function gte(IntervalPointInterface $point)
Expand Down
6 changes: 0 additions & 6 deletions src/ComparableIntervalInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,20 @@ public function type();
/**
* Returns a copy of this Interval with the start point altered.
*
* @param IntervalPointInterface $start
*
* @return self
*/
public function withStart(IntervalPointInterface $start);

/**
* Returns a copy of this Interval with the end point altered.
*
* @param IntervalPointInterface $end
*
* @return self
*/
public function withEnd(IntervalPointInterface $end);

/**
* Returns a copy of this Interval with the interval type altered.
*
* @param IntervalType $type
*
* @return self
*/
public function withType(IntervalType $type);
Expand Down
33 changes: 0 additions & 33 deletions src/Date/DateInterval.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ class DateInterval implements ComparableIntervalInterface
*/
private $end;

/**
* @param DateIntervalPoint $start
* @param DateIntervalPoint $end
* @param IntervalType $type
*/
private function __construct(DateIntervalPoint $start, DateIntervalPoint $end, IntervalType $type)
{
if ($start->gte($end)) {
Expand All @@ -69,10 +64,6 @@ private function __construct(DateIntervalPoint $start, DateIntervalPoint $end, I
}

/**
* @param \DateTime $start
* @param \DateTime $end
* @param IntervalType $type
*
* @return self
*/
public static function create(\DateTime $start, \DateTime $end, IntervalType $type)
Expand All @@ -81,9 +72,6 @@ public static function create(\DateTime $start, \DateTime $end, IntervalType $ty
}

/**
* @param \DateTime $start
* @param \DateTime $end
*
* @return self
*/
public static function closed(\DateTime $start, \DateTime $end)
Expand All @@ -92,9 +80,6 @@ public static function closed(\DateTime $start, \DateTime $end)
}

/**
* @param \DateTime $start
* @param \DateTime $end
*
* @return self
*/
public static function halfClosed(\DateTime $start, \DateTime $end)
Expand All @@ -103,9 +88,6 @@ public static function halfClosed(\DateTime $start, \DateTime $end)
}

/**
* @param \DateTime $start
* @param \DateTime $end
*
* @return self
*/
public static function halfOpen(\DateTime $start, \DateTime $end)
Expand All @@ -114,9 +96,6 @@ public static function halfOpen(\DateTime $start, \DateTime $end)
}

/**
* @param \DateTime $start
* @param \DateTime $end
*
* @return self
*/
public static function open(\DateTime $start, \DateTime $end)
Expand Down Expand Up @@ -167,8 +146,6 @@ public function equal(self $interval)
/**
* Does this interval contain the specified point.
*
* @param \DateTime $point
*
* @return bool
*/
public function contains(\DateTime $point)
Expand Down Expand Up @@ -263,8 +240,6 @@ public function union(self $interval)
/**
* The point is before the interval.
*
* @param \DateTime $point
*
* @return bool
*/
public function before(\DateTime $point)
Expand All @@ -275,8 +250,6 @@ public function before(\DateTime $point)
/**
* The point is after the interval.
*
* @param \DateTime $point
*
* @return bool
*/
public function after(\DateTime $point)
Expand All @@ -285,8 +258,6 @@ public function after(\DateTime $point)
}

/**
* @param \DateInterval|null $step
*
* @return \Generator
*/
public function iterate(\DateInterval $step = null)
Expand All @@ -307,8 +278,6 @@ public function iterate(\DateInterval $step = null)
}

/**
* @param \DateInterval|null $step
*
* @return \DatePeriod
*/
public function period(\DateInterval $step = null)
Expand Down Expand Up @@ -385,8 +354,6 @@ public function withEnd(IntervalPointInterface $end)
/**
* Returns a copy of this Interval with the interval type altered.
*
* @param IntervalType $type
*
* @return self
*/
public function withType(IntervalType $type)
Expand Down
3 changes: 0 additions & 3 deletions src/Date/DateIntervalPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ class DateIntervalPoint extends BaseIntervalPoint
*/
private $date;

/**
* @param \DateTime $date
*/
public function __construct(\DateTime $date)
{
$this->date = clone $date;
Expand Down
33 changes: 0 additions & 33 deletions src/DateTime/DateTimeInterval.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ class DateTimeInterval implements ComparableIntervalInterface
*/
private $end;

/**
* @param DateTimeIntervalPoint $start
* @param DateTimeIntervalPoint $end
* @param IntervalType $type
*/
private function __construct(DateTimeIntervalPoint $start, DateTimeIntervalPoint $end, IntervalType $type)
{
if ($start->gte($end)) {
Expand All @@ -69,10 +64,6 @@ private function __construct(DateTimeIntervalPoint $start, DateTimeIntervalPoint
}

/**
* @param \DateTime $start
* @param \DateTime $end
* @param IntervalType $type
*
* @return self
*/
public static function create(\DateTime $start, \DateTime $end, IntervalType $type)
Expand All @@ -81,9 +72,6 @@ public static function create(\DateTime $start, \DateTime $end, IntervalType $ty
}

/**
* @param \DateTime $start
* @param \DateTime $end
*
* @return self
*/
public static function closed(\DateTime $start, \DateTime $end)
Expand All @@ -92,9 +80,6 @@ public static function closed(\DateTime $start, \DateTime $end)
}

/**
* @param \DateTime $start
* @param \DateTime $end
*
* @return self
*/
public static function halfClosed(\DateTime $start, \DateTime $end)
Expand All @@ -103,9 +88,6 @@ public static function halfClosed(\DateTime $start, \DateTime $end)
}

/**
* @param \DateTime $start
* @param \DateTime $end
*
* @return self
*/
public static function halfOpen(\DateTime $start, \DateTime $end)
Expand All @@ -114,9 +96,6 @@ public static function halfOpen(\DateTime $start, \DateTime $end)
}

/**
* @param \DateTime $start
* @param \DateTime $end
*
* @return self
*/
public static function open(\DateTime $start, \DateTime $end)
Expand Down Expand Up @@ -167,8 +146,6 @@ public function equal(self $interval)
/**
* Does this interval contain the specified point.
*
* @param \DateTime $point
*
* @return bool
*/
public function contains(\DateTime $point)
Expand Down Expand Up @@ -263,8 +240,6 @@ public function union(self $interval)
/**
* The point is before the interval.
*
* @param \DateTime $point
*
* @return bool
*/
public function before(\DateTime $point)
Expand All @@ -275,8 +250,6 @@ public function before(\DateTime $point)
/**
* The point is after the interval.
*
* @param \DateTime $point
*
* @return bool
*/
public function after(\DateTime $point)
Expand All @@ -285,8 +258,6 @@ public function after(\DateTime $point)
}

/**
* @param \DateInterval|null $step
*
* @return \Generator
*/
public function iterate(\DateInterval $step = null)
Expand All @@ -307,8 +278,6 @@ public function iterate(\DateInterval $step = null)
}

/**
* @param \DateInterval|null $step
*
* @return \DatePeriod
*/
public function period(\DateInterval $step = null)
Expand Down Expand Up @@ -385,8 +354,6 @@ public function withEnd(IntervalPointInterface $end)
/**
* Returns a copy of this Interval with the interval type altered.
*
* @param IntervalType $type
*
* @return self
*/
public function withType(IntervalType $type)
Expand Down
3 changes: 0 additions & 3 deletions src/DateTime/DateTimeIntervalPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ class DateTimeIntervalPoint extends BaseIntervalPoint
*/
private $date;

/**
* @param \DateTime $date
*/
public function __construct(\DateTime $date)
{
$this->date = clone $date;
Expand Down
1 change: 0 additions & 1 deletion src/Exception/OutOfIntervalException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class OutOfIntervalException extends \OutOfRangeException
{
/**
* @param mixed $point
* @param IntervalInterface $interval
*
* @return self
*/
Expand Down
8 changes: 0 additions & 8 deletions src/IPv4/IPv4Interval.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ class IPv4Interval implements ComparableIntervalInterface
*/
private $end;

/**
* @param IPv4IntervalPoint $start
* @param IPv4IntervalPoint $end
* @param IntervalType $type
*/
private function __construct(IPv4IntervalPoint $start, IPv4IntervalPoint $end, IntervalType $type)
{
if ($start->gte($end)) {
Expand All @@ -72,7 +67,6 @@ private function __construct(IPv4IntervalPoint $start, IPv4IntervalPoint $end, I
/**
* @param string $start
* @param string $end
* @param IntervalType $type
*
* @return self
*/
Expand Down Expand Up @@ -368,8 +362,6 @@ public function withEnd(IntervalPointInterface $end)
/**
* Returns a copy of this Interval with the interval type altered.
*
* @param IntervalType $type
*
* @return self
*/
public function withType(IntervalType $type)
Expand Down
4 changes: 0 additions & 4 deletions src/IPv4Network/IPv4Network.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ class IPv4Network implements IntervalInterface
*/
private $comparator;

/**
* @param IPv4NetworkPoint $ip
* @param IPv4NetworkMask $mask
*/
private function __construct(IPv4NetworkPoint $ip, IPv4NetworkMask $mask)
{
$this->start = $ip;
Expand Down
Loading

0 comments on commit edf1a6f

Please sign in to comment.