protected function interpretSpecialTargets(array $targets)
    {
        $normalized = [];

        foreach ($targets as $targetParts) {

            // Detect '*' and convert to all attributes
            if (count($targetParts) == 1 && trim(head($targetParts)) == '*') {
                $normalized += $this->makeTargetsForAllAttributes();
                continue;
            }

            $normalized[] = $targetParts;
        }

        return $normalized;
    }
protected function interpretSpecialTargets(array $targets)
    {
        $normalized = [];

        foreach ($targets as $targetParts) {

            // Detect '*' and convert to all attributes
            if (count($targetParts) == 1 && trim(head($targetParts)) == '*') {
                $normalized += $this->makeTargetsForAllAttributes();
                continue;
            }

            $normalized[] = $targetParts;
        }

        return $normalized;
    }
protected function interpretSpecialTargets ( array $ targets ) { $ normalized = [ ] ; foreach ( $ targets as $ targetParts ) { // Detect '*' and convert to all attributes if ( count ( $ targetParts ) == 1 && trim ( head ( $ targetParts ) ) == '*' ) { $ normalized += $ this -> makeTargetsForAllAttributes ( ) ; continue ; } $ normalized [ ] = $ targetParts ; } return $ normalized ; }
Interprets and translates special targets into separate target arrays.

Think of a special target like '*', which should be translated into
separate condition targets for each (relevant) attribute of the model.

@param array $targets
@return array
Interprets and translates special targets into separate target arrays .