Skip to content

Commit

Permalink
release PHP 7.2 downgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 29, 2024
1 parent 98dbcf8 commit ee85938
Show file tree
Hide file tree
Showing 484 changed files with 51,264 additions and 1,035 deletions.
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

18 changes: 9 additions & 9 deletions .github/workflows/bare_run.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Bare Run on various PHP versions
name: Bare Run

on:
push:
tags:
- '*'
on: [pull_request, push]

jobs:
bare_run:
Expand All @@ -12,12 +9,15 @@ jobs:
strategy:
fail-fast: false
matrix:
php_version: ['7.2', '7.3', '7.4', '8.0']
php_version: ['7.2', '7.3', '7.4', '8.0', '8.2']

steps:
- uses: shivammathur/setup-php@v2
- uses: actions/checkout@v2

-
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
php-version: ${{ matrix.php_version }}
coverage: none

- run: composer require symplify/easy-ci --dev --ansi
- run: php bin/easy-ci list --ansi
4 changes: 0 additions & 4 deletions .gitignore

This file was deleted.

39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Tools that make easy to setup CI.

- Check git conflicts in CI
- Check TWIG templates for missing classes, non-existing static calls and constant fetches
- Check YAML configs for the same

## Install
Expand Down Expand Up @@ -37,7 +38,43 @@ The `/vendor` directory is excluded by default.

<br>

### 2. Detect Commented Code
### 2. Check Configs for Non-Existing Classes

```bash
vendor/bin/easy-ci check-config src
```

Supported types are YAML.

<br>

### 3. Check Twig Controller Paths

```bash
vendor/bin/easy-ci check-twig-render src/Controller
```

```php
final class SomeController
{
public function index()
{
return $this->render('does_path_exist.twig');
}
}
```

<br>

### 4. Detect Static Calls in Your Code

```bash
vendor/bin/easy-ci detect-static src
```

<br>

### 5. Detect Commented Code

Have you ever forgot commented code in your code?

Expand Down
5 changes: 3 additions & 2 deletions bin/easy-ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env php
<?php
<?php
namespace EasyCI202401;

require __DIR__ . '/easy-ci.php';
require __DIR__ . '/easy-ci.php';
19 changes: 7 additions & 12 deletions bin/easy-ci.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

declare(strict_types=1);
declare (strict_types=1);
namespace EasyCI202401;

use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use EasyCI202401\Symfony\Component\Console\Application;
use EasyCI202401\Symfony\Component\Console\Input\ArgvInput;
use EasyCI202401\Symfony\Component\Console\Output\ConsoleOutput;
use Symplify\EasyCI\DependencyInjection\ContainerFactory;

$possibleAutoloadPaths = [
// dependency
__DIR__ . '/../../../autoload.php',
Expand All @@ -15,23 +15,18 @@
// monorepo
__DIR__ . '/../../../vendor/autoload.php',
];

foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {
if (file_exists($possibleAutoloadPath)) {
if (\file_exists($possibleAutoloadPath)) {
require_once $possibleAutoloadPath;
break;
}
}

$scoperAutoloadFilepath = __DIR__ . '/../vendor/scoper-autoload.php';
if (file_exists($scoperAutoloadFilepath)) {
if (\file_exists($scoperAutoloadFilepath)) {
require_once $scoperAutoloadFilepath;
}

$containerFactory = new ContainerFactory();
$container = $containerFactory->create();

$application = $container->make(Application::class);

$exitCode = $application->run(new ArgvInput(), new ConsoleOutput());
exit($exitCode);
52 changes: 0 additions & 52 deletions build/build-scoped.sh

This file was deleted.

16 changes: 0 additions & 16 deletions build/rector-downgrade-php-72.php

This file was deleted.

3 changes: 0 additions & 3 deletions build/target-repository/.github/FUNDING.yml

This file was deleted.

23 changes: 0 additions & 23 deletions build/target-repository/.github/workflows/bare_run.yaml

This file was deleted.

102 changes: 0 additions & 102 deletions build/target-repository/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions build/target-repository/composer.json

This file was deleted.

Loading

0 comments on commit ee85938

Please sign in to comment.