Mismatch input and output declarations and implementations cc4m_logo_inline

IDFCNS-19
TitleThe input and output declarations and implementations for methods should match.
PriorityMandatory
Severity level2
DescriptionAll inputs and outputs that are declared in a classdef file, for a method, need to be implemented as well, and vice versa.
RationaleA mismatch between input and output declarations and implementations, is very likely a programming error.

Avoid:

methods(Static)
    out1 = getFolder(in2, in1)	
end

function [reportsFolder, isOk] = getFolder(in1, in2)
....
end

Instead use:

methods(Static)
    [reportsFolder, isOk] = getFolder(in1, in2)	
end

function [reportsFolder, isOk] = getFolder(in1, in2)
....
end