Skip to content
Snippets Groups Projects
Verified Commit ca9af3d9 authored by Dave Long's avatar Dave Long
Browse files

Issue #3392439 by quietone: Fix variable name spelling in non-tests, part2

parent d91d8d0a
No related branches found
No related tags found
36 merge requests!8528Issue #3456871 by Tim Bozeman: Support NULL services,!8323Fix source code editing and in place front page site studio editing.,!6278Issue #3187770 by godotislate, smustgrave, catch, quietone: Views Rendered...,!3878Removed unused condition head title for views,!38582585169-10.1.x,!3818Issue #2140179: $entity->original gets stale between updates,!3742Issue #3328429: Create item list field formatter for displaying ordered and unordered lists,!3731Claro: role=button on status report items,!3668Resolve #3347842 "Deprecate the trusted",!3651Issue #3347736: Create new SDC component for Olivero (header-search),!3546refactored dialog.pcss file,!3531Issue #3336994: StringFormatter always displays links to entity even if the user in context does not have access,!3502Issue #3335308: Confusing behavior with FormState::setFormState and FormState::setMethod,!3452Issue #3332701: Refactor Claro's tablesort-indicator stylesheet,!3355Issue #3209129: Scrolling problems when adding a block via layout builder,!3226Issue #2987537: Custom menu link entity type should not declare "bundle" entity key,!3154Fixes #2987987 - CSRF token validation broken on routes with optional parameters.,!3147Issue #3328457: Replace most substr($a, $i) where $i is negative with str_ends_with(),!3146Issue #3328456: Replace substr($a, 0, $i) with str_starts_with(),!3133core/modules/system/css/components/hidden.module.css,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!2812Issue #3312049: [Followup] Fix Drupal.Commenting.FunctionComment.MissingReturnType returns for NULL,!2614Issue #2981326: Replace non-test usages of \Drupal::logger() with IoC injection,!2378Issue #2875033: Optimize joins and table selection in SQL entity query implementation,!2334Issue #3228209: Add hasRole() method to AccountInterface,!2062Issue #3246454: Add weekly granularity to views date sort,!1105Issue #3025039: New non translatable field on translatable content throws error,!1073issue #3191727: Focus states on mobile second level navigation items fixed,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!877Issue #2708101: Default value for link text is not saved,!844Resolve #3036010 "Updaters",!673Issue #3214208: FinishResponseSubscriber could create duplicate headers,!617Issue #3043725: Provide a Entity Handler for user cancelation,!579Issue #2230909: Simple decimals fail to pass validation,!560Move callback classRemove outside of the loop,!555Issue #3202493
Pipeline #58902 passed
Pipeline: drupal

#58903

    ......@@ -574,14 +574,14 @@ function drupal_install_system($install_state) {
    * An optional bitmask created from various FILE_* constants.
    * @param $type
    * The type of file. Can be file (default), dir, or link.
    * @param bool $autofix
    * @param bool $auto_fix
    * (optional) Determines whether to attempt fixing the permissions according
    * to the provided $mask. Defaults to TRUE.
    *
    * @return bool
    * TRUE on success or FALSE on failure. A message is set for the latter.
    */
    function drupal_verify_install_file($file, $mask = NULL, $type = 'file', $autofix = TRUE) {
    function drupal_verify_install_file($file, $mask = NULL, $type = 'file', $auto_fix = TRUE) {
    $return = TRUE;
    // Check for files that shouldn't be there.
    if (isset($mask) && ($mask & FILE_NOT_EXIST) && file_exists($file)) {
    ......@@ -603,7 +603,7 @@ function drupal_verify_install_file($file, $mask = NULL, $type = 'file', $autofi
    switch ($current_mask) {
    case FILE_EXIST:
    if (!file_exists($file)) {
    if ($type == 'dir' && $autofix) {
    if ($type == 'dir' && $auto_fix) {
    drupal_install_mkdir($file, $mask);
    }
    if (!file_exists($file)) {
    ......@@ -651,7 +651,7 @@ function drupal_verify_install_file($file, $mask = NULL, $type = 'file', $autofi
    }
    }
    }
    if (!$return && $autofix) {
    if (!$return && $auto_fix) {
    return drupal_install_fix_file($file, $mask);
    }
    return $return;
    ......
    ......@@ -637,8 +637,8 @@ private function Annotations()
    }
    $this->isNestedAnnotation = false;
    if (false !== $annot = $this->Annotation()) {
    $annotations[] = $annot;
    if (false !== $annotation = $this->Annotation()) {
    $annotations[] = $annotation;
    }
    }
    ......
    ......@@ -122,9 +122,9 @@ public function getPropertyAnnotations(\ReflectionProperty $property)
    */
    public function getClassAnnotation(\ReflectionClass $class, $annotationName)
    {
    foreach ($this->getClassAnnotations($class) as $annot) {
    if ($annot instanceof $annotationName) {
    return $annot;
    foreach ($this->getClassAnnotations($class) as $annotation) {
    if ($annotation instanceof $annotationName) {
    return $annotation;
    }
    }
    ......@@ -136,9 +136,9 @@ public function getClassAnnotation(\ReflectionClass $class, $annotationName)
    */
    public function getMethodAnnotation(\ReflectionMethod $method, $annotationName)
    {
    foreach ($this->getMethodAnnotations($method) as $annot) {
    if ($annot instanceof $annotationName) {
    return $annot;
    foreach ($this->getMethodAnnotations($method) as $annotation) {
    if ($annotation instanceof $annotationName) {
    return $annotation;
    }
    }
    ......@@ -150,9 +150,9 @@ public function getMethodAnnotation(\ReflectionMethod $method, $annotationName)
    */
    public function getPropertyAnnotation(\ReflectionProperty $property, $annotationName)
    {
    foreach ($this->getPropertyAnnotations($property) as $annot) {
    if ($annot instanceof $annotationName) {
    return $annot;
    foreach ($this->getPropertyAnnotations($property) as $annotation) {
    if ($annotation instanceof $annotationName) {
    return $annotation;
    }
    }
    ......
    ......@@ -246,15 +246,15 @@ public static function createFromFormat($format, $time, $timezone = NULL, $setti
    // Tries to create a date from the format and use it if possible.
    // A regular try/catch won't work right here, if the value is
    // invalid it doesn't return an exception.
    $datetimeplus = new static('', $timezone, $settings);
    $datetime_plus = new static('', $timezone, $settings);
    $date = \DateTime::createFromFormat($format, $time, $datetimeplus->getTimezone());
    $date = \DateTime::createFromFormat($format, $time, $datetime_plus->getTimezone());
    if (!$date instanceof \DateTime) {
    throw new \InvalidArgumentException('The date cannot be created from a format.');
    }
    else {
    $datetimeplus->setTimestamp($date->getTimestamp());
    $datetimeplus->setTimezone($date->getTimezone());
    $datetime_plus->setTimestamp($date->getTimestamp());
    $datetime_plus->setTimezone($date->getTimezone());
    // Functions that parse date is forgiving, it might create a date that
    // is not exactly a match for the provided value, so test for that by
    ......@@ -265,7 +265,7 @@ public static function createFromFormat($format, $time, $timezone = NULL, $setti
    throw new \UnexpectedValueException('The created date does not match the input value.');
    }
    }
    return $datetimeplus;
    return $datetime_plus;
    }
    /**
    ......
    ......@@ -180,7 +180,7 @@ public function __toString() {
    /**
    * Parses a Plural-Forms entry from a Gettext Portable Object file header.
    *
    * @param string $pluralforms
    * @param string $plural_forms
    * The Plural-Forms entry value.
    *
    * @return array|bool
    ......@@ -191,13 +191,13 @@ public function __toString() {
    *
    * @throws \Exception
    */
    public function parsePluralForms($pluralforms) {
    public function parsePluralForms($plural_forms) {
    $plurals = [];
    // First, delete all whitespace.
    $pluralforms = strtr($pluralforms, [" " => "", "\t" => ""]);
    $plural_forms = strtr($plural_forms, [" " => "", "\t" => ""]);
    // Select the parts that define nplurals and plural.
    $nplurals = strstr($pluralforms, "nplurals=");
    $nplurals = strstr($plural_forms, "nplurals=");
    if (strpos($nplurals, ";")) {
    // We want the string from the 10th char, because "nplurals=" length is 9.
    $nplurals = substr($nplurals, 9, strpos($nplurals, ";") - 9);
    ......@@ -205,7 +205,7 @@ public function parsePluralForms($pluralforms) {
    else {
    return FALSE;
    }
    $plural = strstr($pluralforms, "plural=");
    $plural = strstr($plural_forms, "plural=");
    if (strpos($plural, ";")) {
    // We want the string from the 8th char, because "plural=" length is 7.
    $plural = substr($plural, 7, strpos($plural, ";") - 7);
    ......@@ -303,24 +303,24 @@ private function parseArithmetic($string) {
    $operator_stack[] = $current_token;
    }
    elseif ($current_token == ")") {
    $topop = array_pop($operator_stack);
    while (isset($topop) && ($topop != "(")) {
    $element_stack[] = $topop;
    $topop = array_pop($operator_stack);
    $top_op = array_pop($operator_stack);
    while (isset($top_op) && ($top_op != "(")) {
    $element_stack[] = $top_op;
    $top_op = array_pop($operator_stack);
    }
    }
    elseif (!empty($precedence[$current_token])) {
    // If it's an operator, then pop from $operator_stack into
    // $element_stack until the precedence in $operator_stack is less
    // than current, then push into $operator_stack.
    $topop = array_pop($operator_stack);
    while (isset($topop) && ($precedence[$topop] >= $precedence[$current_token]) && !(($precedence[$topop] == $precedence[$current_token]) && !empty($right_associativity[$topop]) && !empty($right_associativity[$current_token]))) {
    $element_stack[] = $topop;
    $topop = array_pop($operator_stack);
    $top_op = array_pop($operator_stack);
    while (isset($top_op) && ($precedence[$top_op] >= $precedence[$current_token]) && !(($precedence[$top_op] == $precedence[$current_token]) && !empty($right_associativity[$top_op]) && !empty($right_associativity[$current_token]))) {
    $element_stack[] = $top_op;
    $top_op = array_pop($operator_stack);
    }
    if ($topop) {
    if ($top_op) {
    // Return element to top.
    $operator_stack[] = $topop;
    $operator_stack[] = $top_op;
    }
    // Parentheses are not needed.
    $operator_stack[] = $current_token;
    ......@@ -331,10 +331,10 @@ private function parseArithmetic($string) {
    }
    // Flush operator stack.
    $topop = array_pop($operator_stack);
    while ($topop != NULL) {
    $element_stack[] = $topop;
    $topop = array_pop($operator_stack);
    $top_op = array_pop($operator_stack);
    while ($top_op != NULL) {
    $element_stack[] = $top_op;
    $top_op = array_pop($operator_stack);
    }
    $return = $element_stack;
    ......
    ......@@ -407,8 +407,8 @@ private function readLine() {
    }
    // Extract the plurality.
    $frombracket = strstr($line, '[');
    $this->currentPluralIndex = substr($frombracket, 1, strpos($frombracket, ']') - 1);
    $from_bracket = strstr($line, '[');
    $this->currentPluralIndex = substr($from_bracket, 1, strpos($from_bracket, ']') - 1);
    // Skip to the next whitespace and trim away any further whitespace,
    // bringing $line to the message text only.
    ......
    ......@@ -254,7 +254,7 @@ public static function encodePath($path) {
    * TRUE or FALSE, where TRUE indicates an external path.
    */
    public static function isExternal($path) {
    $colonpos = strpos($path, ':');
    $colon_position = strpos($path, ':');
    // Some browsers treat \ as / so normalize to forward slashes.
    $path = str_replace('\\', '/', $path);
    // If the path starts with 2 slashes then it is always considered an
    ......@@ -268,8 +268,8 @@ public static function isExternal($path) {
    // Avoid calling static::stripDangerousProtocols() if there is any slash
    // (/), hash (#) or question_mark (?) before the colon (:) occurrence -
    // if any - as this would clearly mean it is not a URL.
    || ($colonpos !== FALSE
    && !preg_match('![/?#]!', substr($path, 0, $colonpos))
    || ($colon_position !== FALSE
    && !preg_match('![/?#]!', substr($path, 0, $colon_position))
    && static::stripDangerousProtocols($path) == $path);
    }
    ......@@ -398,10 +398,10 @@ public static function stripDangerousProtocols($uri) {
    // Iteratively remove any invalid protocol found.
    do {
    $before = $uri;
    $colonpos = strpos($uri, ':');
    if ($colonpos > 0) {
    $colon_position = strpos($uri, ':');
    if ($colon_position > 0) {
    // We found a colon, possibly a protocol. Verify.
    $protocol = substr($uri, 0, $colonpos);
    $protocol = substr($uri, 0, $colon_position);
    // If a colon is preceded by a slash, question mark or hash, it cannot
    // possibly be part of the URL scheme. This must be a relative URL, which
    // inherits the (safe) protocol of the base document.
    ......@@ -411,7 +411,7 @@ public static function stripDangerousProtocols($uri) {
    // Check if this is a disallowed protocol. Per RFC2616, section 3.2.3
    // (URI Comparison) scheme comparison must be case-insensitive.
    if (!isset($allowed_protocols[strtolower($protocol)])) {
    $uri = substr($uri, $colonpos + 1);
    $uri = substr($uri, $colon_position + 1);
    }
    }
    } while ($before != $uri);
    ......
    ......@@ -16,7 +16,6 @@ alphadecimal
    alternatif
    amphibius
    ampm
    annot
    anonyme
    anothermodule
    antilop
    ......@@ -47,7 +46,6 @@ autocreation
    autoescape
    autoescaped
    autoescaping
    autofix
    autogenerator
    autoloadable
    autoloaded
    ......@@ -165,7 +163,6 @@ cnenzrgre
    codesniffer
    colgroups
    colinodell
    colonpos
    colour
    colspans
    columnschange
    ......@@ -356,7 +353,6 @@ fouc
    fourcol
    fozzie
    fraîche
    frombracket
    frontpage
    fudgy
    fulldata
    ......@@ -645,7 +641,6 @@ placeholdered
    placeholdering
    plid
    pluggable
    pluralforms
    plusthick
    poink
    porterstemmer
    ......@@ -941,7 +936,6 @@ tongatapu
    toolkits
    toolongdomainexampledomainexampledomainexampledomainexampledomain
    toplevel
    topop
    torder
    totalcount
    touchevents
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment