Skip to content

Commit

Permalink
Fix PHPDoc alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Dec 12, 2019
1 parent d290f04 commit 0548d58
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 78 deletions.
76 changes: 38 additions & 38 deletions src/Carbon/CarbonInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ public static function __callStatic($method, $parameters);
* Please see the testing aids section (specifically static::setTestNow())
* for more on the possibility of this constructor returning a test instance.
*
* @param string|null $time
* @param string|null $time
* @param DateTimeZone|string|null $tz
*/
public function __construct($time = null, $tz = null);
Expand Down Expand Up @@ -938,12 +938,12 @@ public function copy();
* If $hour is not null then the default values for $minute and $second
* will be 0.
*
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param DateTimeZone|string|null $tz
*
* @throws \InvalidArgumentException
Expand All @@ -955,9 +955,9 @@ public static function create($year = 0, $month = 1, $day = 1, $hour = 0, $minut
/**
* Create a Carbon instance from just a date. The time portion is set to now.
*
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param DateTimeZone|string|null $tz
*
* @throws \InvalidArgumentException
Expand All @@ -969,8 +969,8 @@ public static function createFromDate($year = null, $month = null, $day = null,
/**
* Create a Carbon instance from a specific format.
*
* @param string $format Datetime format
* @param string $time
* @param string $format Datetime format
* @param string $time
* @param DateTimeZone|string|false|null $tz
*
* @throws InvalidArgumentException
Expand All @@ -984,7 +984,7 @@ public static function createFromFormat($format, $time, $tz = null);
*
* @param string $format Datetime format
* @param string $time
* @param DateTimeZone|string|false|null $tz optional timezone
* @param DateTimeZone|string|false|null $tz optional timezone
* @param string|null $locale locale to be used for LTS, LT, LL, LLL, etc. macro-formats (en by fault, unneeded if no such macro-format in use)
* @param \Symfony\Component\Translation\TranslatorInterface $translator optional custom translator to use for macro-formats
*
Expand All @@ -997,9 +997,9 @@ public static function createFromIsoFormat($format, $time, $tz = null, $locale =
/**
* Create a Carbon instance from a specific format and a string in a given language.
*
* @param string $format Datetime format
* @param string $locale
* @param string $time
* @param string $format Datetime format
* @param string $locale
* @param string $time
* @param DateTimeZone|string|false|null $tz
*
* @throws InvalidArgumentException
Expand All @@ -1011,9 +1011,9 @@ public static function createFromLocaleFormat($format, $locale, $time, $tz = nul
/**
* Create a Carbon instance from a specific ISO format and a string in a given language.
*
* @param string $format Datetime ISO format
* @param string $locale
* @param string $time
* @param string $format Datetime ISO format
* @param string $locale
* @param string $time
* @param DateTimeZone|string|false|null $tz
*
* @throws InvalidArgumentException
Expand All @@ -1025,9 +1025,9 @@ public static function createFromLocaleIsoFormat($format, $locale, $time, $tz =
/**
* Create a Carbon instance from just a time. The date portion is set to today.
*
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param DateTimeZone|string|null $tz
*
* @throws \InvalidArgumentException
Expand All @@ -1039,7 +1039,7 @@ public static function createFromTime($hour = 0, $minute = 0, $second = 0, $tz =
/**
* Create a Carbon instance from a time string. The date portion is set to today.
*
* @param string $time
* @param string $time
* @param DateTimeZone|string|null $tz
*
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -1080,9 +1080,9 @@ public static function createFromTimestampUTC($timestamp);
/**
* Create a Carbon instance from just a date. The time portion is set to midnight.
*
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param DateTimeZone|string|null $tz
*
* @return static
Expand All @@ -1104,12 +1104,12 @@ public static function createMidnightDate($year = null, $month = null, $day = nu
* If one of the set values is not valid, an \InvalidArgumentException
* will be thrown.
*
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param DateTimeZone|string|null $tz
*
* @throws \Carbon\Exceptions\InvalidDateException|\InvalidArgumentException
Expand Down Expand Up @@ -3232,7 +3232,7 @@ public function ordinal(string $key, string $period = null): string;
* as it allows you to do Carbon::parse('Monday next week')->fn() rather
* than (new Carbon('Monday next week'))->fn().
*
* @param string|null $time
* @param string|null $time
* @param DateTimeZone|string|null $tz
*
* @return static
Expand All @@ -3242,8 +3242,8 @@ public static function parse($time = null, $tz = null);
/**
* Create a carbon instance from a localized string (in French, Japanese, Arabic, etc.).
*
* @param string $time
* @param string $locale
* @param string $time
* @param string $locale
* @param DateTimeZone|string|null $tz
*
* @return static
Expand Down Expand Up @@ -3299,8 +3299,8 @@ public function range($end = null, $interval = null, $unit = null);
/**
* Create a Carbon instance from a specific format.
*
* @param string $format Datetime format
* @param string $time
* @param string $format Datetime format
* @param string $time
* @param DateTimeZone|string|false|null $tz
*
* @throws InvalidArgumentException
Expand All @@ -3325,7 +3325,7 @@ public function rawFormat($format);
* as it allows you to do Carbon::parse('Monday next week')->fn() rather
* than (new Carbon('Monday next week'))->fn().
*
* @param string|null $time
* @param string|null $time
* @param DateTimeZone|string|null $tz
*
* @return static
Expand Down
80 changes: 40 additions & 40 deletions src/Carbon/Traits/Creator.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ trait Creator
* Please see the testing aids section (specifically static::setTestNow())
* for more on the possibility of this constructor returning a test instance.
*
* @param string|null $time
* @param string|null $time
* @param DateTimeZone|string|null $tz
*/
public function __construct($time = null, $tz = null)
Expand Down Expand Up @@ -112,7 +112,7 @@ public static function instance($date)
* as it allows you to do Carbon::parse('Monday next week')->fn() rather
* than (new Carbon('Monday next week'))->fn().
*
* @param string|null $time
* @param string|null $time
* @param DateTimeZone|string|null $tz
*
* @return static
Expand Down Expand Up @@ -141,7 +141,7 @@ public static function rawParse($time = null, $tz = null)
* as it allows you to do Carbon::parse('Monday next week')->fn() rather
* than (new Carbon('Monday next week'))->fn().
*
* @param string|null $time
* @param string|null $time
* @param DateTimeZone|string|null $tz
*
* @return static
Expand All @@ -164,8 +164,8 @@ public static function parse($time = null, $tz = null)
/**
* Create a carbon instance from a localized string (in French, Japanese, Arabic, etc.).
*
* @param string $time
* @param string $locale
* @param string $time
* @param string $locale
* @param DateTimeZone|string|null $tz
*
* @return static
Expand Down Expand Up @@ -289,12 +289,12 @@ private static function createNowInstance($tz)
* If $hour is not null then the default values for $minute and $second
* will be 0.
*
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param DateTimeZone|string|null $tz
*
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -374,12 +374,12 @@ public static function create($year = 0, $month = 1, $day = 1, $hour = 0, $minut
* If one of the set values is not valid, an \InvalidArgumentException
* will be thrown.
*
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param DateTimeZone|string|null $tz
*
* @throws \Carbon\Exceptions\InvalidDateException|\InvalidArgumentException
Expand Down Expand Up @@ -418,9 +418,9 @@ public static function createSafe($year = null, $month = null, $day = null, $hou
/**
* Create a Carbon instance from just a date. The time portion is set to now.
*
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param DateTimeZone|string|null $tz
*
* @throws \InvalidArgumentException
Expand All @@ -435,9 +435,9 @@ public static function createFromDate($year = null, $month = null, $day = null,
/**
* Create a Carbon instance from just a date. The time portion is set to midnight.
*
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param int|null $year
* @param int|null $month
* @param int|null $day
* @param DateTimeZone|string|null $tz
*
* @return static
Expand All @@ -450,9 +450,9 @@ public static function createMidnightDate($year = null, $month = null, $day = nu
/**
* Create a Carbon instance from just a time. The date portion is set to today.
*
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param int|null $hour
* @param int|null $minute
* @param int|null $second
* @param DateTimeZone|string|null $tz
*
* @throws \InvalidArgumentException
Expand All @@ -467,7 +467,7 @@ public static function createFromTime($hour = 0, $minute = 0, $second = 0, $tz =
/**
* Create a Carbon instance from a time string. The date portion is set to today.
*
* @param string $time
* @param string $time
* @param DateTimeZone|string|null $tz
*
* @throws \InvalidArgumentException
Expand All @@ -480,8 +480,8 @@ public static function createFromTimeString($time, $tz = null)
}

/**
* @param string $format Datetime format
* @param string $time
* @param string $format Datetime format
* @param string $time
* @param DateTimeZone|string|false|null $originalTz
*
* @return \DateTimeInterface|false
Expand Down Expand Up @@ -515,8 +515,8 @@ private static function createFromFormatAndTimezone($format, $time, $originalTz)
/**
* Create a Carbon instance from a specific format.
*
* @param string $format Datetime format
* @param string $time
* @param string $format Datetime format
* @param string $time
* @param DateTimeZone|string|false|null $tz
*
* @throws InvalidArgumentException
Expand Down Expand Up @@ -582,8 +582,8 @@ public static function rawCreateFromFormat($format, $time, $tz = null)
/**
* Create a Carbon instance from a specific format.
*
* @param string $format Datetime format
* @param string $time
* @param string $format Datetime format
* @param string $time
* @param DateTimeZone|string|false|null $tz
*
* @throws InvalidArgumentException
Expand All @@ -610,7 +610,7 @@ public static function createFromFormat($format, $time, $tz = null)
*
* @param string $format Datetime format
* @param string $time
* @param DateTimeZone|string|false|null $tz optional timezone
* @param DateTimeZone|string|false|null $tz optional timezone
* @param string|null $locale locale to be used for LTS, LT, LL, LLL, etc. macro-formats (en by fault, unneeded if no such macro-format in use)
* @param \Symfony\Component\Translation\TranslatorInterface $translator optional custom translator to use for macro-formats
*
Expand Down Expand Up @@ -750,9 +750,9 @@ function ($code) {
/**
* Create a Carbon instance from a specific format and a string in a given language.
*
* @param string $format Datetime format
* @param string $locale
* @param string $time
* @param string $format Datetime format
* @param string $locale
* @param string $time
* @param DateTimeZone|string|false|null $tz
*
* @throws InvalidArgumentException
Expand All @@ -767,9 +767,9 @@ public static function createFromLocaleFormat($format, $locale, $time, $tz = nul
/**
* Create a Carbon instance from a specific ISO format and a string in a given language.
*
* @param string $format Datetime ISO format
* @param string $locale
* @param string $time
* @param string $format Datetime ISO format
* @param string $locale
* @param string $time
* @param DateTimeZone|string|false|null $tz
*
* @throws InvalidArgumentException
Expand Down

0 comments on commit 0548d58

Please sign in to comment.