1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 00:40:06 +01:00
Commit Graph

15 Commits

Author SHA1 Message Date
Matt Stauffer
4c2c4a1238 Drop unnecessary doc blocks (#1339)
* Drop unnecessary doc blocks

* Apply fixes from StyleCI

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-01-11 09:14:39 -05:00
Matt Stauffer
e5e0e03799 Add a bunch more CLI command tests (#1332)
* Wip some cli tests

* Apply fixes from StyleCI

* Test parked command

* Test forget command

* Update Filesystem::rmDirAndContents to respect symlinks

* Wip cli commands

* Apply fixes from StyleCI

* Test link command, unlink command, and secure command

* Apply fixes from StyleCI

* Add tests for unsecure, unsecure --all, secured commands

Add placeholders for the remaining CLI commands
Add nginx::restart to unsecure --all command

Co-authored-by: StyleCI Bot <bot@styleci.io>
2022-12-30 15:07:34 -05:00
Matt Stauffer
21835cc2b5 Add type hints and return hints to Filesystem 2022-12-19 19:13:38 -05:00
Dries Vints
a0e1e02a47 Test Valet commands (#1256)
* First attempt at testing CLI commands

* Apply fixes from StyleCI

* Protect from running locally

* Fix test

* wip

* wip

* wip

* wip

* wip

* Update app.php

* Create config folder and files for CLI tests

* Apply fixes from StyleCI

* Fix some formatting

* Fix imports

* Update all output() calls to use the writer passed in by the command

Ugly capture of all $outputs from commands, by passing them into `writer()` to be bound into the container, where they can then be pulled out from calls to `output()` and its buddies `info()`, `table()`, and `warning()`.

* Apply fixes from StyleCI

* Flesh out park command test

* Apply fixes from StyleCI

* Drop php 7.0 and 7.1

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Matt Stauffer <matt@tighten.co>
2022-12-02 09:32:28 +01:00
Jerry Price
c35900eacb styleci update 2022-04-13 11:15:54 -04:00
Jerry Price
021a4d1a5c use getStub to allow custom stub files 2022-04-13 10:50:41 -04:00
Taylor Otwell
101abeae0e Apply fixes from StyleCI 2021-12-06 10:40:37 +00:00
Weizhe Sun
d75810239a Remove redundant return. 2018-12-21 21:21:09 -05:00
Jason P. Scharf
539898cd94 Fix spaces in path when using 'valet link' (#62)
* Fix spaces in path when using 'valet link'

* Remove custom function and use escapeshellarg()
2016-05-19 10:39:21 -05:00
Daniel Morris
fe6fb947f7 Consistency changes (#60)
* Correct the return type annotation in a serves method

* Type-hint the driver in the abstract ValetDriver

* Correct the return type-hint in the sample ValetDriver

* Remove the return afrom the restartLinkedPhp method

* Remove the return annotation from the Caddy constructor

* Remove the return annotation from the Valet configuration constructor

* Removed the return from the prependPath method of the Configuration class

* Removed the return from the appendAsUser method of the Filesystem class

* Removed the return annotation from the Site constructor

* Corrected the parameter annotation of the link method in the Site class

* Order use statements by length in PhpFpm

* Remove the return annotation from the Valet constructor
2016-05-12 21:17:32 -05:00
Taylor Otwell
14588a40d8 load extensions 2016-05-11 20:32:53 -05:00
Taylor Otwell
fd595b5c71 run commands as sudo 2016-05-11 19:40:44 -05:00
Taylor Otwell
289d806060 link on every install 2016-05-10 16:33:17 -05:00
Taylor Otwell
f0556ce554 correcting a few script problems 2016-05-10 13:26:39 -05:00
Taylor Otwell
97f7ae2342 organize better 2016-05-10 08:29:24 -05:00