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

Commit

Permalink
Removing asterisks from compacted, annotated docblock.
Browse files Browse the repository at this point in the history
  • Loading branch information
kherge committed Aug 9, 2013
1 parent ba44e12 commit bc001e8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions src/lib/Herrera/Box/Compactor/Php.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ private function compactAnnotations($docblock)

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

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

return $docblock;
Expand Down
42 changes: 21 additions & 21 deletions src/tests/Herrera/Box/Tests/Compactor/PhpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,35 +109,35 @@ class Test
<?php
/**
*@Entity()
*@Table(name="test")
*
*
@Entity()
@Table(name="test")
*/
class Test
{
/**
*@ORM\Column(type="integer")
*@ORM\GeneratedValue()
*@ORM\Id()
*
*
@ORM\Column(type="integer")
@ORM\GeneratedValue()
@ORM\Id()
*/
private \$id;
/**
*@ORM\ManyToMany(targetEntity="SomethingElse")
*@ORM\JoinTable(name="aJoinTable",joinColumns={@ORM\JoinColumn(name="joined",referencedColumnName="foreign")},inverseJoinColumns={@ORM\JoinColumn(name="foreign",referencedColumnName="joined")})
*
*
*
*
*
*
*
*
*
*
@ORM\ManyToMany(targetEntity="SomethingElse")
@ORM\JoinTable(name="aJoinTable",joinColumns={@ORM\JoinColumn(name="joined",referencedColumnName="foreign")},inverseJoinColumns={@ORM\JoinColumn(name="foreign",referencedColumnName="joined")})
*/
private \$foreign;
Expand Down

0 comments on commit bc001e8

Please sign in to comment.