This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer create-project drupal/recommended-project:~9.2.0 test-2-3 --no-interaction | |
cd test-2-3 | |
composer config minimum-stability dev | |
composer require 'drupal/automatic_updates:2.x-dev' --no-interaction --with-all-dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Test your 🔁 skills! | |
var printer :String | |
var current: Int = 1 | |
var upperLimit: Int = 40 | |
var goUp: Bool = false | |
for _ in 1...100 { | |
printer = "" | |
let change: Int = Int.random(in: 2...7) | |
switch current { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adapted from https://www.drupal.org/project/drupal/issues/3041885 | |
public function getSecurityAdvisoryMessages(): array { | |
$messages = []; | |
$response = $this->tempStore->get('advisories_response'); | |
if (!$response) { | |
$advisories_endpoint = 'https://drupal.org/items.json'; | |
$response = (string) $this->httpClient->get($advisories_endpoint)->getBody(); | |
// advisories.check_frequency is 12 hours in seconds | |
$this->tempStore->setWithExpire('advisories_response', $response, $this->config->get('advisories.check_frequency')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_readme": [ | |
"This file locks the dependencies of your project to a known state", | |
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", | |
"This file is @generated automatically" | |
], | |
"content-hash": "c1617dc587b7818cd017170add63eab9", | |
"packages": [ | |
{ | |
"name": "asm89/stack-cors", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/stats/project_analysis/analyzer.sh b/stats/project_analysis/analyzer.sh | |
index c1f24a0..e852675 100755 | |
--- a/stats/project_analysis/analyzer.sh | |
+++ b/stats/project_analysis/analyzer.sh | |
@@ -17,8 +17,8 @@ COMPOSER_CACHE_DIR=/tmp/cache$5 composer --no-interaction --no-progress require | |
# Ensure the directory was created where we thought it should be. | |
if [[ -d "/var/lib/drupalci/workspace/drupal-checkouts/drupal$5/${4#project_}s/contrib/$2" ]]; then | |
- sudo $composer_home/vendor/bin/drush en $2 -y | |
- sudo $composer_home/vendor/bin/drush upgrade_status:checkstyle $2 > /var/lib/drupalci/workspace/phpstan-results/$1.$3.upgrade_status.pre_rector.xml 2>> /var/lib/drupalci/workspace/phpstan-results/$1.$3.upgrade_status_stderr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Rector changes but with rule mentioned | |
### vendor/bin/rector process web/modules/abookings/includes/emails.inc --dry-run --verbose | |
---------- begin diff ---------- | |
--- Original | |
+++ New | |
@@ -3,12 +3,11 @@ | |
* @file | |
* Contains emails abookings.module. | |
*/ | |
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Rector changes but with rule mentioned | |
### vendor/bin/rector process web/modules/abookings/includes/emails.inc --dry-run --verbose | |
---------- begin diff ---------- | |
--- Original | |
+++ New | |
@@ -3,12 +3,11 @@ | |
* @file | |
* Contains emails abookings.module. | |
*/ | |
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Rector changes but with rule mentioned | |
### vendor/bin/rector process web/modules/abookings/includes/emails.inc --dry-run --verbose | |
---------- begin diff ---------- | |
--- Original | |
+++ New | |
@@ -3,12 +3,11 @@ | |
* @file | |
* Contains emails abookings.module. | |
*/ | |
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Drupal\Core\Entity\Query\QueryException: '' not found in Drupal\Core\Entity\Query\Sql\Tables->ensureEntityTable() (line 367 of core/lib/Drupal/Core/Entity/Query/Sql/Tables.php). | |
Drupal\Core\Entity\Query\Sql\Tables->addField(, 'INNER', 'en') (Line: 52) | |
Drupal\Core\Entity\Query\Sql\Condition->compile(Object) (Line: 172) | |
Drupal\Core\Entity\Query\Sql\Query->compile() (Line: 80) | |
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 433) | |
Drupal\Core\Entity\ContentEntityStorageBase->getLatestTranslationAffectedRevisionId('1', 'en') (Line: 255) | |
Drupal\Core\Entity\EntityRepository->getLatestTranslationAffectedRevision(Object, 'en') (Line: 162) | |
Drupal\Core\Entity\EntityRepository->getActiveMultiple('node', Array, Array) (Line: 136) | |
Drupal\Core\Entity\EntityRepository->getActive('node', '1') (Line: 231) | |
Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage->extractEntityFromRoute('', Array) (Line: 192) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema":"http://json-schema.org/draft-04/schema#", | |
"id":"http://d8/schemata/node/article?_format=schema_json&_describes=hal_json", | |
"type":"object", | |
"title":"node:article Schema", | |
"description":"Use articles for time-sensitive content like news, press releases or blog posts.", | |
"properties":{ | |
"nid":{ | |
"type":"array", | |
"title":"ID", |
NewerOlder