Commit a0bdf62a authored by catch's avatar catch

Issue #3099583 by alexpott, klausi, neclimdul, heddn: Update coder to 8.3.7

parent 0885820a
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "119e460e27fcb0c3479da1f05fbc90d9",
"content-hash": "44be8fe4b9cabf6f383e410de1d44129",
"packages": [
{
"name": "asm89/stack-cors",
......
......@@ -11,7 +11,7 @@
"behat/mink-goutte-driver": "^1.2",
"behat/mink-selenium2-driver": "1.4.0 | 1.3.1.1 | 1.3.x-dev",
"composer/composer": "^1.9.1",
"drupal/coder": "^8.3.2",
"drupal/coder": "^8.3.7",
"easyrdf/easyrdf": "^0.9",
"justinrainbow/json-schema": "^5.2",
"mikey179/vfsstream": "^1.6.8",
......
......@@ -7,7 +7,6 @@
use Drupal\Core\DependencyInjection\ContainerNotInitializedException;
use Drupal\Core\Messenger\LegacyMessenger;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
......
......@@ -129,7 +129,8 @@ class DateTimePlus {
* @param \DateTime $datetime
* A DateTime object.
* @param array $settings
* @see __construct()
* (optional) A keyed array for settings, suitable for passing on to
* __construct().
*
* @return static
* A new DateTimePlus object.
......@@ -183,9 +184,11 @@ public static function createFromArray(array $date_parts, $timezone = NULL, $set
* @param int $timestamp
* A UNIX timestamp.
* @param mixed $timezone
* @see __construct()
* (optional) \DateTimeZone object, time zone string or NULL. See
* __construct() for more details.
* @param array $settings
* @see __construct()
* (optional) A keyed array for settings, suitable for passing on to
* __construct().
*
* @return static
* A new DateTimePlus object.
......@@ -211,11 +214,14 @@ public static function createFromTimestamp($timestamp, $timezone = NULL, $settin
* any other specialized input with a known format. If provided the
* date will be created using the createFromFormat() method.
* @see http://php.net/manual/datetime.createfromformat.php
* @param mixed $time
* @see __construct()
* @param string $time
* String representing the time.
* @param mixed $timezone
* @see __construct()
* (optional) \DateTimeZone object, time zone string or NULL. See
* __construct() for more details.
* @param array $settings
* (optional) A keyed array for settings, suitable for passing on to
* __construct(). Supports an additional key:
* - validate_format: (optional) Boolean choice to validate the
* created date using the input format. The format used in
* createFromFormat() allows slightly different values than format().
......@@ -223,7 +229,6 @@ public static function createFromTimestamp($timestamp, $timezone = NULL, $settin
* possible to a validation step to confirm that the date created
* from a format string exactly matches the input. This option
* indicates the format can be used for validation. Defaults to TRUE.
* @see __construct()
*
* @return static
* A new DateTimePlus object.
......
......@@ -136,7 +136,7 @@ protected function deleteConfigKeyStore(ConfigEntityTypeInterface $entity_type,
*
* @param \Drupal\Core\Config\Config $config
* The configuration object.
* @param string $key
* @param string $key
* The configuration key to look for.
* @param string $get_method
* Which method on the config object to call to get the value. Either 'get'
......
......@@ -152,7 +152,7 @@ public function isDefaultRevisionPublished(ContentEntityInterface $entity) {
// If no default revision could be loaded, the entity has not yet been
// saved. In this case the moderation_state of the unsaved entity can be
// used, since once saved it will become the default.
$default_revision = $default_revision ?: $entity;
$default_revision = $default_revision ?: $entity;
// Ensure we are checking all translations of the default revision.
if ($default_revision instanceof TranslatableInterface && $default_revision->isTranslatable()) {
......
......@@ -572,7 +572,6 @@ public function testLocalActions() {
$this->assertUrl('admin/reports/updates/install');
}
/**
* {@inheritdoc}
*/
......
......@@ -132,4 +132,3 @@ public function providerSetProjectCoreCompatibilityRanges() {
}
}
......@@ -141,7 +141,6 @@
<rule ref="Drupal.WhiteSpace.ObjectOperatorSpacing"/>
<rule ref="Drupal.WhiteSpace.OpenBracketSpacing"/>
<rule ref="Drupal.WhiteSpace.OpenTagNewline"/>
<rule ref="Drupal.WhiteSpace.OperatorSpacing"/>
<rule ref="Drupal.WhiteSpace.ScopeClosingBrace"/>
<rule ref="Drupal.WhiteSpace.ScopeIndent"/>
......@@ -329,6 +328,11 @@
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.LanguageConstructSpacing" />
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
<properties>
<property name="ignoreNewlines" value="true"/>
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment