Skip to content

Commit af82c29

Browse files
committed
style(formatting): Remove double spaces, final newline, old commented out code.
1 parent 8d07aa2 commit af82c29

17 files changed

Lines changed: 191 additions & 196 deletions

cli/Valet/Acrylic.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ class Acrylic {
1616
/**
1717
* Create a new Acrylic instance.
1818
*
19-
* @param CommandLine $cli
20-
* @param Filesystem $files
19+
* @param CommandLine $cli
20+
* @param Filesystem $files
21+
* @param Site $site
2122
* @return void
2223
*/
2324
public function __construct(CommandLine $cli, Filesystem $files) {
@@ -28,7 +29,7 @@ public function __construct(CommandLine $cli, Filesystem $files) {
2829
/**
2930
* Install Acrylic DNS.
3031
*
31-
* @param string $tld
32+
* @param string $tld
3233
* @return void
3334
*/
3435
public function install(string $tld = 'test') {
@@ -39,7 +40,7 @@ public function install(string $tld = 'test') {
3940
/**
4041
* Create the AcrylicHosts file.
4142
*
42-
* @param string $tld
43+
* @param string $tld
4344
* @return void
4445
*/
4546
protected function createHostsFile(string $tld) {
@@ -92,7 +93,7 @@ protected function configureNetworkDNS() {
9293
/**
9394
* Update the tld used by Acrylic DNS.
9495
*
95-
* @param string $tld
96+
* @param string $tld
9697
* @return void
9798
*/
9899
public function updateTld(string $tld) {
@@ -210,12 +211,12 @@ public function flushdns() {
210211
/**
211212
* Get the Acrylic path.
212213
*
213-
* @param string $path
214+
* @param string $path
214215
* @return string
215216
*/
216217
public function path(string $path = ''): string {
217218
$basePath = str_replace("\\", '/', realpath(valetBinPath() . 'Acrylic'));
218219

219220
return $basePath . ($path ? "/$path" : $path);
220221
}
221-
}
222+
}

cli/Valet/Ansicon.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Ansicon {
1111
/**
1212
* Create a new Ansicon instance.
1313
*
14-
* @param CommandLine $cli
14+
* @param CommandLine $cli
1515
* @return void
1616
*/
1717
public function __construct(CommandLine $cli) {
@@ -45,4 +45,4 @@ function ($code, $output) {
4545
}
4646
);
4747
}
48-
}
48+
}

cli/Valet/Configuration.php

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Configuration {
1313
/**
1414
* Create a new Valet configuration class instance.
1515
*
16-
* @param Filesystem $filesystem
16+
* @param Filesystem $filesystem
1717
* @return void
1818
*/
1919
public function __construct(Filesystem $files) {
@@ -176,8 +176,6 @@ public function uninstall() {
176176
/**
177177
* Add the given php path to the configuration.
178178
*
179-
* @param string $path
180-
* @param bool $prepend
181179
* @return void
182180
*/
183181
public function addDefaultPhp() {
@@ -193,7 +191,7 @@ public function addDefaultPhp() {
193191
/**
194192
* Get the php configuration by path.
195193
*
196-
* @param string $phpPath
194+
* @param string $phpPath
197195
* @return mixed
198196
*/
199197
public function getPhp($phpPath) {
@@ -209,7 +207,7 @@ public function getPhp($phpPath) {
209207
/**
210208
* Get the php configuration by version.
211209
*
212-
* @param string $phpVersion
210+
* @param string $phpVersion
213211
* @return mixed
214212
*/
215213
public function getPhpByVersion($phpVersion) {
@@ -253,7 +251,7 @@ public function getPhpFullVersionByAlias($phpVersionAlias) {
253251
/**
254252
* Add the given php path to the configuration.
255253
*
256-
* @param string $phpPath
254+
* @param string $phpPath
257255
* @return mixed
258256
*/
259257
public function addPhp($phpPath) {
@@ -307,7 +305,7 @@ public function addPhp($phpPath) {
307305
/**
308306
* Remove the given php path from the configuration.
309307
*
310-
* @param string $phpPath
308+
* @param string $phpPath
311309
* @return mixed
312310
*/
313311
public function removePhp($phpPath) {
@@ -345,8 +343,8 @@ public function removePhp($phpPath) {
345343
/**
346344
* Add the given path to the configuration.
347345
*
348-
* @param string $path
349-
* @param bool $prepend
346+
* @param string $path
347+
* @param bool $prepend
350348
* @return void
351349
*/
352350
public function addPath(string $path, bool $prepend = false) {
@@ -361,7 +359,7 @@ public function addPath(string $path, bool $prepend = false) {
361359
/**
362360
* Prepend the given path to the configuration.
363361
*
364-
* @param string $path
362+
* @param string $path
365363
* @return void
366364
*/
367365
public function prependPath(string $path) {
@@ -372,7 +370,7 @@ public function prependPath(string $path) {
372370
* Remove the given path from the configuration.
373371
* Used by `valet forget`
374372
*
375-
* @param string $path
373+
* @param string $path
376374
* @return void
377375
*/
378376
public function removePath(string $path) {
@@ -421,8 +419,8 @@ public function read(): array {
421419
/**
422420
* Get an item from the configuration file using "dot" notation.
423421
*
424-
* @param string|int|null $key
425-
* @param mixed $default
422+
* @param string|int|null $key
423+
* @param mixed $default
426424
* @return mixed
427425
*/
428426
public function get($key, $default = null) {
@@ -432,8 +430,8 @@ public function get($key, $default = null) {
432430
/**
433431
* Update a specific key in the configuration file.
434432
*
435-
* @param string $key
436-
* @param mixed $value
433+
* @param string $key
434+
* @param mixed $value
437435
* @return array
438436
*/
439437
public function updateKey(string $key, $value): array {
@@ -447,7 +445,7 @@ public function updateKey(string $key, $value): array {
447445
/**
448446
* Write the given configuration to disk.
449447
*
450-
* @param array $config
448+
* @param array $config
451449
* @return void
452450
*/
453451
public function write(array $config) {
@@ -469,7 +467,7 @@ public function path(): string {
469467
/**
470468
* Get the Valet home path.
471469
*
472-
* @param string $path
470+
* @param string $path
473471
* @return string
474472
*/
475473
protected function valetHomePath(string $path = ''): string {

cli/Valet/Diagnose.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class Diagnose {
1717
/**
1818
* Create a new Diagnose instance.
1919
*
20-
* @param CommandLine $cli
21-
* @param Filesystem $files
20+
* @param CommandLine $cli
21+
* @param Filesystem $files
2222
* @return void
2323
*/
2424
public function __construct(CommandLine $cli, Filesystem $files) {
@@ -412,4 +412,4 @@ protected function combineWithHeadings($results) {
412412
"Outdated Composer Packages"
413413
])->combine($results);
414414
}
415-
}
415+
}

0 commit comments

Comments
 (0)