Determine if a node qualifies as phrasing content.
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content.

@return bool
329270
public function isPhrasingContent()
    {
        return $this->nodeType === XML_TEXT_NODE || in_array($this->nodeName, $this->phrasing_elems) !== false ||
            (!is_null($this->childNodes) &&
                ($this->nodeName === 'a' || $this->nodeName === 'del' || $this->nodeName === 'ins') &&
                array_reduce(iterator_to_array($this->childNodes), function ($carry, $node) {
                    return $node->isPhrasingContent() && $carry;
                }, true)
            );
    }
790023
public function IsContextSensitive()
	{
		if ( $this->_path[0]->type == XPath2ExprType::Expr )
			return $this->_path[0]->node->IsContextSensitive();
		return true;
	}
1085925
public static boolean hasNativeWebContent(AccessibilityNodeInfoCompat node) {
        if (node == null) {
            return false;
        }

        if (!supportsWebActions(node)) {
            return false;
        }

        // ChromeVox does not have sub elements, so if the parent element also has web content
        // this cannot be ChromeVox.
        AccessibilityNodeInfoCompat parent = node.getParent();
        if (supportsWebActions(parent)) {
            if (parent != null) {
                parent.recycle();
            }
            return true;
        }

        if (parent != null) {
            parent.recycle();
        }

        // ChromeVox never has child elements
        return node.getChildCount() > 0;
    }
3401
public function isValid() 
    {
      $headers = get_headers($this->url);
      $header = $headers[0]; // the result code
      $type = $headers[sizeof($headers) - 1]; // content type
      $m = array();

      if (preg_match("/\d{3}/", $header, $m)) {

        if (substr($m[0], 0, 1) == "2")
          return true;
      }

      return false;
    }
653027
protected function checkContent()
    {
        if (is_array($this->content) && count($this->content)) {
            foreach ($this->content as $name => $value) {
                switch ($name) {
                    case 'category':
                    case 'mainMessage':
                    case 'buttonMessage':
                    case 'language':
                        $this->addContentOption($name, $value);
                        break;
                    case 'mainParams':
                    case 'buttonParams':
                        $this->addParamsOption($name, $value);
                        break;
                }
            }
        }
    }
1343187
private function validateDescriptions(): self
    {
        $commentPoss = TokenHelper::findNextAll(
            $this->file->getBaseFile(),
            [T_DOC_COMMENT_STRING, T_DOC_COMMENT_TAG],
            $this->getDocCommentPos(),
            $this->getDocHelper()->getBlockEndPosition()
        );

        foreach ($commentPoss as $index => $commentPos) {
            $commentToken = $this->tokens[$commentPos];
            $skipNewLineCheck = false;

            // We only search till the tags.
            if ($commentToken['code'] === T_DOC_COMMENT_TAG) {
                break;
            }

            if ($isFirstDocString = $index === 0) {
                $skipNewLineCheck = !$this->validateOneLineSummary();
            }

            $this->validateUCFirstDocComment($commentPos, $commentToken);

            if (!$skipNewLineCheck) {
                $this->validateNewLineAfterDocComment($commentPos, $commentToken, $isFirstDocString);
            }
        }

        return $this;

        ;
    }
855724
public function isLast()
    {
        $node = $this->node;
        return $node->index === 'content'
            || isset($node->position) && $node->position === $node->arr->_listLength;
    }
645340
public boolean isFullyEstablished() {
        boolean result = true;
        for (ContentNegotiator contentNegotiator : contentNegotiators) {
            if (!contentNegotiator.isFullyEstablished())
                result = false;
        }
        return result;
    }
874272
public function contentExists() {
		$r = Catalog::getRoot();
		if (count($r->children) > 1) return true;
		if (count($r->children) < 1) return false;
		
		$s = $r->children[0];
		
		if (count($s->children)) return true;
		if (count($s->getMaterials()->unpublished())) return true;
		
		return false;
	}
88103
protected function checkRootNode()
    {
        $id = (int)Application::getRequest()->get('id');

        $repository = $this->getEntityManager()->getRepository($this->entityName);
        /** @var $node Category */
        if ($node = $repository->find($id)) {
            return $node->getLevel() > 1;
        }

        return false;
    }
428329
public function isNodeTrashAllowed()
    {
        $userClassIDArray = eZUser::contentClassIDs();

        $class = $this->attribute( 'object' )->attribute( 'content_class' );

        // If current object has ezuser attributes, it can't be sent to trash
        if ( in_array( $class->attribute( 'id' ), $userClassIDArray ) )
        {
            return false;
        }

        // Checking for children using classes with ezuser attribute. Using == because subTreecount returns strings
        return $this->subTreeCount(
                    array(
                        'Limitation' => array(),
                        'SortBy' => array( 'path' , false ),
                        'IgnoreVisibility' => true,
                        'ClassFilterType' => 'include',
                        'ClassFilterArray' => $userClassIDArray,
                        'AsObject' => false
                    )
                ) == 0 ;
    }
1172991
protected function isHTML()
    {
        if (function_exists('headers_list') && $headers = headers_list())
        {
            foreach ((array) $headers as $header)
            {
                $header = strtolower($header);

                if (strpos($header, 'content-type:') === 0 && !strpos($header, 'text/html'))
                {
                    return false;
                }
            }
        }

        return true;
    }
1057289
public function contents()
		{
			if (true === $this->_enabled) {
				for ($i = 0; $i< $this->_zip->numFiles; ++$i) {
					$this->_contents[$i] = $this->_zip->statIndex($i);
					$comment = $this->_zip->getCommentIndex($i);

					if ($comment) {
						$this->_contents[$i]['comment'] = $comment;
					}
				}

				return (!is_null($this->_contents)) ? $this->_contents : false;
			}

			return false;
		}
503738
public function hasTitleAFullStop(): bool
    {
        if (0 == $this->getTitleLength()) {
            return false;
        }

        $lastCharacter = trim($this->commitMessage[0]){$this->getTitleLength() - 1};

        return '.' == $lastCharacter;
    }
868478
public static boolean hasLegacyWebContent(AccessibilityNodeInfoCompat node) {
        if (node == null) {
            return false;
        }

        if (!supportsWebActions(node)) {
            return false;
        }

        // ChromeVox does not have sub elements, so if the parent element also has web content
        // this cannot be ChromeVox.
        AccessibilityNodeInfoCompat parent = node.getParent();
        if (supportsWebActions(parent)) {
            if (parent != null) {
                parent.recycle();
            }

            return false;
        }

        if (parent != null) {
            parent.recycle();
        }

        // ChromeVox never has child elements
        return node.getChildCount() == 0;
    }
555512
public function isAutoLiteral()
    {
        return $this->smarty->auto_literal && isset($this->value[ $this->ldel_length ]) ?
            strpos(" \n\t\r", $this->value[ $this->ldel_length ]) !== false : false;
    }
1307401
protected function fileGetContentsCheck()
    {
        $contents = file_get_contents($this->endPoint);
        $contents = $this->cleanUp($contents);

        if ($contents === '[OK]') {
            return true;
        }

        return false;
    }