Skip to content

Commit 1bc0f75

Browse files
committed
fix parameters rule
1 parent 3149976 commit 1bc0f75

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utils/check_field_content.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
function status = check_field_content(struct_1, struct_2)
1+
function status = check_field_content(struct_one, struct_two)
22
%
33
% (C) Copyright 2021 spm_2_bids developers
44

55
status = true;
66

7-
if isempty(struct_2)
7+
if isempty(struct_two)
88
return
99
end
1010

11-
if strcmp(struct_2, '*')
11+
if strcmp(struct_two, '*')
1212
return
1313
end
1414

15-
shared_fields = intersect(fieldnames(struct_1), fieldnames(struct_2));
15+
shared_fields = intersect(fieldnames(struct_one), fieldnames(struct_two));
1616

1717
if isempty(shared_fields)
1818
status = false;
1919
return
2020
end
2121

2222
for i = 1:numel(shared_fields)
23-
if ~strcmp(struct_1.(shared_fields{i}), struct_2.(shared_fields{i}))
23+
if ~strcmp(struct_one.(shared_fields{i}), struct_two.(shared_fields{i}))
2424
status = false;
2525
return
2626
end

0 commit comments

Comments
 (0)