Skip to content

Commit a02329f

Browse files
Docblock fixes
1 parent 48884bc commit a02329f

19 files changed

+176
-176
lines changed

Collator/Collator.php

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class Collator
7272
*
7373
* @param string $locale The locale code. The only currently supported locale is "en".
7474
*
75-
* @throws MethodArgumentValueNotImplementedException When $locale different than "en" is passed
75+
* @throws MethodArgumentValueNotImplementedException When $locale different than "en" is passed
7676
*/
7777
public function __construct($locale)
7878
{
@@ -88,7 +88,7 @@ public function __construct($locale)
8888
*
8989
* @return Collator
9090
*
91-
* @throws MethodArgumentValueNotImplementedException When $locale different than "en" is passed
91+
* @throws MethodArgumentValueNotImplementedException When $locale different than "en" is passed
9292
*/
9393
public static function create($locale)
9494
{
@@ -98,13 +98,13 @@ public static function create($locale)
9898
/**
9999
* Sort array maintaining index association
100100
*
101-
* @param array &$array Input array
102-
* @param int $sortFlag Flags for sorting, can be one of the following:
103-
* Collator::SORT_REGULAR - compare items normally (don't change types)
104-
* Collator::SORT_NUMERIC - compare items numerically
105-
* Collator::SORT_STRING - compare items as strings
101+
* @param array &$array Input array
102+
* @param int $sortFlag Flags for sorting, can be one of the following:
103+
* Collator::SORT_REGULAR - compare items normally (don't change types)
104+
* Collator::SORT_NUMERIC - compare items numerically
105+
* Collator::SORT_STRING - compare items as strings
106106
*
107-
* @return bool True on success or false on failure
107+
* @return bool True on success or false on failure
108108
*/
109109
public function asort(&$array, $sortFlag = self::SORT_REGULAR)
110110
{
@@ -125,10 +125,10 @@ public function asort(&$array, $sortFlag = self::SORT_REGULAR)
125125
* @param string $str1 The first string to compare
126126
* @param string $str2 The second string to compare
127127
*
128-
* @return bool|int Return the comparison result or false on failure:
129-
* 1 if $str1 is greater than $str2
130-
* 0 if $str1 is equal than $str2
131-
* -1 if $str1 is less than $str2
128+
* @return bool|int Return the comparison result or false on failure:
129+
* 1 if $str1 is greater than $str2
130+
* 0 if $str1 is equal than $str2
131+
* -1 if $str1 is less than $str2
132132
*
133133
* @see http://www.php.net/manual/en/collator.compare.php
134134
*
@@ -144,7 +144,7 @@ public function compare($str1, $str2)
144144
*
145145
* @param int $attr An attribute specifier, one of the attribute constants
146146
*
147-
* @return bool|int The attribute value on success or false on error
147+
* @return bool|int The attribute value on success or false on error
148148
*
149149
* @see http://www.php.net/manual/en/collator.getattribute.php
150150
*
@@ -207,7 +207,7 @@ public function getSortKey($string)
207207
/**
208208
* Not supported. Get current collator's strength
209209
*
210-
* @return bool|int The current collator's strength or false on failure
210+
* @return bool|int The current collator's strength or false on failure
211211
*
212212
* @see http://www.php.net/manual/en/collator.getstrength.php
213213
*
@@ -224,7 +224,7 @@ public function getStrength()
224224
* @param int $attr An attribute specifier, one of the attribute constants
225225
* @param int $val The attribute value, one of the attribute value constants
226226
*
227-
* @return bool True on success or false on failure
227+
* @return bool True on success or false on failure
228228
*
229229
* @see http://www.php.net/manual/en/collator.setattribute.php
230230
*
@@ -239,14 +239,14 @@ public function setAttribute($attr, $val)
239239
* Not supported. Set the collator's strength
240240
*
241241
* @param int $strength Strength to set, possible values:
242-
* Collator::PRIMARY
243-
* Collator::SECONDARY
244-
* Collator::TERTIARY
245-
* Collator::QUATERNARY
246-
* Collator::IDENTICAL
247-
* Collator::DEFAULT
242+
* Collator::PRIMARY
243+
* Collator::SECONDARY
244+
* Collator::TERTIARY
245+
* Collator::QUATERNARY
246+
* Collator::IDENTICAL
247+
* Collator::DEFAULT
248248
*
249-
* @return bool True on success or false on failure
249+
* @return bool True on success or false on failure
250250
*
251251
* @see http://www.php.net/manual/en/collator.setstrength.php
252252
*
@@ -260,9 +260,9 @@ public function setStrength($strength)
260260
/**
261261
* Not supported. Sort array using specified collator and sort keys
262262
*
263-
* @param array &$arr Array of strings to sort
263+
* @param array &$arr Array of strings to sort
264264
*
265-
* @return bool True on success or false on failure
265+
* @return bool True on success or false on failure
266266
*
267267
* @see http://www.php.net/manual/en/collator.sortwithsortkeys.php
268268
*
@@ -276,13 +276,13 @@ public function sortWithSortKeys(&$arr)
276276
/**
277277
* Not supported. Sort array using specified collator
278278
*
279-
* @param array &$arr Array of string to sort
280-
* @param int $sortFlag Optional sorting type, one of the following:
281-
* Collator::SORT_REGULAR
282-
* Collator::SORT_NUMERIC
283-
* Collator::SORT_STRING
279+
* @param array &$arr Array of string to sort
280+
* @param int $sortFlag Optional sorting type, one of the following:
281+
* Collator::SORT_REGULAR
282+
* Collator::SORT_NUMERIC
283+
* Collator::SORT_STRING
284284
*
285-
* @return bool True on success or false on failure
285+
* @return bool True on success or false on failure
286286
*
287287
* @see http://www.php.net/manual/en/collator.sort.php
288288
*

Data/Bundle/Writer/TextBundleWriter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ private function writeIntVector($file, array $value, $indentation)
151151
/**
152152
* Writes a "string" node.
153153
*
154-
* @param resource $file The file handle to write to.
155-
* @param string $value The value of the node.
154+
* @param resource $file The file handle to write to.
155+
* @param string $value The value of the node.
156156
* @param bool $requireBraces Whether to require braces to be printed
157157
* around the value.
158158
*

DateFormatter/DateFormat/FullTransformer.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function getTransformers()
8484
*
8585
* @param \DateTime $dateTime A DateTime object to be used to generate the formatted value
8686
*
87-
* @return string The formatted value
87+
* @return string The formatted value
8888
*/
8989
public function format(\DateTime $dateTime)
9090
{
@@ -103,9 +103,9 @@ public function format(\DateTime $dateTime)
103103
* @param string $dateChars The date characters to be replaced with a formatted ICU value
104104
* @param \DateTime $dateTime A DateTime object to be used to generate the formatted value
105105
*
106-
* @return string The formatted value
106+
* @return string The formatted value
107107
*
108-
* @throws NotImplementedException When it encounters a not implemented date character
108+
* @throws NotImplementedException When it encounters a not implemented date character
109109
*/
110110
public function formatReplace($dateChars, $dateTime)
111111
{
@@ -131,11 +131,11 @@ public function formatReplace($dateChars, $dateTime)
131131
* Parse a pattern based string to a timestamp value
132132
*
133133
* @param \DateTime $dateTime A configured DateTime object to use to perform the date calculation
134-
* @param string $value String to convert to a time value
134+
* @param string $value String to convert to a time value
135135
*
136-
* @return int The corresponding Unix timestamp
136+
* @return int The corresponding Unix timestamp
137137
*
138-
* @throws \InvalidArgumentException When the value can not be matched with pattern
138+
* @throws \InvalidArgumentException When the value can not be matched with pattern
139139
*/
140140
public function parse(\DateTime $dateTime, $value)
141141
{
@@ -171,8 +171,8 @@ public function parse(\DateTime $dateTime, $value)
171171
*
172172
* @param string $pattern The pattern to create the reverse matching regular expression
173173
*
174-
* @return string The reverse matching regular expression with named captures being formed by the
175-
* transformer index in the $transformer array
174+
* @return string The reverse matching regular expression with named captures being formed by the
175+
* transformer index in the $transformer array
176176
*/
177177
public function getReverseMatchingRegExp($pattern)
178178
{
@@ -210,7 +210,7 @@ public function getReverseMatchingRegExp($pattern)
210210
*
211211
* @param string $quoteMatch The string to check
212212
*
213-
* @return bool true if matches, false otherwise
213+
* @return bool true if matches, false otherwise
214214
*/
215215
public function isQuoteMatch($quoteMatch)
216216
{
@@ -222,7 +222,7 @@ public function isQuoteMatch($quoteMatch)
222222
*
223223
* @param string $quoteMatch The string to replace the quotes
224224
*
225-
* @return string A string with the single quotes replaced
225+
* @return string A string with the single quotes replaced
226226
*/
227227
public function replaceQuoteMatch($quoteMatch)
228228
{
@@ -238,7 +238,7 @@ public function replaceQuoteMatch($quoteMatch)
238238
*
239239
* @param string $specialChars A string of chars to build the regular expression
240240
*
241-
* @return string The chars match regular expression
241+
* @return string The chars match regular expression
242242
*/
243243
protected function buildCharsMatch($specialChars)
244244
{
@@ -284,7 +284,7 @@ protected function normalizeArray(array $data)
284284
* @param \DateTime $dateTime The DateTime object to be used to calculate the timestamp
285285
* @param array $options An array with the matched values to be used to calculate the timestamp
286286
*
287-
* @return bool|int The calculated timestamp or false if matched date is invalid
287+
* @return bool|int The calculated timestamp or false if matched date is invalid
288288
*/
289289
protected function calculateUnixTimestamp(\DateTime $dateTime, array $options)
290290
{

DateFormatter/DateFormat/HourTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abstract class HourTransformer extends Transformer
2424
* @param int $hour The hour value
2525
* @param string $marker An optional AM/PM marker
2626
*
27-
* @return int The normalized hour value
27+
* @return int The normalized hour value
2828
*/
2929
abstract public function normalizeHour($hour, $marker = null);
3030
}

DateFormatter/DateFormat/TimeZoneTransformer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TimeZoneTransformer extends Transformer
2323
/**
2424
* {@inheritdoc}
2525
*
26-
* @throws NotImplementedException When time zone is different than UTC or GMT (Etc/GMT)
26+
* @throws NotImplementedException When time zone is different than UTC or GMT (Etc/GMT)
2727
*/
2828
public function format(\DateTime $dateTime, $length)
2929
{
@@ -69,13 +69,13 @@ public function extractDateOptions($matched, $length)
6969
*
7070
* @param string $formattedTimeZone A GMT timezone string (GMT-03:00, e.g.)
7171
*
72-
* @return string A timezone identifier
72+
* @return string A timezone identifier
7373
*
7474
* @see http://php.net/manual/en/timezones.others.php
7575
* @see http://www.twinsun.com/tz/tz-link.htm
7676
*
7777
* @throws NotImplementedException When the GMT time zone have minutes offset different than zero
78-
* @throws \InvalidArgumentException When the value can not be matched with pattern
78+
* @throws \InvalidArgumentException When the value can not be matched with pattern
7979
*/
8080
public static function getEtcTimeZoneId($formattedTimeZone)
8181
{

DateFormatter/DateFormat/Transformer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ abstract class Transformer
2525
* @param \DateTime $dateTime A DateTime object to be used to generate the formatted value
2626
* @param int $length The formatted value string length
2727
*
28-
* @return string The formatted value
28+
* @return string The formatted value
2929
*/
3030
abstract public function format(\DateTime $dateTime, $length);
3131

@@ -34,7 +34,7 @@ abstract public function format(\DateTime $dateTime, $length);
3434
*
3535
* @param int $length The length of the value to be reverse matched
3636
*
37-
* @return string The reverse matching regular expression
37+
* @return string The reverse matching regular expression
3838
*/
3939
abstract public function getReverseMatchingRegExp($length);
4040

@@ -45,7 +45,7 @@ abstract public function getReverseMatchingRegExp($length);
4545
* @param string $matched The matched value
4646
* @param int $length The length of the Transformer pattern string
4747
*
48-
* @return array An associative array
48+
* @return array An associative array
4949
*/
5050
abstract public function extractDateOptions($matched, $length);
5151

@@ -55,7 +55,7 @@ abstract public function extractDateOptions($matched, $length);
5555
* @param string $value The string to be padded
5656
* @param int $length The length to pad
5757
*
58-
* @return string The padded string
58+
* @return string The padded string
5959
*/
6060
protected function padLeft($value, $length)
6161
{

0 commit comments

Comments
 (0)