Skip to content

Commit ee2de36

Browse files
committed
Renamed method.
1 parent aa231c9 commit ee2de36

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/CodeStore.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function clear()
162162

163163
//--------------------------------------------------------------------------------------------------------------------
164164
/**
165-
* Returns the generated code as a single string.
165+
* Returns the generated code properly indented as a single string.
166166
*
167167
* @since 1.0.0
168168
* @api
@@ -216,14 +216,14 @@ public function getCode()
216216

217217
//--------------------------------------------------------------------------------------------------------------------
218218
/**
219-
* Returns the code as an array of strings (without indentation).
219+
* Returns the raw code without indentation as an array of strings.
220220
*
221221
* @return string[]
222222
*
223223
* @since 1.0.0
224224
* @api
225225
*/
226-
public function getLines()
226+
public function getRawCode()
227227
{
228228
return $this->lines;
229229
}

test/CodeStoreTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function testGetLines()
104104

105105
$expected = ['begin', 'statement', 'statement', 'end'];
106106

107-
$code = $store->getLines();
107+
$code = $store->getRawCode();
108108
$this->assertEquals($expected, $code);
109109
}
110110

0 commit comments

Comments
 (0)