@@ -43,7 +43,7 @@ class Hash
43
43
* @param mixed $default The return value when the path does not exist
44
44
* @throws \InvalidArgumentException
45
45
* @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
47
47
*/
48
48
public static function get ($ data , $ path , $ default = null )
49
49
{
@@ -118,7 +118,7 @@ public static function get($data, $path, $default = null)
118
118
* @param string $path The path to extract.
119
119
* @return array An array of the extracted values. Returns an empty array
120
120
* 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
122
122
*/
123
123
public static function extract ($ data , $ path )
124
124
{
@@ -289,7 +289,7 @@ protected static function _matches($data, $selector)
289
289
* @param string $path The path to insert at.
290
290
* @param array|null $values The values to insert.
291
291
* @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
293
293
*/
294
294
public static function insert (array $ data , $ path , $ values = null )
295
295
{
@@ -380,7 +380,7 @@ protected static function _simpleOp($op, $data, $path, $values = null)
380
380
* @param array $data The data to operate on
381
381
* @param string $path A path expression to use to remove.
382
382
* @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
384
384
*/
385
385
public static function remove (array $ data , $ path )
386
386
{
@@ -438,7 +438,7 @@ public static function remove(array $data, $path)
438
438
* @param string|null $valuePath A dot-separated string.
439
439
* @param string|null $groupPath A dot-separated string.
440
440
* @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
442
442
* @throws \RuntimeException When keys and values count is unequal.
443
443
*/
444
444
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
511
511
* @param array $paths An array containing one or more Hash::extract()-style key paths
512
512
* @param string $format Format string into which values will be inserted, see sprintf()
513
513
* @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
515
515
* @see sprintf()
516
516
* @see Hash::extract()
517
517
*/
@@ -550,7 +550,7 @@ public static function format(array $data, array $paths, $format)
550
550
* @param array $data The data to search through.
551
551
* @param array $needle The values to file in $data
552
552
* @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
554
554
*/
555
555
public static function contains (array $ data , array $ needle )
556
556
{
@@ -593,7 +593,7 @@ public static function contains(array $data, array $needle)
593
593
* @param string $path The path to check for.
594
594
* @return bool Existence of path.
595
595
* @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
597
597
*/
598
598
public static function check (array $ data , $ path )
599
599
{
@@ -611,7 +611,7 @@ public static function check(array $data, $path)
611
611
* @param callable $callback A function to filter the data with. Defaults to
612
612
* `static::_filter()` Which strips out all non-zero empty values.
613
613
* @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
615
615
*/
616
616
public static function filter (array $ data , $ callback = ['self ' , '_filter ' ])
617
617
{
@@ -642,7 +642,7 @@ protected static function _filter($var)
642
642
* @param array $data Array to flatten
643
643
* @param string $separator String used to separate array key elements in a path, defaults to '.'
644
644
* @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
646
646
*/
647
647
public static function flatten (array $ data , $ separator = '. ' )
648
648
{
@@ -685,7 +685,7 @@ public static function flatten(array $data, $separator = '.')
685
685
* @param array $data Flattened array
686
686
* @param string $separator The delimiter used
687
687
* @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
689
689
*/
690
690
public static function expand (array $ data , $ separator = '. ' )
691
691
{
@@ -721,7 +721,7 @@ public static function expand(array $data, $separator = '.')
721
721
* @param array $data Array to be merged
722
722
* @param mixed $merge Array to merge with. The argument and all trailing arguments will be array cast when merged
723
723
* @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
725
725
*/
726
726
public static function merge (array $ data , $ merge )
727
727
{
@@ -767,7 +767,7 @@ protected static function _merge($stack, &$return)
767
767
*
768
768
* @param array $data The array to check.
769
769
* @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
771
771
*/
772
772
public static function numeric (array $ data )
773
773
{
@@ -786,7 +786,7 @@ public static function numeric(array $data)
786
786
*
787
787
* @param array $data Array to count dimensions on
788
788
* @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
790
790
*/
791
791
public static function dimensions (array $ data )
792
792
{
@@ -812,7 +812,7 @@ public static function dimensions(array $data)
812
812
*
813
813
* @param array $data Array to count dimensions on
814
814
* @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
816
816
*/
817
817
public static function maxDimensions (array $ data )
818
818
{
@@ -837,7 +837,7 @@ public static function maxDimensions(array $data)
837
837
* @param string $path The path to extract for mapping over.
838
838
* @param callable $function The function to call on each extracted value.
839
839
* @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
841
841
*/
842
842
public static function map (array $ data , $ path , $ function )
843
843
{
@@ -852,7 +852,7 @@ public static function map(array $data, $path, $function)
852
852
* @param string $path The path to extract from $data.
853
853
* @param callable $function The function to call on each extracted value.
854
854
* @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
856
856
*/
857
857
public static function reduce (array $ data , $ path , $ function )
858
858
{
@@ -883,6 +883,7 @@ public static function reduce(array $data, $path, $function)
883
883
* @param string $path The path to extract from $data.
884
884
* @param callable $function The function to call on each extracted value.
885
885
* @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
886
887
*/
887
888
public static function apply (array $ data , $ path , $ function )
888
889
{
@@ -920,7 +921,7 @@ public static function apply(array $data, $path, $function)
920
921
* @param string $dir See directions above. Defaults to 'asc'.
921
922
* @param array|string $type See direction types above. Defaults to 'regular'.
922
923
* @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
924
925
*/
925
926
public static function sort (array $ data , $ path , $ dir = 'asc ' , $ type = 'regular ' )
926
927
{
@@ -1031,7 +1032,7 @@ protected static function _squash(array $data, $key = null)
1031
1032
* @param array $compare Second value
1032
1033
* @return array Returns the key => value pairs that are not common in $data and $compare
1033
1034
* 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
1035
1036
*/
1036
1037
public static function diff (array $ data , array $ compare )
1037
1038
{
@@ -1058,7 +1059,7 @@ public static function diff(array $data, array $compare)
1058
1059
* @param array $data The data to append onto.
1059
1060
* @param array $compare The data to compare and append onto.
1060
1061
* @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
1062
1063
*/
1063
1064
public static function mergeDiff (array $ data , array $ compare )
1064
1065
{
@@ -1084,7 +1085,7 @@ public static function mergeDiff(array $data, array $compare)
1084
1085
* @param array $data List to normalize
1085
1086
* @param bool $assoc If true, $data will be converted to an associative array.
1086
1087
* @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
1088
1089
*/
1089
1090
public static function normalize (array $ data , $ assoc = true )
1090
1091
{
@@ -1131,7 +1132,7 @@ public static function normalize(array $data, $assoc = true)
1131
1132
* @return array of results, nested
1132
1133
* @see Hash::extract()
1133
1134
* @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
1135
1136
*/
1136
1137
public static function nest (array $ data , array $ options = [])
1137
1138
{
0 commit comments