Skip to content

Commit fc8705f

Browse files
committed
fix(comments): broken links in doc comments
1 parent 0ad50ca commit fc8705f

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

src/Utility/Hash.php

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Hash
4343
* @param mixed $default The return value when the path does not exist
4444
* @throws \InvalidArgumentException
4545
* @return mixed The value fetched from the array, or null.
46-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::get
46+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::get
4747
*/
4848
public static function get($data, $path, $default = null)
4949
{
@@ -118,7 +118,7 @@ public static function get($data, $path, $default = null)
118118
* @param string $path The path to extract.
119119
* @return array An array of the extracted values. Returns an empty array
120120
* if there are no matches.
121-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::extract
121+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::extract
122122
*/
123123
public static function extract($data, $path)
124124
{
@@ -289,7 +289,7 @@ protected static function _matches($data, $selector)
289289
* @param string $path The path to insert at.
290290
* @param array|null $values The values to insert.
291291
* @return array The data with $values inserted.
292-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::insert
292+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::insert
293293
*/
294294
public static function insert(array $data, $path, $values = null)
295295
{
@@ -380,7 +380,7 @@ protected static function _simpleOp($op, $data, $path, $values = null)
380380
* @param array $data The data to operate on
381381
* @param string $path A path expression to use to remove.
382382
* @return array The modified array.
383-
* @link http://book.cakephp.org/3.0/en/core--libraries/hash.html#Hash::remove
383+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::remove
384384
*/
385385
public static function remove(array $data, $path)
386386
{
@@ -438,7 +438,7 @@ public static function remove(array $data, $path)
438438
* @param string|null $valuePath A dot-separated string.
439439
* @param string|null $groupPath A dot-separated string.
440440
* @return array Combined array
441-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::combine
441+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::combine
442442
* @throws \RuntimeException When keys and values count is unequal.
443443
*/
444444
public static function combine(array $data, $keyPath, $valuePath = null, $groupPath = null)
@@ -511,7 +511,7 @@ public static function combine(array $data, $keyPath, $valuePath = null, $groupP
511511
* @param array $paths An array containing one or more Hash::extract()-style key paths
512512
* @param string $format Format string into which values will be inserted, see sprintf()
513513
* @return array|null An array of strings extracted from `$path` and formatted with `$format`
514-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::format
514+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::format
515515
* @see sprintf()
516516
* @see Hash::extract()
517517
*/
@@ -550,7 +550,7 @@ public static function format(array $data, array $paths, $format)
550550
* @param array $data The data to search through.
551551
* @param array $needle The values to file in $data
552552
* @return bool true If $data contains $needle, false otherwise
553-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::contains
553+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::contains
554554
*/
555555
public static function contains(array $data, array $needle)
556556
{
@@ -593,7 +593,7 @@ public static function contains(array $data, array $needle)
593593
* @param string $path The path to check for.
594594
* @return bool Existence of path.
595595
* @see Hash::extract()
596-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::check
596+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::check
597597
*/
598598
public static function check(array $data, $path)
599599
{
@@ -611,7 +611,7 @@ public static function check(array $data, $path)
611611
* @param callable $callback A function to filter the data with. Defaults to
612612
* `static::_filter()` Which strips out all non-zero empty values.
613613
* @return array Filtered array
614-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::filter
614+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::filter
615615
*/
616616
public static function filter(array $data, $callback = ['self', '_filter'])
617617
{
@@ -642,7 +642,7 @@ protected static function _filter($var)
642642
* @param array $data Array to flatten
643643
* @param string $separator String used to separate array key elements in a path, defaults to '.'
644644
* @return array
645-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::flatten
645+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::flatten
646646
*/
647647
public static function flatten(array $data, $separator = '.')
648648
{
@@ -685,7 +685,7 @@ public static function flatten(array $data, $separator = '.')
685685
* @param array $data Flattened array
686686
* @param string $separator The delimiter used
687687
* @return array
688-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::expand
688+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::expand
689689
*/
690690
public static function expand(array $data, $separator = '.')
691691
{
@@ -721,7 +721,7 @@ public static function expand(array $data, $separator = '.')
721721
* @param array $data Array to be merged
722722
* @param mixed $merge Array to merge with. The argument and all trailing arguments will be array cast when merged
723723
* @return array Merged array
724-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::merge
724+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::merge
725725
*/
726726
public static function merge(array $data, $merge)
727727
{
@@ -767,7 +767,7 @@ protected static function _merge($stack, &$return)
767767
*
768768
* @param array $data The array to check.
769769
* @return bool true if values are numeric, false otherwise
770-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::numeric
770+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::numeric
771771
*/
772772
public static function numeric(array $data)
773773
{
@@ -786,7 +786,7 @@ public static function numeric(array $data)
786786
*
787787
* @param array $data Array to count dimensions on
788788
* @return int The number of dimensions in $data
789-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::dimensions
789+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::dimensions
790790
*/
791791
public static function dimensions(array $data)
792792
{
@@ -812,7 +812,7 @@ public static function dimensions(array $data)
812812
*
813813
* @param array $data Array to count dimensions on
814814
* @return int The maximum number of dimensions in $data
815-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::maxDimensions
815+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::maxDimensions
816816
*/
817817
public static function maxDimensions(array $data)
818818
{
@@ -837,7 +837,7 @@ public static function maxDimensions(array $data)
837837
* @param string $path The path to extract for mapping over.
838838
* @param callable $function The function to call on each extracted value.
839839
* @return array An array of the modified values.
840-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::map
840+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::map
841841
*/
842842
public static function map(array $data, $path, $function)
843843
{
@@ -852,7 +852,7 @@ public static function map(array $data, $path, $function)
852852
* @param string $path The path to extract from $data.
853853
* @param callable $function The function to call on each extracted value.
854854
* @return mixed The reduced value.
855-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::reduce
855+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::reduce
856856
*/
857857
public static function reduce(array $data, $path, $function)
858858
{
@@ -883,6 +883,7 @@ public static function reduce(array $data, $path, $function)
883883
* @param string $path The path to extract from $data.
884884
* @param callable $function The function to call on each extracted value.
885885
* @return mixed The results of the applied method.
886+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::apply
886887
*/
887888
public static function apply(array $data, $path, $function)
888889
{
@@ -920,7 +921,7 @@ public static function apply(array $data, $path, $function)
920921
* @param string $dir See directions above. Defaults to 'asc'.
921922
* @param array|string $type See direction types above. Defaults to 'regular'.
922923
* @return array Sorted array of data
923-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::sort
924+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::sort
924925
*/
925926
public static function sort(array $data, $path, $dir = 'asc', $type = 'regular')
926927
{
@@ -1031,7 +1032,7 @@ protected static function _squash(array $data, $key = null)
10311032
* @param array $compare Second value
10321033
* @return array Returns the key => value pairs that are not common in $data and $compare
10331034
* The expression for this function is ($data - $compare) + ($compare - ($data - $compare))
1034-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::diff
1035+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::diff
10351036
*/
10361037
public static function diff(array $data, array $compare)
10371038
{
@@ -1058,7 +1059,7 @@ public static function diff(array $data, array $compare)
10581059
* @param array $data The data to append onto.
10591060
* @param array $compare The data to compare and append onto.
10601061
* @return array The merged array.
1061-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::mergeDiff
1062+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::mergeDiff
10621063
*/
10631064
public static function mergeDiff(array $data, array $compare)
10641065
{
@@ -1084,7 +1085,7 @@ public static function mergeDiff(array $data, array $compare)
10841085
* @param array $data List to normalize
10851086
* @param bool $assoc If true, $data will be converted to an associative array.
10861087
* @return array
1087-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::normalize
1088+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::normalize
10881089
*/
10891090
public static function normalize(array $data, $assoc = true)
10901091
{
@@ -1131,7 +1132,7 @@ public static function normalize(array $data, $assoc = true)
11311132
* @return array of results, nested
11321133
* @see Hash::extract()
11331134
* @throws \InvalidArgumentException When providing invalid data.
1134-
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::nest
1135+
* @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Cake\Utility\Hash::nest
11351136
*/
11361137
public static function nest(array $data, array $options = [])
11371138
{

0 commit comments

Comments
 (0)