Skip to content

Commit 6958f11

Browse files
aarondfrancisgithub-actions[bot]
authored andcommitted
Fix code styling [ci skip]
1 parent 72686ad commit 6958f11

6 files changed

+13
-13
lines changed

src/IsPseudoDaemon.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,4 @@ public function currentForgeEnvoyerRelease()
132132
return shell_exec('readlink ' . escapeshellarg($pwd));
133133
}
134134
}
135-
136-
}
135+
}

src/PseudoDaemonControl.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
class PseudoDaemonControl
99
{
1010
const STOP = 1;
11+
1112
const DONT_SLEEP = 2;
13+
1214
const DO_SLEEP = 3;
13-
}
15+
}

src/PseudoDaemonServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ public function register()
2121
return $this->everyMinute()->runInBackground()->withoutOverlapping();
2222
});
2323
}
24-
}
24+
}

tests/EventDaemonizeTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
namespace Hammerstone\PseudoDaemon\Tests;
77

8+
use Hammerstone\PseudoDaemon\PseudoDaemonServiceProvider;
89
use Illuminate\Console\Scheduling\CacheEventMutex;
910
use Illuminate\Console\Scheduling\Event;
1011
use Orchestra\Testbench\TestCase;
11-
use Hammerstone\PseudoDaemon\PseudoDaemonServiceProvider;
1212

1313
class EventDaemonizeTest extends TestCase
1414
{
@@ -29,4 +29,4 @@ public function daemonize_macro_sets_appropriate_properties()
2929
$this->assertTrue($event->withoutOverlapping);
3030
$this->assertEquals('* * * * *', $event->expression);
3131
}
32-
}
32+
}

tests/PseudoDaemonTraitTest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
namespace Hammerstone\PseudoDaemon\Tests;
77

8+
use Hammerstone\PseudoDaemon\PseudoDaemonControl;
9+
use Hammerstone\PseudoDaemon\Tests\Support\TestCommand;
810
use Illuminate\Support\Carbon;
911
use Mockery;
1012
use Orchestra\Testbench\TestCase;
11-
use Hammerstone\PseudoDaemon\PseudoDaemonControl;
12-
use Hammerstone\PseudoDaemon\Tests\Support\TestCommand;
1313

1414
class PseudoDaemonTraitTest extends TestCase
1515
{
@@ -109,6 +109,7 @@ public function changing_data_stops_the_daemon()
109109

110110
$command->shouldReceive('restartWhenChanged')->andReturnUsing(function () use (&$fakeData) {
111111
$fakeData++;
112+
112113
return $fakeData < 5 ? 'Less than five' : 'More than five';
113114
});
114115

@@ -168,4 +169,4 @@ public function before_shutdown_is_called_once()
168169

169170
$command->handle();
170171
}
171-
}
172+
}

tests/Support/TestCommand.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55

66
namespace Hammerstone\PseudoDaemon\Tests\Support;
77

8-
9-
use Illuminate\Console\Command;
108
use Hammerstone\PseudoDaemon\IsPseudoDaemon;
9+
use Illuminate\Console\Command;
1110

1211
class TestCommand extends Command
1312
{
@@ -25,5 +24,4 @@ public function process()
2524
{
2625

2726
}
28-
29-
}
27+
}

0 commit comments

Comments
 (0)