-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #938 from dan2k3k4/run-phpcbf
Cleanup Drupal settings files with PHPCBF
- Loading branch information
Showing
19 changed files
with
234 additions
and
212 deletions.
There are no files selected for viewing
22 changes: 13 additions & 9 deletions
22
docs/using_lagoon/drupal/drupal7-mariadb/drush/aliases.drushrc.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
<?php | ||
// Don't change anything here, it's magic! | ||
|
||
/** | ||
* @file | ||
* Don't change anything here, it's magic! | ||
*/ | ||
|
||
global $aliases_stub; | ||
if (empty($aliases_stub)) { | ||
$ch = curl_init(); | ||
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE); | ||
curl_setopt($ch, CURLOPT_HEADER, 0); | ||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | ||
curl_setopt($ch, CURLOPT_URL, 'https://drush-alias.lagoon.amazeeio.cloud/aliases.drushrc.php.stub'); | ||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); | ||
$aliases_stub = curl_exec($ch); | ||
curl_close($ch); | ||
$ch = curl_init(); | ||
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE); | ||
curl_setopt($ch, CURLOPT_HEADER, 0); | ||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | ||
curl_setopt($ch, CURLOPT_URL, 'https://drush-alias.lagoon.amazeeio.cloud/aliases.drushrc.php.stub'); | ||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); | ||
$aliases_stub = curl_exec($ch); | ||
curl_close($ch); | ||
} | ||
eval($aliases_stub); |
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
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
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
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
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
22 changes: 13 additions & 9 deletions
22
docs/using_lagoon/drupal/drupal8-composer-mariadb/drush/aliases.drushrc.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
<?php | ||
// Don't change anything here, it's magic! | ||
|
||
/** | ||
* @file | ||
* Don't change anything here, it's magic! | ||
*/ | ||
|
||
global $aliases_stub; | ||
if (empty($aliases_stub)) { | ||
$ch = curl_init(); | ||
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE); | ||
curl_setopt($ch, CURLOPT_HEADER, 0); | ||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | ||
curl_setopt($ch, CURLOPT_URL, 'https://drush-alias.lagoon.amazeeio.cloud/aliases.drushrc.php.stub'); | ||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); | ||
$aliases_stub = curl_exec($ch); | ||
curl_close($ch); | ||
$ch = curl_init(); | ||
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE); | ||
curl_setopt($ch, CURLOPT_HEADER, 0); | ||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | ||
curl_setopt($ch, CURLOPT_URL, 'https://drush-alias.lagoon.amazeeio.cloud/aliases.drushrc.php.stub'); | ||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); | ||
$aliases_stub = curl_exec($ch); | ||
curl_close($ch); | ||
} | ||
eval($aliases_stub); |
9 changes: 5 additions & 4 deletions
9
docs/using_lagoon/drupal/drupal8-composer-mariadb/drush/drushrc.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Lagoon drushrc.php file | ||
* Lagoon drushrc.php file. | ||
* | ||
* This file tells drush about the Lagoon environment | ||
* It contains some defaults that the Lagoon team suggests, please edit them as required. | ||
*/ | ||
|
||
### Skip data for some tables during sql dumps and syncs | ||
# These tables will be syncronized just as structure and not the data inside them, this makes syncing and dumping much faster | ||
# In case you need these tables, call the 'sql-sync' or 'sql-dump' command with: --no-structure-tables-list | ||
// Skip data for some tables during sql dumps and syncs | ||
// These tables will be syncronized just as structure and not the data inside them, this makes syncing and dumping much faster | ||
// In case you need these tables, call the 'sql-sync' or 'sql-dump' command with: --no-structure-tables-list. | ||
$command_specific['sql-sync'] = array('structure-tables-list' => 'cache,cache_*,history,sessions,watchdog,feeds_log'); | ||
$command_specific['sql-dump'] = array('structure-tables-list' => 'cache,cache_*,history,sessions,watchdog,feeds_log'); |
1 change: 1 addition & 0 deletions
1
docs/using_lagoon/drupal/drupal8-composer-mariadb/web/sites/default/all.settings.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Lagoon Drupal 8 all environment configuration file. | ||
|
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
5 changes: 3 additions & 2 deletions
5
...using_lagoon/drupal/drupal8-composer-mariadb/web/sites/default/example.settings.local.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Lagoon Drupal 8 example settings.local.php file | ||
* Lagoon Drupal 8 example settings.local.php file. | ||
* | ||
* This file will not be included and is just an example file. | ||
* If you would like to use this file, copy it to the name 'settings.local.php' (this file will be exluded from Git) | ||
*/ | ||
|
||
// Disable render caches, necessary for twig files to be reloaded on every page view | ||
// Disable render caches, necessary for twig files to be reloaded on every page view. | ||
$settings['cache']['bins']['render'] = 'cache.backend.null'; | ||
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null'; |
Oops, something went wrong.