Completed
Push — master ( d4cce2...09a4c4 )
by Francis
02:41
created
src/Swagger/Generator/Operation/OperationsMethodGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             $suffix = '.\'[]\'';
49 49
         }
50 50
 
51
-        return rtrim($this->returnTypes[0], '[]') . '::class' . $suffix;
51
+        return rtrim($this->returnTypes[0], '[]').'::class'.$suffix;
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.
src/Base/Generator/Object/Method/MethodGenerator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $content = '';
101 101
         foreach ($this->lines as $line) {
102 102
             foreach (explode("\n", $line) as $innerLine) {
103
-                $content .= $indent.$indent.$innerLine. "\n";
103
+                $content .= $indent.$indent.$innerLine."\n";
104 104
             }
105 105
         }
106 106
         return $content;
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         $methodParameters = $this->buildMethodParameters($indent, '%1$s');
118 118
         // 3 = length of $formatVar - 1 (see line just below)
119 119
         // -1 because the first parameter don't have $formatVar
120
-        $methodParametersLength = strlen($methodParameters) - 3*(count($this->parameters)-1);
120
+        $methodParametersLength = strlen($methodParameters)-3 * (count($this->parameters)-1);
121 121
         $parametersFutureFormat = '%s%s%s';
122 122
         $content = sprintf('%s%s%s function %s (%s)%s',
123 123
             $indent,
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         $parametersStart = '';
132 132
         $additionalIndentation = ' ';
133 133
         $parametersEnd = '';
134
-        $contentLength = strlen($content) - strlen($parametersFutureFormat) + $methodParametersLength;
134
+        $contentLength = strlen($content)-strlen($parametersFutureFormat)+$methodParametersLength;
135 135
         if ($contentLength > $this->phpDocBuilder->getWrapOn()) {
136 136
             // Make parameters go into multiline formation
137 137
             $additionalIndentation = "\n".$indent.$indent;
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
             return '';
174 174
         }
175 175
 
176
-        return sprintf (': %s', $this->getPhpReturnType());
176
+        return sprintf(': %s', $this->getPhpReturnType());
177 177
     }
178 178
 
179 179
     /**
Please login to merge, or discard this patch.