checks if platform properties are set inside a properties array

@param array  $properties
@param string $message

@throws \LogicException
500055
public function checkEngineProperties(array $properties, string $message) : void
    {
        if (array_key_exists('RenderingEngine_Name', $properties)
            || array_key_exists('RenderingEngine_Version', $properties)
            || array_key_exists('RenderingEngine_Description', $properties)
            || array_key_exists('RenderingEngine_Maker', $properties)
            || array_key_exists('VBScript', $properties)
            || array_key_exists('ActiveXControls', $properties)
            || array_key_exists('BackgroundSounds', $properties)
        ) {
            throw new \LogicException($message);
        }
    }
543683
public function encode($file, $message, array $options = [])
    {
        $image   = new Image($file);
        $message = $this->encodeMessage($message, $options);
        $pixels  = ceil(strlen($message) / self::BITS_PER_PIXEL + (self::LENGTH_BITS / self::BITS_PER_PIXEL));

        if ($pixels > $image->getPixels()) {
            throw new \LogicException('Number of pixels is fewer than ' . $pixels);
        }

        $image->setBinaryString(new BinaryIterator($message));

        return $image;
    }
945112
private static function assertMessageClassSpecifiedInArguments(object $service, MessageHandler $handler): void
    {
        if (null === $handler->messageClass || '' === (string) $handler->messageClass)
        {
            throw new \LogicException(
                \sprintf(
                    'The message argument was not found in the "%s:%s" method',
                    \get_class($service),
                    $handler->methodName
                )
            );
        }
    }
8812
public function setMessageAsMixed(Message $message)
    {
        if ($message->hasContent()) {
            $part = $this->genericHelper->createNewContentPartFrom($message);
            $message->addChild($part, 0);
        }
        $this->setMimeHeaderBoundaryOnPart($message, 'multipart/mixed');
        $atts = $message->getAllAttachmentParts();
        if (!empty($atts)) {
            foreach ($atts as $att) {
                $att->markAsChanged();
            }
        }
    }
1369983
public function checkEmptyParams(array $values, $message = null)
    {
        if (empty($values)) {
            if (null === $message) {
                $message = 'No parameters have been given';
            }

            throw new General\EmptyArgumentsException($message);
        }
    }
269333
public function checkOnceValidParamExists(array $requiredParams, array $values, $message = null)
    {
        $this->checkEmptyParams($requiredParams, 'exception_any_parameter_given_to_AlValidatorn');
        $this->checkEmptyParams($values, 'exception_any_value_to_check_when_only_a_param_exists');

        $diff = array_intersect_key($requiredParams, $values);
        if (empty($diff)) {
            if (null === $message) {
                $message = array(
                    'message' => 'exception_any_valid_option_provided',
                    'parameters' => array(
                        '%required%' => $this->doImplode($requiredParams),
                        '%values%' => $this->doImplode($values),
                    ),
                );

                $message = json_encode($message);
            }

            throw new General\ArgumentExpectedException($message);
        }
    }
1256004
protected function validate(array $message)
    {
        $sign = $message['sign'];
        unset($message['sign']);

        if (Support\generate_sign($message, $this->app->getKey()) !== $sign) {
            throw new InvalidSignException();
        }
    }
236079
public function push(Message $message)
    {
        if (empty($this->params)) {
            throw new \RuntimeException('Please set up this client using setUp() method before pushing messages.');
        }

        $tokens = $message->getTokens();
        if (empty($tokens)) {
            throw new \RuntimeException('No device token set. Please add at least 1 token using Message::addToken() before trying to push the message.');
        }

        $this->logger->info('Connecting to APNS server');
        $stream = $this->getStreamSocketClient();

        $payload = $message->getPayloadAsJson();

        foreach ($tokens as $token) {
            $this->logger->info('Sending message to APNS server.', array(
                'deviceToken' => $token,
                'payload' => $payload,
            ));
            $this->writePayloadOnStreamForGivenToken($payload, $stream, $token);
        }

        fclose($stream);
    }
764393
protected function dispatchMessage($message): Envelope
    {
        if (!$this->container->has('messenger.default_bus')) {
            $message = class_exists(Envelope::class) ? 'You need to define the "messenger.default_bus" configuration option.' : 'Try running "composer require symfony/messenger".';
            throw new \LogicException('The message bus is not enabled in your application. '.$message);
        }

        return $this->container->get('messenger.default_bus')->dispatch($message);
    }
277738
public function msgExists(string $message = '', array $vars = []): bool
    {
        return $this->intuition->msgExists($message, [
            'domain' => $this->domain,
            'variables' => is_array($vars) ? $vars : [],
        ]);
    }
645223
public function violate($message)
    {
        if (!empty($this->messages)){
            $message = $this->messages[0];
        } else {
            $this->setMessage($message);
        }
    }
139174
private function withExtra(PusherMessage $message)
    {
        if ($message->getPlatform() == $this->platform) {
            throw CouldNotCreateMessage::platformConflict($this->platform);
        }

        $this->extraMessage = $message;
    }
778478
public function setProperties(array $properties = [])
    {
        foreach ($properties as $property => $value) {
            $method = 'set'.ucfirst($property);
            if (!method_exists($this, $method)) {
                throw new \RuntimeException("Undefined method $method.");
            }

            if (!in_array($property, $this->validProperties)) {
                throw new \Exception('You are trying to set invalid properties. Please check valid properties.');
            }

            $this->{$method}($value);
        }
    }
998829
public function message($message, $options = null) {
		$options = $this->_mergeOptions($options);

		$this->set($message, $options);

		$this->_assertSessionStackSize($options);
	}
1094313
public function validate(Message $message)
    {
        if ($message->getTitleLength() > self::CHARACTER_LIMIT) {
            $message->addStatus(new LimitTheTitleLengthTo69CharactersStatus());
        }
    }
150601
public function setProperties(array $properties)
    {
        foreach ($properties as $property => $value) {
            $method = sprintf('set%s', str_replace('_', '', $property));

            if (!method_exists($this, $method)) {
                 throw SchemaException::invalidColumnProperty($this->getName(), $property);
            }

            $this->$method($value);
        }
    }
1106207
protected function action($message, $level, $options = null) {
        $prefix = $this->get_prefix($level, $options);
        // Depending of running from browser/command line, format differently
        if (defined('STDOUT')) {
            echo $prefix . $message . PHP_EOL;
        } else {
            echo $prefix . htmlentities($message, ENT_QUOTES, 'UTF-8') . '<br/>' . PHP_EOL;
        }
        flush();
        return true;
    }