Completed
Push — master ( d1c60d...2373c3 )
by Josh
03:29
created
src/Passes/PassInterface.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
10 10
 interface PassInterface
11 11
 {
12 12
 	/**
13
-	* Run this pass
14
-	*
15
-	* @param  array[] $strings Original strings
16
-	* @return array[]          Modified strings
17
-	*/
13
+	 * Run this pass
14
+	 *
15
+	 * @param  array[] $strings Original strings
16
+	 * @return array[]          Modified strings
17
+	 */
18 18
 	public function run(array $strings);
19 19
 }
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
src/Passes/GroupSingleCharacters.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
10 10
 class GroupSingleCharacters extends AbstractPass
11 11
 {
12 12
 	/**
13
-	* {@inheritdoc}
14
-	*/
13
+	 * {@inheritdoc}
14
+	 */
15 15
 	protected function processStrings(array $strings)
16 16
 	{
17 17
 		$singles = $this->getSingleCharStrings($strings);
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
 	}
28 28
 
29 29
 	/**
30
-	* Return an array of every single-char string in given list of strings
31
-	*
32
-	* @param  array[] $strings
33
-	* @return array[]
34
-	*/
30
+	 * Return an array of every single-char string in given list of strings
31
+	 *
32
+	 * @param  array[] $strings
33
+	 * @return array[]
34
+	 */
35 35
 	protected function getSingleCharStrings(array $strings)
36 36
 	{
37 37
 		$singles = [];
Please login to merge, or discard this patch.
src/Passes/PromoteSingleStrings.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,19 +10,19 @@
 block discarded – undo
10 10
 class PromoteSingleStrings extends AbstractPass
11 11
 {
12 12
 	/**
13
-	* {@inheritdoc}
14
-	*/
13
+	 * {@inheritdoc}
14
+	 */
15 15
 	protected function processStrings(array $strings)
16 16
 	{
17 17
 		return array_map([$this, 'promoteSingleStrings'], $strings);
18 18
 	}
19 19
 
20 20
 	/**
21
-	* Promote single strings found inside given string
22
-	*
23
-	* @param  array $string Original string
24
-	* @return array         Modified string
25
-	*/
21
+	 * Promote single strings found inside given string
22
+	 *
23
+	 * @param  array $string Original string
24
+	 * @return array         Modified string
25
+	 */
26 26
 	protected function promoteSingleStrings(array $string)
27 27
 	{
28 28
 		$newString = [];
Please login to merge, or discard this patch.
src/Passes/MergeSuffix.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
10 10
 class MergeSuffix extends AbstractPass
11 11
 {
12 12
 	/**
13
-	* {@inheritdoc}
14
-	*/
13
+	 * {@inheritdoc}
14
+	 */
15 15
 	protected function processStrings(array $strings)
16 16
 	{
17 17
 		if (count($strings) < 2)
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
 	}
41 41
 
42 42
 	/**
43
-	* Test whether all given strings have the same last element
44
-	*
45
-	* @param  array[] $strings
46
-	* @return bool
47
-	*/
43
+	 * Test whether all given strings have the same last element
44
+	 *
45
+	 * @param  array[] $strings
46
+	 * @return bool
47
+	 */
48 48
 	protected function hasMatchingSuffix(array $strings)
49 49
 	{
50 50
 		$suffix = end($strings[1]);
Please login to merge, or discard this patch.
src/Passes/MergePrefix.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 		$newStrings = [];
18 18
 		foreach ($this->getStringsByPrefix($strings) as $prefix => $strings)
19 19
 		{
20
-			$newStrings[] =  (isset($strings[1])) ? $this->mergeStrings($strings) : $strings[0];
20
+			$newStrings[] = (isset($strings[1])) ? $this->mergeStrings($strings) : $strings[0];
21 21
 		}
22 22
 
23 23
 		return $newStrings;
Please login to merge, or discard this patch.
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
10 10
 class MergePrefix extends AbstractPass
11 11
 {
12 12
 	/**
13
-	* {@inheritdoc}
14
-	*/
13
+	 * {@inheritdoc}
14
+	 */
15 15
 	protected function processStrings(array $strings)
16 16
 	{
17 17
 		$newStrings = [];
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
 	}
25 25
 
26 26
 	/**
27
-	* Get the number of leading elements common to all given strings
28
-	*
29
-	* @param  array[] $strings
30
-	* @return integer
31
-	*/
27
+	 * Get the number of leading elements common to all given strings
28
+	 *
29
+	 * @param  array[] $strings
30
+	 * @return integer
31
+	 */
32 32
 	protected function getPrefixLength(array $strings)
33 33
 	{
34 34
 		$len = 1;
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
 	}
43 43
 
44 44
 	/**
45
-	* Return given strings grouped by their first element
46
-	*
47
-	* NOTE: assumes that this pass is run before the first element of any string could be replaced
48
-	*
49
-	* @param  array[] $strings
50
-	* @return array[]
51
-	*/
45
+	 * Return given strings grouped by their first element
46
+	 *
47
+	 * NOTE: assumes that this pass is run before the first element of any string could be replaced
48
+	 *
49
+	 * @param  array[] $strings
50
+	 * @return array[]
51
+	 */
52 52
 	protected function getStringsByPrefix(array $strings)
53 53
 	{
54 54
 		$byPrefix = [];
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
 	}
62 62
 
63 63
 	/**
64
-	* Merge given strings into a new single string
65
-	*
66
-	* @param  array[] $strings
67
-	* @return array
68
-	*/
64
+	 * Merge given strings into a new single string
65
+	 *
66
+	 * @param  array[] $strings
67
+	 * @return array
68
+	 */
69 69
 	protected function mergeStrings(array $strings)
70 70
 	{
71 71
 		$len       = $this->getPrefixLength($strings);
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
 	}
80 80
 
81 81
 	/**
82
-	* Test whether all given strings' elements match at given position
83
-	*
84
-	* @param  array[] $strings
85
-	* @param  integer $pos
86
-	* @return bool
87
-	*/
82
+	 * Test whether all given strings' elements match at given position
83
+	 *
84
+	 * @param  array[] $strings
85
+	 * @param  integer $pos
86
+	 * @return bool
87
+	 */
88 88
 	protected function stringsMatch(array $strings, $pos)
89 89
 	{
90 90
 		$value = $strings[0][$pos];
Please login to merge, or discard this patch.
src/Passes/CoalesceSingleCharacterPrefix.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
10 10
 class CoalesceSingleCharacterPrefix extends AbstractPass
11 11
 {
12 12
 	/**
13
-	* {@inheritdoc}
14
-	*/
13
+	 * {@inheritdoc}
14
+	 */
15 15
 	protected function processStrings(array $strings)
16 16
 	{
17 17
 		$newStrings = [];
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
 	}
39 39
 
40 40
 	/**
41
-	* Get a list of keys of strings eligible to be merged together, grouped by suffix
42
-	*
43
-	* @param  array[] $strings
44
-	* @return array[]
45
-	*/
41
+	 * Get a list of keys of strings eligible to be merged together, grouped by suffix
42
+	 *
43
+	 * @param  array[] $strings
44
+	 * @return array[]
45
+	 */
46 46
 	protected function getEligibleStrings(array $strings)
47 47
 	{
48 48
 		$eligibleStrings = [];
Please login to merge, or discard this patch.
src/Passes/Recurse.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -12,32 +12,32 @@
 block discarded – undo
12 12
 class Recurse extends AbstractPass
13 13
 {
14 14
 	/**
15
-	* @var Runner
16
-	*/
15
+	 * @var Runner
16
+	 */
17 17
 	protected $runner;
18 18
 
19 19
 	/**
20
-	* @param Runner $runner
21
-	*/
20
+	 * @param Runner $runner
21
+	 */
22 22
 	public function __construct(Runner $runner)
23 23
 	{
24 24
 		$this->runner = $runner;
25 25
 	}
26 26
 
27 27
 	/**
28
-	* {@inheritdoc}
29
-	*/
28
+	 * {@inheritdoc}
29
+	 */
30 30
 	protected function processStrings(array $strings)
31 31
 	{
32 32
 		return array_map([$this, 'recurseString'], $strings);
33 33
 	}
34 34
 
35 35
 	/**
36
-	* Recurse into given string and run all passes on each element
37
-	*
38
-	* @param  array $string
39
-	* @return array
40
-	*/
36
+	 * Recurse into given string and run all passes on each element
37
+	 *
38
+	 * @param  array $string
39
+	 * @return array
40
+	 */
41 41
 	protected function recurseString(array $string)
42 42
 	{
43 43
 		foreach ($string as $k => $element)
Please login to merge, or discard this patch.
src/Output/PHP.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 class JavaScript extends PrintableAscii
13 13
 {
14 14
 	/**
15
-	* {@inheritdoc}
16
-	*/
15
+	 * {@inheritdoc}
16
+	 */
17 17
 	public function escapeUnicode($cp)
18 18
 	{
19 19
 		if ($cp > 0xFFFF)
Please login to merge, or discard this patch.
src/Output/Bytes.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 class JavaScript extends PrintableAscii
13 13
 {
14 14
 	/**
15
-	* {@inheritdoc}
16
-	*/
15
+	 * {@inheritdoc}
16
+	 */
17 17
 	public function escapeUnicode($cp)
18 18
 	{
19 19
 		if ($cp > 0xFFFF)
Please login to merge, or discard this patch.