Skip to content

Commit fcd55dd

Browse files
Apply fixes from StyleCI (#6)
[ci skip] [skip ci]
1 parent 2c2819d commit fcd55dd

18 files changed

+20
-38
lines changed

config/airdrop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@
115115
//
116116
],
117117
],
118-
];
118+
];

src/AirdropServiceProvider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
namespace Hammerstone\Airdrop;
77

88
use Hammerstone\Airdrop\Commands\Debug;
9-
use Hammerstone\Airdrop\Commands\Install;
109
use Hammerstone\Airdrop\Commands\Download;
10+
use Hammerstone\Airdrop\Commands\Install;
1111
use Hammerstone\Airdrop\Commands\Upload;
1212
use Illuminate\Support\ServiceProvider;
1313

@@ -27,12 +27,10 @@ public function boot()
2727
$this->publishes([
2828
__DIR__ . '/../config/airdrop.php' => config_path('airdrop.php')
2929
], 'config');
30-
3130
}
3231

3332
public function register()
3433
{
3534
$this->mergeConfigFrom(__DIR__ . '/../config/airdrop.php', 'airdrop');
3635
}
37-
38-
}
36+
}

src/Commands/Debug.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@ public function handle()
2828
json_encode($output, JSON_PRETTY_PRINT)
2929
);
3030
}
31-
32-
}
31+
}

src/Commands/Download.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ public function handle()
2424

2525
$this->makeDriver()->download();
2626
}
27-
2827
}

src/Commands/Install.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@ public function __construct()
3737
*/
3838
public function handle()
3939
{
40-
Artisan::call("vendor:publish", [
40+
Artisan::call('vendor:publish', [
4141
'--provider' => AirdropServiceProvider::class
4242
]);
4343

4444
$this->info('Config file published!');
4545
}
46-
4746
}

src/Commands/Upload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function handle()
1818
config([
1919
'airdrop.verbose' => $this->option('verbose')
2020
]);
21-
21+
2222
$this->makeDriver()->upload();
2323
}
2424
}

src/Concerns/MakesDrivers.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
namespace Hammerstone\Airdrop\Concerns;
77

8-
98
use Exception;
109
use Hammerstone\Airdrop\Drivers\BaseDriver;
1110
use Hammerstone\Airdrop\HashGenerator;
@@ -50,4 +49,4 @@ protected function ensureDriverExtendsBase($driver)
5049
throw new Exception('Airdrop drivers must extend ' . json_encode(BaseDriver::class));
5150
}
5251
}
53-
}
52+
}

src/Contracts/TriggerContract.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
namespace Hammerstone\Airdrop\Contracts;
77

8-
98
interface TriggerContract
109
{
1110
/**
@@ -16,5 +15,4 @@ interface TriggerContract
1615
* @return array
1716
*/
1817
public function triggerBuildWhenChanged($config = []);
19-
20-
}
18+
}

src/Drivers/BaseDriver.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,4 @@ public function output($line)
4545
abstract public function download();
4646

4747
abstract public function upload();
48-
49-
5048
}

src/Drivers/FilesystemDriver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function upload()
2727
// This exact configuration of assets is already stashed,
2828
// so we don't need to do it again.
2929
$this->output('Files already exist on remote storage, not uploading.');
30+
3031
return;
3132
}
3233

0 commit comments

Comments
 (0)