Move all files to tome/
This commit is contained in:
parent
5675bcfc36
commit
674daab35b
2874 changed files with 0 additions and 0 deletions
25
tome/tools/Phpat/ArchitectureTest.php
Normal file
25
tome/tools/Phpat/ArchitectureTest.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tools\Phpat;
|
||||
|
||||
use PHPat\Selector\Selector;
|
||||
use PHPat\Test\Builder\Rule;
|
||||
use PHPat\Test\PHPat;
|
||||
|
||||
final class ArchitectureTest {
|
||||
|
||||
public function test_all_classes_should_be_final(): Rule {
|
||||
return PHPat::rule()
|
||||
->classes(
|
||||
Selector::inNamespace(
|
||||
namespace: '/^Drupal\\\\opd_\w+/',
|
||||
regex: TRUE,
|
||||
),
|
||||
)
|
||||
->excluding(Selector::isInterface())
|
||||
->shouldBeFinal();
|
||||
}
|
||||
|
||||
}
|
||||
19
tome/tools/scripts/symlink.sh
Executable file
19
tome/tools/scripts/symlink.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
if [ ! -L web/sites/default/settings.php ] && [ ! -e web/sites/default/settings.php ]; then
|
||||
ln -s ../../../settings.php web/sites/default/settings.php
|
||||
fi
|
||||
|
||||
mkdir -p web/{modules,themes}
|
||||
|
||||
if [ ! -L web/themes/custom ] && [ ! -e web/themes/custom ]; then
|
||||
ln -s ../../themes web/themes/custom
|
||||
fi
|
||||
|
||||
if [ ! -L web/modules/custom ] && [ ! -e web/modules/custom ]; then
|
||||
ln -s ../../modules web/modules/custom
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue