Skip to content

Commit

Permalink
(feat): yard/multisite-url-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonvanWijhe committed Dec 12, 2024
1 parent 31837b4 commit fbe150d
Show file tree
Hide file tree
Showing 13 changed files with 2,871 additions and 138 deletions.
18 changes: 10 additions & 8 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# editorconfig.org

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[*.php]
indent_size = 4
[*.yml]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
indent_style = space
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
actions:
patterns:
- "*"
commit-message:
prefix: "(chore)"

- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "weekly"
groups:
composer:
patterns:
- "*"
commit-message:
prefix: "(chore)"
versioning-strategy: lockfile-only
7 changes: 7 additions & 0 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Dependabot Automerge
on: pull_request

jobs:
dependabot-automerge:
uses: yardinternet/workflows/.github/workflows/dependabot-automerge.yml@main
secrets: inherit
11 changes: 11 additions & 0 deletions .github/workflows/format-php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Code Style

on:
pull_request:
paths:
- '**.php'

jobs:
php-cs-fixer:
uses: yardinternet/workflows/.github/workflows/format-php.yml@main
secrets: inherit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
vendor
.php-cs-fixer.cache
17 changes: 17 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

use PhpCsFixer\Finder;
use Yard\PhpCsFixerRules\Config;

# PHP CS Fixer can be run by using the composer script `composer format`

$finder = Finder::create()
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true)
->append(['.php-cs-fixer.php']);

return Config::create($finder);
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Roots
Copyright (c) 2024 Yard | Digital Agency

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
# Multisite URL Fixer

[![Project Status: Inactive – The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows.](https://www.repostatus.org/badges/latest/inactive.svg)](https://www.repostatus.org/#inactive)

This repository is no longer maintained.

If you would like to become the owner of this repository, or if you would like to be given write access, then [please reach out to us](https://twitter.com/rootswp).

[Potential useful forks](https://useful-forks.github.io/?repo=roots%2Fmultisite-url-fixer)

* * *

A WordPress plugin to fix admin links due to the Bedrock url changes. See [this issue](https://github.com/roots/bedrock/issues/250) for more background.

Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "roots/multisite-url-fixer",
"name": "yard/multisite-url-fixer",
"type": "wordpress-muplugin",
"license": "MIT",
"description":
"Fixes WordPress issues with home and site URL on multisite when using Bedrock",
"homepage": "https://roots.io/bedrock/",
"keywords": ["wordpress"],
"support": {
"issues": "https://github.com/roots/multisite-url-fixer/issues",
"issues": "https://github.com/yardinternet/multisite-url-fixer/issues",
"forum": "https://discourse.roots.io/"
},
"autoload": {
"psr-4": {
"Roots\\Bedrock\\": "src/"
"Yard\\Bedrock\\": "src/"
}
},
"require": {
"php": ">=7.0.0"
"php": ">=7.4"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.1"
"yard/php-cs-fixer-rules": "^1.0"
},
"scripts": {
"test": ["phpcs --ignore=vendor --extensions=php --standard=PSR2 ."]
}
"scripts": {
"format": "vendor/bin/php-cs-fixer fix"
}
}
Loading

0 comments on commit fbe150d

Please sign in to comment.