Skip to content

Commit

Permalink
Fix code styling [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondfrancis authored and github-actions[bot] committed Apr 13, 2023
1 parent 72686ad commit 6958f11
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
3 changes: 1 addition & 2 deletions src/IsPseudoDaemon.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,4 @@ public function currentForgeEnvoyerRelease()
return shell_exec('readlink ' . escapeshellarg($pwd));
}
}

}
}
4 changes: 3 additions & 1 deletion src/PseudoDaemonControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
class PseudoDaemonControl
{
const STOP = 1;

const DONT_SLEEP = 2;

const DO_SLEEP = 3;
}
}
2 changes: 1 addition & 1 deletion src/PseudoDaemonServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ public function register()
return $this->everyMinute()->runInBackground()->withoutOverlapping();
});
}
}
}
4 changes: 2 additions & 2 deletions tests/EventDaemonizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

namespace Hammerstone\PseudoDaemon\Tests;

use Hammerstone\PseudoDaemon\PseudoDaemonServiceProvider;
use Illuminate\Console\Scheduling\CacheEventMutex;
use Illuminate\Console\Scheduling\Event;
use Orchestra\Testbench\TestCase;
use Hammerstone\PseudoDaemon\PseudoDaemonServiceProvider;

class EventDaemonizeTest extends TestCase
{
Expand All @@ -29,4 +29,4 @@ public function daemonize_macro_sets_appropriate_properties()
$this->assertTrue($event->withoutOverlapping);
$this->assertEquals('* * * * *', $event->expression);
}
}
}
7 changes: 4 additions & 3 deletions tests/PseudoDaemonTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

namespace Hammerstone\PseudoDaemon\Tests;

use Hammerstone\PseudoDaemon\PseudoDaemonControl;
use Hammerstone\PseudoDaemon\Tests\Support\TestCommand;
use Illuminate\Support\Carbon;
use Mockery;
use Orchestra\Testbench\TestCase;
use Hammerstone\PseudoDaemon\PseudoDaemonControl;
use Hammerstone\PseudoDaemon\Tests\Support\TestCommand;

class PseudoDaemonTraitTest extends TestCase
{
Expand Down Expand Up @@ -109,6 +109,7 @@ public function changing_data_stops_the_daemon()

$command->shouldReceive('restartWhenChanged')->andReturnUsing(function () use (&$fakeData) {
$fakeData++;

return $fakeData < 5 ? 'Less than five' : 'More than five';
});

Expand Down Expand Up @@ -168,4 +169,4 @@ public function before_shutdown_is_called_once()

$command->handle();
}
}
}
6 changes: 2 additions & 4 deletions tests/Support/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@

namespace Hammerstone\PseudoDaemon\Tests\Support;


use Illuminate\Console\Command;
use Hammerstone\PseudoDaemon\IsPseudoDaemon;
use Illuminate\Console\Command;

class TestCommand extends Command
{
Expand All @@ -25,5 +24,4 @@ public function process()
{

}

}
}

0 comments on commit 6958f11

Please sign in to comment.