Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pactode committed Mar 3, 2020
1 parent b3b89bb commit beae138
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor
composer.lock
.phpunit.result.cache
.php_cs.cache
21 changes: 21 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

$finder = Symfony\Component\Finder\Finder::create()
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);

return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'no_unused_imports' => true,
'not_operator_with_successor_space' => true,
])
->setFinder($finder);
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
}
],
"require": {
"php": "^7.1",
"illuminate/console": "~5.5.43|~5.6.0|~5.7.0|~5.8.0|^6.0",
"illuminate/support": "~5.5.43|~5.6.0|~5.7.0|~5.8.0|^6.0"
"php": "^7.2.5",
"illuminate/console": "^6.0|^7.0",
"illuminate/support": "^6.0|^7.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0|^8.0",
"orchestra/testbench": "~3.5.0|~3.6.0|~3.7.0|~3.8.0|^4.0"
"phpunit/phpunit": "^7.0|^8.0|^9.0",
"orchestra/testbench": "^4.0|^5.0"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 3 additions & 3 deletions src/TaskLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Signifly\SchedulingTasks;

use ReflectionClass;
use Illuminate\Support\Str;
use Symfony\Component\Finder\Finder;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\Str;
use ReflectionClass;
use Symfony\Component\Finder\Finder;

class TaskLoader
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Signifly\SchedulingTasks\Test\Console;

use Illuminate\Console\Scheduling\Schedule;
use Signifly\SchedulingTasks\Facades\TaskLoader;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use Signifly\SchedulingTasks\Facades\TaskLoader;

class Kernel extends ConsoleKernel
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Console/Tasks/BackupDaily.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Signifly\SchedulingTasks\Test\Console\Tasks;

use Signifly\SchedulingTasks\TaskContract;
use Illuminate\Console\Scheduling\Schedule;
use Signifly\SchedulingTasks\TaskContract;

class BackupDaily implements TaskContract
{
Expand Down

0 comments on commit beae138

Please sign in to comment.