@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | * In this example we demonstrate how you can add your own Tag using a Static Factory method in your Tag class. |
4 | 4 | */ |
5 | 5 | |
6 | -require_once(__DIR__ . '/../vendor/autoload.php'); |
|
6 | +require_once(__DIR__.'/../vendor/autoload.php'); |
|
7 | 7 | |
8 | 8 | use phpDocumentor\Reflection\DocBlock\Serializer; |
9 | 9 | use phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function __toString() |
106 | 106 | { |
107 | - return (string)$this->description; |
|
107 | + return (string) $this->description; |
|
108 | 108 | } |
109 | 109 | } |
110 | 110 |
@@ -86,7 +86,7 @@ |
||
86 | 86 | |
87 | 87 | $tags = []; |
88 | 88 | foreach ($this->tags as $tag) { |
89 | - $tags[] = '{' . $formatter->format($tag) . '}'; |
|
89 | + $tags[] = '{'.$formatter->format($tag).'}'; |
|
90 | 90 | } |
91 | 91 | return vsprintf($this->bodyTemplate, $tags); |
92 | 92 | } |
@@ -79,6 +79,6 @@ |
||
79 | 79 | */ |
80 | 80 | public function __toString() |
81 | 81 | { |
82 | - return $this->refers . ($this->description ? ' ' . $this->description->render() : ''); |
|
82 | + return $this->refers.($this->description ? ' '.$this->description->render() : ''); |
|
83 | 83 | } |
84 | 84 | } |
@@ -111,8 +111,8 @@ |
||
111 | 111 | */ |
112 | 112 | public function __toString() |
113 | 113 | { |
114 | - return ($this->type ? $this->type . ' ' : '') |
|
115 | - . '$' . $this->variableName |
|
116 | - . ($this->description ? ' ' . $this->description : ''); |
|
114 | + return ($this->type ? $this->type.' ' : '') |
|
115 | + . '$'.$this->variableName |
|
116 | + . ($this->description ? ' '.$this->description : ''); |
|
117 | 117 | } |
118 | 118 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | */ |
74 | 74 | public function __toString() |
75 | 75 | { |
76 | - return $this->authorName . '<' . $this->authorEmail . '>'; |
|
76 | + return $this->authorName.'<'.$this->authorEmail.'>'; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -111,8 +111,8 @@ |
||
111 | 111 | */ |
112 | 112 | public function __toString() |
113 | 113 | { |
114 | - return ($this->type ? $this->type . ' ' : '') |
|
115 | - . '$' . $this->variableName |
|
116 | - . ($this->description ? ' ' . $this->description : ''); |
|
114 | + return ($this->type ? $this->type.' ' : '') |
|
115 | + . '$'.$this->variableName |
|
116 | + . ($this->description ? ' '.$this->description : ''); |
|
117 | 117 | } |
118 | 118 | } |
@@ -111,8 +111,8 @@ |
||
111 | 111 | */ |
112 | 112 | public function __toString() |
113 | 113 | { |
114 | - return ($this->type ? $this->type . ' ' : '') |
|
115 | - . '$' . $this->variableName |
|
116 | - . ($this->description ? ' ' . $this->description : ''); |
|
114 | + return ($this->type ? $this->type.' ' : '') |
|
115 | + . '$'.$this->variableName |
|
116 | + . ($this->description ? ' '.$this->description : ''); |
|
117 | 117 | } |
118 | 118 | } |
@@ -111,8 +111,8 @@ |
||
111 | 111 | */ |
112 | 112 | public function __toString() |
113 | 113 | { |
114 | - return ($this->type ? $this->type . ' ' : '') |
|
115 | - . '$' . $this->variableName |
|
116 | - . ($this->description ? ' ' . $this->description : ''); |
|
114 | + return ($this->type ? $this->type.' ' : '') |
|
115 | + . '$'.$this->variableName |
|
116 | + . ($this->description ? ' '.$this->description : ''); |
|
117 | 117 | } |
118 | 118 | } |
@@ -67,6 +67,6 @@ |
||
67 | 67 | |
68 | 68 | public function __toString() |
69 | 69 | { |
70 | - return $this->type . ' ' . $this->description; |
|
70 | + return $this->type.' '.$this->description; |
|
71 | 71 | } |
72 | 72 | } |