diff --git a/src/ArrayAccessTrait.php b/src/ArrayAccessTrait.php index d39d34c..21c1c68 100644 --- a/src/ArrayAccessTrait.php +++ b/src/ArrayAccessTrait.php @@ -3,7 +3,7 @@ namespace Yiisoft\Arrays; /** - * ArrayAccessTrait provides the implementation for [[\IteratorAggregate]], [[\ArrayAccess]] and [[\Countable]]. + * ArrayAccessTrait provides the implementation for {@see \IteratorAggregate}, {@see \ArrayAccess} and {@see \Countable}. * * Note that ArrayAccessTrait requires the class using it contain a property named `data` which should be an array. * The data will be exposed by ArrayAccessTrait to support accessing the class object like an array. @@ -14,7 +14,7 @@ trait ArrayAccessTrait { /** * Returns an iterator for traversing the data. - * This method is required by the SPL interface [[\IteratorAggregate]]. + * This method is required by the SPL interface {@see \IteratorAggregate}. * It will be implicitly called when you use `foreach` to traverse the collection. * @return \ArrayIterator an iterator for traversing the cookies in the collection. */ @@ -34,7 +34,7 @@ public function count(): int } /** - * This method is required by the interface [[\ArrayAccess]]. + * This method is required by the interface {@see \ArrayAccess}. * @param int $offset the offset to check on * @return bool */ @@ -44,7 +44,7 @@ public function offsetExists(int $offset): bool } /** - * This method is required by the interface [[\ArrayAccess]]. + * This method is required by the interface {@see \ArrayAccess}. * @param int $offset the offset to retrieve element. * @return mixed the element at the offset, null if no element is found at the offset */ @@ -54,7 +54,7 @@ public function offsetGet(int $offset) } /** - * This method is required by the interface [[\ArrayAccess]]. + * This method is required by the interface {@see \ArrayAccess}. * @param int $offset the offset to set element * @param mixed $item the element value */ @@ -64,7 +64,7 @@ public function offsetSet(int $offset, $item): void } /** - * This method is required by the interface [[\ArrayAccess]]. + * This method is required by the interface {@see \ArrayAccess}. * @param int $offset the offset to unset element */ public function offsetUnset(int $offset): void diff --git a/src/ArrayHelper.php b/src/ArrayHelper.php index 7c45b07..af89e82 100644 --- a/src/ArrayHelper.php +++ b/src/ArrayHelper.php @@ -191,7 +191,9 @@ public static function getValue($array, $key, $default = null) } if (!is_array($array) && !is_object($array)) { - throw new \InvalidArgumentException('getValue() can not get value from ' . gettype($array) . '. Only array and object are supported.'); + throw new \InvalidArgumentException( + 'getValue() can not get value from ' . gettype($array) . '. Only array and object are supported.' + ); } if (is_array($key)) { diff --git a/src/ArraySorter.php b/src/ArraySorter.php index 691866d..46b218d 100644 --- a/src/ArraySorter.php +++ b/src/ArraySorter.php @@ -1,11 +1,8 @@