Skip to content

Commit 3dcdde1

Browse files
committed
PHPCS: Fix up errors in src/WP_CLI/Entity
1 parent 59c5b8f commit 3dcdde1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/WP_CLI/Entity/NonExistentKeyException.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
namespace WP_CLI\Entity;
44

55
class NonExistentKeyException extends \OutOfBoundsException {
6-
/* @var \WP_CLI\Entity\RecursiveDataStructureTraverser */
6+
/*
7+
* Object of \WP_CLI\Entity\RecursiveDataStructureTraverser.
8+
*
9+
* @var object
10+
*/
711
protected $traverser;
812

913
/**

src/WP_CLI/Entity/RecursiveDataStructureTraverser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class RecursiveDataStructureTraverser {
2727
* @param static $parent
2828
*/
2929
public function __construct( &$data, $key = null, $parent = null ) {
30-
$this->data =& $data;
31-
$this->key = $key;
30+
$this->data =& $data;
31+
$this->key = $key;
3232
$this->parent = $parent;
3333
}
3434

@@ -172,6 +172,6 @@ protected function create_key() {
172172
*/
173173
public function exists( $key ) {
174174
return ( is_array( $this->data ) && array_key_exists( $key, $this->data ) ) ||
175-
( is_object( $this->data ) && property_exists( $this->data, $key ) );
175+
( is_object( $this->data ) && property_exists( $this->data, $key ) );
176176
}
177177
}

0 commit comments

Comments
 (0)