Passed
Branch master (c3aceb)
by Lluís
04:49
created
src/application/FilesTreatment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,13 +65,13 @@
 block discarded – undo
65 65
      */
66 66
     private static function filesFromDirectory(string $directory, array &$results = array()): array {
67 67
         $files = scandir($directory);
68
-        foreach($files as $value) {
68
+        foreach ($files as $value) {
69 69
             $path = realpath($directory . DIRECTORY_SEPARATOR . $value);
70
-            if(!is_dir($path)) {
70
+            if (!is_dir($path)) {
71 71
                 if (pathinfo($path, PATHINFO_EXTENSION) === 'php') {
72 72
                     $results[] = new \phpDocumentor\Reflection\File\LocalFile($path);
73 73
                 }
74
-            } else if($value != '.' && $value != '..') {
74
+            } else if ($value != '.' && $value != '..') {
75 75
                 self::filesFromDirectory($path, $results);
76 76
             }
77 77
         }
Please login to merge, or discard this patch.
src/create_documentation/PDFFile.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
                 $separator = $type !== '' ? ': ' : '';
166 166
                 $this->html .= '<h3><a name="property:' . $property->getName() . '">$' . $property->getName() . ' (' . $property->getVisibility() .')</a></h3>
167 167
                 <pre>$'. $property->getName() . $separator .  $type . '</pre><i>' . $summary . '</i>' . $description .
168
-                     ($type !== '' ? ('<h4>Type</h4>' . $type) : '');
168
+                        ($type !== '' ? ('<h4>Type</h4>' . $type) : '');
169 169
             }
170 170
         }
171 171
     }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,10 +103,10 @@  discard block
 block discarded – undo
103 103
             $constants_['public'] .= '<a href="#constant:' . $constant->getName() . '">' . $constant->getName() . '</a><br>';
104 104
         }
105 105
         foreach ($properties as $property) {
106
-            $properties_[strval($property->getVisibility())] .= '<a href="#property:' .$property->getName() . '">$' .$property->getName() . '</a><br>';
106
+            $properties_[strval($property->getVisibility())] .= '<a href="#property:' . $property->getName() . '">$' . $property->getName() . '</a><br>';
107 107
         }
108 108
         foreach ($methods as $method) {
109
-            $methods_[strval($method->getVisibility())] .= '<a href="#method:' .$method->getName() . '">' .$method->getName() . '</a><br>';
109
+            $methods_[strval($method->getVisibility())] .= '<a href="#method:' . $method->getName() . '">' . $method->getName() . '</a><br>';
110 110
         }
111 111
         $this->html .= '<h2>Summary</h2>';
112 112
         $this->html .= '<table>
@@ -159,12 +159,12 @@  discard block
 block discarded – undo
159 159
         if (!empty($properties)) {
160 160
             $this->html .= '<h2>Properties</h2>';
161 161
             foreach ($properties as $property) {
162
-                $summary = ($property->getDocBlock() !== null && $property->getDocBlock()->getSummary() !== '') ?$property->getDocBlock()->getSummary() . '<br>' : '';
162
+                $summary = ($property->getDocBlock() !== null && $property->getDocBlock()->getSummary() !== '') ? $property->getDocBlock()->getSummary() . '<br>' : '';
163 163
                 $description = ($property->getDocBlock() !== null && $property->getDocBlock()->getDescription() !== '') ? $property->getDocBlock()->getDescription() : '';
164 164
                 $type = ($property->getDocBlock() !== null && $property->getDocBlock()->hasTag('var')) ? explode(' ', $property->getDocBlock()->getTagsByName('var')[0]->render(), 2)[1] : '';
165 165
                 $separator = $type !== '' ? ': ' : '';
166
-                $this->html .= '<h3><a name="property:' . $property->getName() . '">$' . $property->getName() . ' (' . $property->getVisibility() .')</a></h3>
167
-                <pre>$'. $property->getName() . $separator .  $type . '</pre><i>' . $summary . '</i>' . $description .
166
+                $this->html .= '<h3><a name="property:' . $property->getName() . '">$' . $property->getName() . ' (' . $property->getVisibility() . ')</a></h3>
167
+                <pre>$'. $property->getName() . $separator . $type . '</pre><i>' . $summary . '</i>' . $description .
168 168
                      ($type !== '' ? ('<h4>Type</h4>' . $type) : '');
169 169
             }
170 170
         }
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                 $summary = ($method->getDocBlock() !== null && $method->getDocBlock()->getSummary() !== '') ? $method->getDocBlock()->getSummary() . '<br>' : '';
185 185
                 $description = ($method->getDocBlock() !== null && $method->getDocBlock()->getDescription() !== '') ? $method->getDocBlock()->getDescription() : '';
186 186
                 $this->html .= '<h3><a name="method:' . $method->getName() . '">' . $method->getName() . ' (' . $method->getVisibility() . ')</a></h3>
187
-                <pre>' . $method->getName() . '('. implode(', ', $argumentNames) . ')' . ($method->getReturnType() != 'mixed' ? ': ' . $method->getReturnType() : '');
187
+                <pre>' . $method->getName() . '(' . implode(', ', $argumentNames) . ')' . ($method->getReturnType() != 'mixed' ? ': ' . $method->getReturnType() : '');
188 188
                 $this->html .= '</pre><i>' . $summary . '</i>' . $description;
189 189
                 if (!empty($method->getArguments())) {
190 190
                     $this->html .= '<h4>Parameters</h4>';
Please login to merge, or discard this patch.