Completed
Push — master ( b00023...d35b53 )
by Francis
04:02 queued 11s
created
src/Base/View/Method/MethodView.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $content = '';
46 46
         foreach ($this->generator->getLines() as $line) {
47 47
             foreach (explode("\n", $line) as $innerLine) {
48
-                $content .= $indent.$indent.$innerLine. "\n";
48
+                $content .= $indent.$indent.$innerLine."\n";
49 49
             }
50 50
         }
51 51
         return $content;
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $methodParameters = $this->buildMethodParameters($indent, '%1$s');
63 63
         // 3 = length of $formatVar - 1 (see line just below)
64 64
         // -1 because the first parameter don't have $formatVar
65
-        $methodParametersLength = strlen($methodParameters) - 3*(count($this->generator->getParameters())-1);
65
+        $methodParametersLength = strlen($methodParameters)-3 * (count($this->generator->getParameters())-1);
66 66
         $parametersFutureFormat = '%s%s%s';
67 67
         $content = sprintf('%s%s%s function %s(%s)%s',
68 68
             $indent,
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $parametersStart = '';
77 77
         $additionalIndentation = ' ';
78 78
         $parametersEnd = '';
79
-        $contentLength = strlen($content) - strlen($parametersFutureFormat) + $methodParametersLength;
79
+        $contentLength = strlen($content)-strlen($parametersFutureFormat)+$methodParametersLength;
80 80
         if ($contentLength > $this->generator->getPhpDocGenerator()->getWrapOn()) {
81 81
             // Make parameters go into multiline formation
82 82
             $additionalIndentation = "\n".$indent.$indent;
@@ -118,6 +118,6 @@  discard block
 block discarded – undo
118 118
             return '';
119 119
         }
120 120
 
121
-        return sprintf (': %s', $this->generator->getPhpReturnType());
121
+        return sprintf(': %s', $this->generator->getPhpReturnType());
122 122
     }
123 123
 }
124 124
\ No newline at end of file
Please login to merge, or discard this patch.
src/Base/View/Method/MethodParameterView.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@
 block discarded – undo
24 24
 
25 25
         $content = '';
26 26
 
27
-        $content .= !empty($this->generator->getTypes()) ? $this->generator->getPhpType() . ' ' : '';
27
+        $content .= !empty($this->generator->getTypes()) ? $this->generator->getPhpType().' ' : '';
28 28
         $content .= $this->generator->isByReference() ? '&' : '';
29 29
         $content .= $this->generator->getPhpName();
30
-        $content .= ($this->generator->getValue() !== null) ? ' = ' . $this->generator->getValue() : '';
30
+        $content .= ($this->generator->getValue() !== null) ? ' = '.$this->generator->getValue() : '';
31 31
 
32 32
         return $content;
33 33
     }
Please login to merge, or discard this patch.
src/Base/View/PhpDoc/PhpDocView.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
         $lines = [];
31 31
         foreach ($phpdocLines as $phpdocLine) {
32
-            $lines[] = sprintf('%s * %s', $indent,$phpdocLine);
32
+            $lines[] = sprintf('%s * %s', $indent, $phpdocLine);
33 33
         }
34 34
 
35 35
         return sprintf('%1$s/**%2$s%3$s%2$s%1$s */%2$s', $indent, "\n", implode("\n", $lines));
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
         foreach ($lines as $i=>$line) {
117 117
             $subLinePrefix = $i === 0 ? $linePrefix : $blankSubLinePrefix;
118
-            $lines[$i] = $subLinePrefix . $line;
118
+            $lines[$i] = $subLinePrefix.$line;
119 119
         }
120 120
 
121 121
         return $lines;
@@ -131,11 +131,11 @@  discard block
 block discarded – undo
131 131
         $currentLine = '';
132 132
 
133 133
         foreach (explode(' ', $line) as $word) {
134
-            if (iconv_strlen($currentLine . ' ' . $word) > $wrapOn) {
134
+            if (iconv_strlen($currentLine.' '.$word) > $wrapOn) {
135 135
                 $lines[] = $currentLine;
136 136
                 $currentLine = $word;
137 137
             } else {
138
-                $currentLine .= (!empty($currentLine) ? ' ' : '') . $word;
138
+                $currentLine .= (!empty($currentLine) ? ' ' : '').$word;
139 139
             }
140 140
         }
141 141
         $lines[] = $currentLine;
@@ -148,11 +148,11 @@  discard block
 block discarded – undo
148 148
      */
149 149
     public function orderLines(): void
150 150
     {
151
-        $this->generator->orderLines(function ($k1, $k2) {
151
+        $this->generator->orderLines(function($k1, $k2) {
152 152
             $o1 = array_search($k1, PhpDocGeneratorInterface::LINE_TYPE_ORDER);
153 153
             $o2 = array_search($k2, PhpDocGeneratorInterface::LINE_TYPE_ORDER);
154 154
 
155
-            return $o1 - $o2;
155
+            return $o1-$o2;
156 156
         });
157 157
     }
158 158
 }
159 159
\ No newline at end of file
Please login to merge, or discard this patch.
src/Base/Generator/Method/MethodParameterGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      */
61 61
     public function getPhpName(): string
62 62
     {
63
-        return '$' . $this->getName();
63
+        return '$'.$this->getName();
64 64
     }
65 65
 
66 66
     /**
Please login to merge, or discard this patch.
src/Base/Generator/Other/UsesGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         $isArray = 1 === preg_match('#\[\]$#', $use);
65 65
         $this->guessUse($use);
66
-        return $this->getInternalUseName($use) . ($isArray ? '[]' : '');
66
+        return $this->getInternalUseName($use).($isArray ? '[]' : '');
67 67
     }
68 68
 
69 69
     /**
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
         $i = 1;
211 211
         while ($this->hasInternalUse($uniqInternalUseName)) {
212
-            $uniqInternalUseName = $internalUseName . ++$i;
212
+            $uniqInternalUseName = $internalUseName.++$i;
213 213
         }
214 214
 
215 215
         if ($uniqInternalUseName !== $internalUseName) {
Please login to merge, or discard this patch.