mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
Fixed indents
This commit is contained in:
@@ -675,7 +675,7 @@ SELECT id, id_uppercat, uppercats, rank, global_rank
|
||||
|
||||
$datas = array();
|
||||
|
||||
$cat_map_callback = function($m) use ($cat_map) { return $cat_map[$m[1]]["rank"]; };
|
||||
$cat_map_callback = function($m) use ($cat_map) { return $cat_map[$m[1]]["rank"]; };
|
||||
|
||||
foreach( $cat_map as $id=>$cat )
|
||||
{
|
||||
@@ -1051,7 +1051,7 @@ SELECT id, uppercats, site_id
|
||||
$categories = query2array($query);
|
||||
|
||||
// filling $cat_fulldirs
|
||||
$cat_dirs_callback = function($m) use ($cat_dirs) { return $cat_dirs[$m[1]]; };
|
||||
$cat_dirs_callback = function($m) use ($cat_dirs) { return $cat_dirs[$m[1]]; };
|
||||
|
||||
$cat_fulldirs = array();
|
||||
foreach ($categories as $category)
|
||||
|
||||
@@ -1404,8 +1404,8 @@ function prepend_append_array_items($array, $prepend_str, $append_str)
|
||||
create_function('&$s', '$s = "'.$prepend_str.'".$s."'.$append_str.'";')
|
||||
);
|
||||
*/
|
||||
//New PHP 7.2 code
|
||||
array_walk($array, function(&$value, $key) use($prepend_str,$append_str) { $value = "$prepend_str$value$append_str"; } );
|
||||
//New PHP 7.2 code
|
||||
array_walk($array, function(&$value, $key) use($prepend_str,$append_str) { $value = "$prepend_str$value$append_str"; } );
|
||||
return $array;
|
||||
}
|
||||
|
||||
|
||||
@@ -617,7 +617,7 @@ Request format: ".@$this->_requestFormat." Response format: ".@$this->_responseF
|
||||
static function ws_getMethodList($params, &$service)
|
||||
{
|
||||
$methods = array_filter($service->_methods,
|
||||
function($m) { return empty($m["options"]["hidden"]) || !$m["options"]["hidden"];} );
|
||||
function($m) { return empty($m["options"]["hidden"]) || !$m["options"]["hidden"];} );
|
||||
return array('methods' => new PwgNamedArray( array_keys($methods),'method' ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user