Passed
Push — master ( 682fcd...f00a38 )
by Julius
01:55
created
src/Extension/TocExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
                 /** @var Interface_ $interface */
53 53
                 $interface = $builder->getElement();
54 54
 
55
-                if(count($interface->getMethods()) > 0) {
55
+                if (count($interface->getMethods()) > 0) {
56 56
                     $builder->addH3('Methods');
57 57
                     foreach ($interface->getMethods() as $method) {
58 58
                         $args = '';
Please login to merge, or discard this patch.
src/GenerateDocumentationCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,13 +69,13 @@
 block discarded – undo
69 69
             $apiDocBuilder->setVerboseOutput(true);
70 70
             $apiDocBuilder->setDebugOutput(true);
71 71
         }
72
-        if($input->getOption('public-only')) {
72
+        if ($input->getOption('public-only')) {
73 73
             $apiDocBuilder->addExtension(PublicOnlyExtension::class);
74 74
         }
75
-        if(!$input->getOption('show-private')) {
75
+        if (!$input->getOption('show-private')) {
76 76
             $apiDocBuilder->addExtension(NoPrivateExtension::class);
77 77
         }
78
-        if($input->getOption('element-toc')) {
78
+        if ($input->getOption('element-toc')) {
79 79
             $apiDocBuilder->addExtension(TocExtension::class);
80 80
         }
81 81
         $apiDocBuilder->build();
Please login to merge, or discard this patch.
src/Builder/PhpDomainBuilder.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * @return mixed
71 71
      */
72 72
     public static function getNamespace(Element $element) {
73
-        return substr($element->getFqsen(), 0, strlen($element->getFqsen())-strlen('\\'. $element->getName()));
73
+        return substr($element->getFqsen(), 0, strlen($element->getFqsen()) - strlen('\\' . $element->getName()));
74 74
         //return str_replace('\\' . $element->getName(), '', $element->getFqsen());
75 75
     }
76 76
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      * @param Property $property
165 165
      */
166 166
     private function addProperty(Property $property) {
167
-        $modifiers = $property->isStatic() ? '' : ' static' ;
167
+        $modifiers = $property->isStatic() ? '' : ' static';
168 168
         $this->beginPhpDomain('attr', $property->getVisibility() . $modifiers . ' ' . $property->getName());
169 169
         $docBlock = $property->getDocBlock();
170 170
         $this->addDocBlockDescription($property);
@@ -239,10 +239,10 @@  discard block
 block discarded – undo
239 239
                 $args .= self::escape($type) . '|';
240 240
             }
241 241
             $args = substr($args, 0, -1) . ' ';
242
-            if($argument->isVariadic()) {
242
+            if ($argument->isVariadic()) {
243 243
                 $args .= '...';
244 244
             }
245
-            if($argument->isByReference()) {
245
+            if ($argument->isByReference()) {
246 246
                 $args .= '&';
247 247
             }
248 248
             $args .= '$' . $argument->getName();
@@ -271,10 +271,10 @@  discard block
 block discarded – undo
271 271
                 if ($param !== null) {
272 272
                     $typString = $param->getType();
273 273
                     // Remove first \ to allow references
274
-                    if(0 === strpos($typString, '\\')) {
274
+                    if (0 === strpos($typString, '\\')) {
275 275
                         $typString = substr($typString, 1);
276 276
                     }
277
-                    $this->addMultiline(':param '.self::escape($typString).' $' . $argument->getName() . ': ' . $param->getDescription(), true);
277
+                    $this->addMultiline(':param ' . self::escape($typString) . ' $' . $argument->getName() . ': ' . $param->getDescription(), true);
278 278
                 }
279 279
             }
280 280
             foreach ($docBlock->getTags() as $tag) {
@@ -290,8 +290,8 @@  discard block
 block discarded – undo
290 290
      * @param $fqsen string
291 291
      * @return string
292 292
      */
293
-    public static function getLink($type, $fqsen, $description='') {
294
-        if($description !== '') {
293
+    public static function getLink($type, $fqsen, $description = '') {
294
+        if ($description !== '') {
295 295
             return ':php:' . $type . ':`' . RstBuilder::escape($description) . '<' . RstBuilder::escape(substr($fqsen, 1)) . '>`';
296 296
         }
297 297
         return ':php:' . $type . ':`' . RstBuilder::escape(substr($fqsen, 1)) . '`';
Please login to merge, or discard this patch.