@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | ->addLine() |
40 | 40 | ->addLine('.. php:class:: ' . $interface->getName()) |
41 | 41 | ->addLine() |
42 | - ->addIndentLine(1,$interface->getName() . ' class') |
|
42 | + ->addIndentLine(1, $interface->getName() . ' class') |
|
43 | 43 | ->addLine(); |
44 | 44 | if ($docBlock) { |
45 | 45 | $this |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | foreach ($interface->getMethods() as $method) { |
52 | 52 | $docBlock = $method->getDocBlock(); |
53 | 53 | $params = []; |
54 | - if($docBlock !== null) { |
|
54 | + if ($docBlock !== null) { |
|
55 | 55 | /** @var Param $param */ |
56 | 56 | foreach ($docBlock->getTagsByName('param') as $param) { |
57 | 57 | $params[$param->getVariableName()] = $param; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $args .= '$' . $argument->getName() . ', '; |
63 | 63 | } |
64 | 64 | $args = substr($args, 0, -2); |
65 | - $this->addIndentLine(1, '.. php:method:: '.$method->getName().'('.$args.')'); |
|
65 | + $this->addIndentLine(1, '.. php:method:: ' . $method->getName() . '(' . $args . ')'); |
|
66 | 66 | $this->addLine(); |
67 | 67 | if ($docBlock) |
68 | 68 | $this->addIndentMultiline(2, $docBlock->getDescription()); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | if (is_dir($namespaceDir)) |
106 | 106 | continue; |
107 | 107 | if (!mkdir($namespaceDir, 0755, true)) { |
108 | - throw new \Exception('Could not create directory '. $namespaceDir); |
|
108 | + throw new \Exception('Could not create directory ' . $namespaceDir); |
|
109 | 109 | } |
110 | 110 | } |
111 | 111 | } |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | '; |
197 | 197 | |
198 | 198 | $namespaces = $this->project->getNamespaces(); |
199 | - usort($namespaces, function (Namespace_ $a, Namespace_ $b) { |
|
199 | + usort($namespaces, function(Namespace_ $a, Namespace_ $b) { |
|
200 | 200 | return strcmp($a->getFqsen(), $b->getFqsen()); |
201 | 201 | }); |
202 | 202 | foreach ($namespaces as $namespace) { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | /** @var Project */ |
33 | 33 | protected $project; |
34 | 34 | |
35 | - public function __construct(Project &$project) { |
|
35 | + public function __construct(Project&$project) { |
|
36 | 36 | $this->project = $project; |
37 | 37 | } |
38 | 38 |