protected function isMessagesExcluded($filePath)
    {
        if (empty($this->messagesIncluded)) {
            return false;
        }

        $filePath = str_replace(DIRECTORY_SEPARATOR, '/', $filePath);

        $localeDirSeparatorPosition = strpos($filePath, '/');
        $filePath = substr($filePath, $localeDirSeparatorPosition);
        $filePath = ltrim($filePath, '/');
        $filePath = substr($filePath, 0, -4);

        if (in_array($filePath, $this->messagesIncluded)) {
            return false;
        }

        return true;
    }
protected function isMessagesExcluded($filePath)
    {
        if (empty($this->messagesIncluded)) {
            return false;
        }

        $filePath = str_replace(DIRECTORY_SEPARATOR, '/', $filePath);

        $localeDirSeparatorPosition = strpos($filePath, '/');
        $filePath = substr($filePath, $localeDirSeparatorPosition);
        $filePath = ltrim($filePath, '/');
        $filePath = substr($filePath, 0, -4);

        if (in_array($filePath, $this->messagesIncluded)) {
            return false;
        }

        return true;
    }
protected function isMessagesExcluded ( $ filePath ) { if ( empty ( $ this -> messagesIncluded ) ) { return false ; } $ filePath = str_replace ( DIRECTORY_SEPARATOR , '/' , $ filePath ) ; $ localeDirSeparatorPosition = strpos ( $ filePath , '/' ) ; $ filePath = substr ( $ filePath , $ localeDirSeparatorPosition ) ; $ filePath = ltrim ( $ filePath , '/' ) ; $ filePath = substr ( $ filePath , 0 , - 4 ) ; if ( in_array ( $ filePath , $ this -> messagesIncluded ) ) { return false ; } return true ; }
If messages should be excluded from build.

@param string $filePath

@return bool
If messages should be excluded from build .