Skip to content

Commit 5f2990e

Browse files
committed
coding style patches
1 parent 19047ea commit 5f2990e

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
}
1111
],
1212
"autoload": {
13+
"classmap":"src/Connection",
1314
"psr-4": {
1415
"Elimuswift\\Connection\\": "src/"
1516
}

src/Connnection/Commands/HandleResolver.php

-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ class HandleResolver extends Command
3030

3131
/**
3232
* Create a new command instance.
33-
*
34-
* @return void
3533
*/
3634
public function __construct(SupervisorConfiguration $config)
3735
{

src/Connnection/ConnectionServiceProvider.php

-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ public function boot(Resolver $resolver){
2222
//resolve tenant, catch PDOExceptions to prevent errors during migration
2323
try {
2424
$resolver->resolveTenant();
25-
if(!$resolver->isResolved()){
26-
//abort('404');
27-
}
2825
} catch( \PDOException $e ) {
2926
throw new Exceptions\TenantNotResolvedException("Tenant not resolved or does not exist");
3027
}

src/Connnection/Resolver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ private function registerConsoleTerminateEvent(){
225225
$this->setActiveTenant($tenant);
226226
$event->getOutput()->writeln('<info>Running command for ' . $this->getActiveTenant()->domain . '</info>');
227227
try {
228-
$exitCode = $command->run($input, $output);
228+
$command->run($input, $output);
229229
} catch (\Exception $e) {
230230
$event = new ConsoleExceptionEvent($command, $input, $output, $e, $e->getCode());
231231
$this->getConsolerDispatcher()->dispatch(ConsoleEvents::EXCEPTION, $event);

0 commit comments

Comments
 (0)