Skip to content

Commit

Permalink
Fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 14, 2020
1 parent eb28bc9 commit b4029c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/Core/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*/
class Configuration
{

/**
* Read a configuration key
*
Expand All @@ -42,10 +41,10 @@ public function get(string $path, $default = null)
* Check if $path exists and has a non-null value.
*
* @param string $path The path to check.
* @return boolean True if the configuration data exists.
* @return bool True if the configuration data exists.
*/
public function has(string $key): bool
public function has(string $path): bool
{
return Configure::check($key);
return Configure::check($path);
}
}
2 changes: 1 addition & 1 deletion tests/TestCase/Core/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
*/
namespace Cake\Test\TestCase\Core;

use Cake\Core\Configure;
use Cake\Core\Configuration;
use Cake\Core\Configure;
use Cake\TestSuite\TestCase;

/**
Expand Down

0 comments on commit b4029c8

Please sign in to comment.