Skip to content

Commit f1333fc

Browse files
committed
CodeSniffer Corrections
Signed-off-by: Justin Yost <justin@loadsys.com>
1 parent 677052f commit f1333fc

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/Shell/ConfigReadShell.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,13 +393,13 @@ public function getOptionParser() {
393393
'short' => 'b',
394394
'boolean' => true,
395395
'default' => false,
396-
'help' => __('Always use bash variable deinfition formatting. When enabled, output will be formatted as `KEY_NAME=\'value\'`. This option is auto-enabled if multiple keys are provided on the command line, or if the value for the requested key is itself an array. When multiple values are returned, each will be output on its own line.')
396+
'help' => __('Always use bash variable deinfition formatting. When enabled, output will be formatted as `KEY_NAME=\'value\'`. This option is auto-enabled if multiple keys are provided on the command line, or if the value for the requested key is itself an array. When multiple values are returned, each will be output on its own line.'),
397397
])
398398
->addOption('serialize', [
399399
'short' => 's',
400400
'boolean' => true,
401401
'default' => false,
402-
'help' => __('Encode all output using PHP\'s `serialize()` method. Makes the Shell\'s output suitable for consumption by other PHP console scripts. Always overrides the --bash option. A single requested key will be serialized directly. Multiple requested keys will be combined into an associative array with the provided arguments as key names and then serialized.')
402+
'help' => __('Encode all output using PHP\'s `serialize()` method. Makes the Shell\'s output suitable for consumption by other PHP console scripts. Always overrides the --bash option. A single requested key will be serialized directly. Multiple requested keys will be combined into an associative array with the provided arguments as key names and then serialized.'),
403403
])
404404
->description(
405405
__('Provides CLI access to variables defined in the Configure class of the host CakePHP application. Will output the value of any keys passed as arguments. Equivelant to `Configure::read(\'Key.Name\')`. Unrecognized keys will produce empty string or `null` output.')

tests/TestCase/Shell/ConfigReadShellTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
use Cake\Console\ConsoleOptionParser;
99
use Cake\Console\Shell;
1010
use Cake\Core\Configure;
11+
use Cake\Datasource\ConnectionManager;
1112
use Cake\TestSuite\TestCase;
13+
use Cake\Utility\Security;
1214
use ConfigRead\Shell\ConfigReadShell;
15+
use \StdClass;
1316

1417
/**
1518
* TestConfigReadShell class
@@ -43,23 +46,20 @@ public function printVal($key, $val) {
4346
*
4447
*/
4548
class ConfigReadShellTest extends TestCase {
46-
4749
/**
4850
* Fixtures used in this test case
4951
*
5052
* @var array
5153
*/
52-
public $fixtures = [
53-
];
54+
public $fixtures = [];
5455

5556
/**
5657
* Acts as an accumulator for output produced by the Shell.
5758
*
5859
* @var array
5960
* @see ::initSUIT()
6061
*/
61-
public $output = [
62-
];
62+
public $output = [];
6363

6464
public static $datasources = [
6565
'sample1' => [
@@ -88,10 +88,10 @@ class ConfigReadShellTest extends TestCase {
8888
*/
8989
public static function setUpBeforeClass() {
9090
// Prime the ConnectionManager with some configs.
91-
\Cake\Datasource\ConnectionManager::config(self::$datasources);
91+
ConnectionManager::config(self::$datasources);
9292

9393
// Prime the security salt.
94-
\Cake\Utility\Security::salt(self::$salt);
94+
Security::salt(self::$salt);
9595
}
9696

9797
/**
@@ -101,10 +101,10 @@ public static function setUpBeforeClass() {
101101
*/
102102
public static function tearDownAfterClass() {
103103
foreach (self::$datasources as $ds => $configs) {
104-
\Cake\Datasource\ConnectionManager::drop($ds);
104+
ConnectionManager::drop($ds);
105105
}
106106

107-
\Cake\Utility\Security::salt('');
107+
Security::salt('');
108108
}
109109

110110
/**
@@ -430,7 +430,7 @@ public function testMainSerializedIntegration($args, $expected, $msg = '') {
430430
'one' => 1,
431431
'two' => '2',
432432
3 => 'three',
433-
'stdClass' => (new \StdClass()),
433+
'stdClass' => (new StdClass()),
434434
],
435435
];
436436

0 commit comments

Comments
 (0)