protected function indexedMarksToArray(array $givenMarks)
    {

        $marks = [];

        foreach ($givenMarks as $mark) {

            if (strpos($mark, '!') === 0) {
                $marks[substr($mark, 1)] = false;
                continue;
            }

            $marks[$mark] = true;

        }

        return $marks;
    }
protected function indexedMarksToArray(array $givenMarks)
    {

        $marks = [];

        foreach ($givenMarks as $mark) {

            if (strpos($mark, '!') === 0) {
                $marks[substr($mark, 1)] = false;
                continue;
            }

            $marks[$mark] = true;

        }

        return $marks;
    }
protected function indexedMarksToArray ( array $ givenMarks ) { $ marks = [ ] ; foreach ( $ givenMarks as $ mark ) { if ( strpos ( $ mark , '!' ) === 0 ) { $ marks [ substr ( $ mark , 1 ) ] = false ; continue ; } $ marks [ $ mark ] = true ; } return $ marks ; }
Allows shortcuts to boolean values by prefixing a mark with !.

@param array $givenMarks

@return array
Allows shortcuts to boolean values by prefixing a mark with ! .