Skip to content

Commit

Permalink
Fix code coverage in SparkPlug
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Sep 17, 2024
1 parent 43efb9d commit 6ab3b37
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Rougin\SparkPlug;

/**
* @package SparkPlug
* @package Spark Plug
*
* @author Rougin Gutib <[email protected]>
*/
Expand Down
8 changes: 3 additions & 5 deletions src/SparkPlug.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Rougin\SparkPlug;

/**
* @package SparkPlug
* @package Spark Plug
*
* @author Rougin Gutib <[email protected]>
*/
Expand Down Expand Up @@ -33,10 +33,8 @@ public function __construct(array $globals, array $server, $root = null)
{
$this->globals = & $globals;

if (! $root)
{
$root = (string) getcwd();
}
/** @var string */
$root = $root ? $root : getcwd();

$this->server = $server;

Expand Down
2 changes: 1 addition & 1 deletion tests/InstanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Rougin\SparkPlug;

/**
* @package SparkPlug
* @package Spark Plug
*
* @author Rougin Gutib <[email protected]>
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/SparkPlugTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Rougin\SparkPlug;

/**
* @package SparkPlug
* @package Spark Plug
*
* @author Rougin Gutib <[email protected]>
*/
Expand Down

0 comments on commit 6ab3b37

Please sign in to comment.