@@ -64,7 +64,8 @@ function link($target, $link)
6464 *
6565 * @return \Illuminate\Support\Collection
6666 */
67- function links () {
67+ function links ()
68+ {
6869 $ certsPath = VALET_HOME_PATH .'/Certificates ' ;
6970
7071 $ this ->files ->ensureDirExists ($ certsPath , user ());
@@ -82,7 +83,7 @@ function links() {
8283 */
8384 function getCertificates ($ path )
8485 {
85- return collect ($ this ->files ->scanDir ($ path ))->filter (function ($ value , $ key ) {
86+ return collect ($ this ->files ->scandir ($ path ))->filter (function ($ value , $ key ) {
8687 return ends_with ($ value , '.crt ' );
8788 })->map (function ($ cert ) {
8889 return substr ($ cert , 0 , strripos ($ cert , '. ' , -5 ));
@@ -100,7 +101,7 @@ function getLinks($path, $certs)
100101 {
101102 $ config = $ this ->config ->read ();
102103
103- return collect ($ this ->files ->scanDir ($ path ))->mapWithKeys (function ($ site ) use ($ path ) {
104+ return collect ($ this ->files ->scandir ($ path ))->mapWithKeys (function ($ site ) use ($ path ) {
104105 return [$ site => $ this ->files ->readLink ($ path .'/ ' .$ site )];
105106 })->map (function ($ path , $ site ) use ($ certs , $ config ) {
106107 $ secured = $ certs ->has ($ site );
0 commit comments