Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.

Commit bc001e8

Browse files
committed
Removing asterisks from compacted, annotated docblock.
1 parent ba44e12 commit bc001e8

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

src/lib/Herrera/Box/Compactor/Php.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ private function compactAnnotations($docblock)
121121

122122
foreach ($annotations as $annotation) {
123123
$annotation = new Tokens($annotation);
124-
$docblock .= "\n*" . $this->converter->convert($annotation);
124+
$docblock .= "\n" . $this->converter->convert($annotation);
125125
}
126126

127-
$docblock .= str_repeat("\n*", $breaks - count($annotations) - 1);
127+
$docblock .= str_repeat("\n", $breaks - count($annotations) - 1);
128128
$docblock .= "\n*/";
129129

130130
return $docblock;

src/tests/Herrera/Box/Tests/Compactor/PhpTest.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -109,35 +109,35 @@ class Test
109109
<?php
110110
111111
/**
112-
*@Entity()
113-
*@Table(name="test")
114-
*
115-
*
112+
@Entity()
113+
@Table(name="test")
114+
115+
116116
*/
117117
class Test
118118
{
119119
/**
120-
*@ORM\Column(type="integer")
121-
*@ORM\GeneratedValue()
122-
*@ORM\Id()
123-
*
124-
*
120+
@ORM\Column(type="integer")
121+
@ORM\GeneratedValue()
122+
@ORM\Id()
123+
124+
125125
*/
126126
private \$id;
127127
128128
/**
129-
*@ORM\ManyToMany(targetEntity="SomethingElse")
130-
*@ORM\JoinTable(name="aJoinTable",joinColumns={@ORM\JoinColumn(name="joined",referencedColumnName="foreign")},inverseJoinColumns={@ORM\JoinColumn(name="foreign",referencedColumnName="joined")})
131-
*
132-
*
133-
*
134-
*
135-
*
136-
*
137-
*
138-
*
139-
*
140-
*
129+
@ORM\ManyToMany(targetEntity="SomethingElse")
130+
@ORM\JoinTable(name="aJoinTable",joinColumns={@ORM\JoinColumn(name="joined",referencedColumnName="foreign")},inverseJoinColumns={@ORM\JoinColumn(name="foreign",referencedColumnName="joined")})
131+
132+
133+
134+
135+
136+
137+
138+
139+
140+
141141
*/
142142
private \$foreign;
143143

0 commit comments

Comments
 (0)