Skip to content

Commit a55eecf

Browse files
JackieDogithub-actions[bot]
authored andcommitted
Fix coding standards
1 parent 942c2cb commit a55eecf

14 files changed

+43
-43
lines changed

src/DotenvEditor.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ public function getKeys(array $keys = [])
214214
*
215215
* @param string $key The setter key name
216216
*
217-
* @throws KeyNotFoundException
218-
*
219217
* @return array
218+
*
219+
* @throws KeyNotFoundException
220220
*/
221221
public function getKey(string $key)
222222
{
@@ -520,9 +520,9 @@ public function autoBackup(bool $on = true)
520520
/**
521521
* Create one backup of loaded file.
522522
*
523-
* @throws FileNotFoundException
524-
*
525523
* @return DotenvEditor
524+
*
525+
* @throws FileNotFoundException
526526
*/
527527
public function backup()
528528
{
@@ -611,10 +611,10 @@ public function getLatestBackup()
611611
*
612612
* @param null|string $filePath The file use to restore
613613
*
614+
* @return DotenvEditor
615+
*
614616
* @throws NoBackupAvailableException
615617
* @throws FileNotFoundException
616-
*
617-
* @return DotenvEditor
618618
*/
619619
public function restore(?string $filePath = null)
620620
{
@@ -703,7 +703,7 @@ protected function standardizeFilePath(?string $filePath = null)
703703
if (method_exists($this->app, 'environmentPath') && method_exists($this->app, 'environmentFile')) {
704704
$filePath = Path::osStyle($this->app->environmentPath() . '/' . $this->app->environmentFile());
705705
} else {
706-
$filePath = Path::osStyle($this->app->basePath() . '/' . '.env');
706+
$filePath = Path::osStyle($this->app->basePath() . '/.env');
707707
}
708708
}
709709

src/DotenvReader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ protected function getEntriesFromFile()
127127
/**
128128
* Ensures the given file is readable.
129129
*
130-
* @throws UnableReadFileException
131-
*
132130
* @return void
131+
*
132+
* @throws UnableReadFileException
133133
*/
134134
protected function ensureFileIsReadable()
135135
{

src/DotenvWriter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ protected function appendEntry(array $data = [])
253253
*
254254
* @param mixed $filePath
255255
*
256-
* @throws UnableWriteToFileException
257-
*
258256
* @return void
257+
*
258+
* @throws UnableWriteToFileException
259259
*/
260260
protected function ensureFileIsWritable($filePath)
261261
{

src/Exceptions/FileNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* This is file not found exception class.
99
*/
10-
class FileNotFoundException extends Exception
10+
class FileNotFoundException extends \Exception
1111
{
1212
//
1313
}

src/Exceptions/InvalidKeyException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* This is invalid key exception class.
99
*/
10-
class InvalidKeyException extends Exception
10+
class InvalidKeyException extends \Exception
1111
{
1212
//
1313
}

src/Exceptions/InvalidValueException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* This is invalid value exception class.
99
*/
10-
class InvalidValueException extends Exception
10+
class InvalidValueException extends \Exception
1111
{
1212
//
1313
}

src/Exceptions/KeyNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* This is key not found exception class.
99
*/
10-
class KeyNotFoundException extends Exception
10+
class KeyNotFoundException extends \Exception
1111
{
1212
//
1313
}

src/Exceptions/NoBackupAvailableException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* This is no backup available exception class.
99
*/
10-
class NoBackupAvailableException extends Exception
10+
class NoBackupAvailableException extends \Exception
1111
{
1212
//
1313
}

src/Exceptions/UnableReadFileException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* This is unable read file exception class.
99
*/
10-
class UnableReadFileException extends Exception
10+
class UnableReadFileException extends \Exception
1111
{
1212
//
1313
}

src/Exceptions/UnableWriteToFileException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* This is unable write to file exception class.
99
*/
10-
class UnableWriteToFileException extends Exception
10+
class UnableWriteToFileException extends \Exception
1111
{
1212
//
1313
}

0 commit comments

Comments
 (0)