Skip to content
This repository
Browse code

Correct style

  • Loading branch information...
commit 3b057cb82b1a04fe4598e898c6cd575b8d445808 1 parent 916d992
mreishus authored September 01, 2013

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  lib/Cake/Console/ConsoleInput.php
7  lib/Cake/Console/ConsoleInput.php
@@ -31,6 +31,7 @@ class ConsoleInput {
31 31
  * @var resource
32 32
  */
33 33
 	protected $_input;
  34
+
34 35
 /**
35 36
  * Can this instance use readline?
36 37
  * Two conditions must be met:
@@ -40,7 +41,7 @@ class ConsoleInput {
40 41
  *
41 42
  * @var bool
42 43
  */
43  
-	private $_can_readline;
  44
+	private $__canReadline;
44 45
 
45 46
 /**
46 47
  * Constructor
@@ -48,7 +49,7 @@ class ConsoleInput {
48 49
  * @param string $handle The location of the stream to use as input.
49 50
  */
50 51
 	public function __construct($handle = 'php://stdin') {
51  
-		$this->_can_readline = extension_loaded('readline') && $handle == 'php://stdin' ? true : false;
  52
+		$this->__canReadline = extension_loaded('readline') && $handle == 'php://stdin' ? true : false;
52 53
 		$this->_input = fopen($handle, 'r');
53 54
 	}
54 55
 
@@ -58,7 +59,7 @@ public function __construct($handle = 'php://stdin') {
58 59
  * @return mixed The value of the stream
59 60
  */
60 61
 	public function read() {
61  
-		if ($this->_can_readline) {
  62
+		if ($this->__canReadline) {
62 63
 			$line = readline('');
63 64
 			if (!empty($line)) {
64 65
 				readline_add_history($line);

0 notes on commit 3b057cb

Please sign in to comment.
Something went wrong with that request. Please try again.