File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -29,24 +29,31 @@ example containing most features described below:
29
29
30
30
class Foo
31
31
{
32
- private $foo;
33
-
34
32
const SOME_CONST = 42;
35
33
34
+ private $foo;
35
+
36
+ /**
37
+ * @param string $dummy Some argument description
38
+ */
36
39
public function __construct($dummy)
37
40
{
38
- $this->foo = $this->init ($dummy);
41
+ $this->foo = $this->transform ($dummy);
39
42
}
40
43
41
- private function init($dummy)
44
+ /**
45
+ * @param string $dummy Some argument description
46
+ * @return string|null Transformed input
47
+ */
48
+ private function transform($dummy)
42
49
{
43
50
if (true === $dummy) {
44
51
return;
45
52
} elseif ('string' === $dummy) {
46
- $var = substr($dummy, 0, 5);
53
+ $dummy = substr($dummy, 0, 5);
47
54
}
48
55
49
- return $var ;
56
+ return $dummy ;
50
57
}
51
58
}
52
59
You can’t perform that action at this time.
0 commit comments