Completed
Push — master ( fd737c...3c6dfc )
by Iakov
03:12
created
Stenographer/Stenographer.php 1 patch
Spacing   +7 added lines, -9 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     private function getReturnedParams($route, $anonymousClass, $canAccessClass)
178 178
     {
179 179
         $reflection = $this->getEntityReflection($route->getDefault('_entity'));
180
-        $availableParams = $reflection->getName() . "\n";
180
+        $availableParams = $reflection->getName()."\n";
181 181
 
182 182
         foreach ($reflection->getProperties() as $property) {
183 183
             $anonymous = $this->reader->getPropertyAnnotation($property, $anonymousClass);
@@ -189,10 +189,9 @@  discard block
 block discarded – undo
189 189
                 $availableAccess = $access ? $access->roles : $availableAccess;
190 190
                 $availableAccess = implode(', ', $availableAccess);
191 191
 
192
-                $availableParams .= Inflector::tableize($property->getName()) . ':';
193
-                $availableParams .= $relation ? '<a href="#operations-tag-'.$this->getRelatedPropertyModelName($property).'">Related model</a>' :
194
-                    ($column ? $column->type : 'Unknown');
195
-                $availableParams .= ', Access: ' . $availableAccess . "\n";
192
+                $availableParams .= Inflector::tableize($property->getName()).':';
193
+                $availableParams .= $relation ? '<a href="#operations-tag-'.$this->getRelatedPropertyModelName($property).'">Related model</a>' : ($column ? $column->type : 'Unknown');
194
+                $availableParams .= ', Access: '.$availableAccess."\n";
196 195
             }
197 196
         }
198 197
 
@@ -246,8 +245,7 @@  discard block
 block discarded – undo
246 245
 
247 246
                 $param['description'] = $relation ?
248 247
                     '<a href="#operations-tag-'.$this->getRelatedPropertyModelName($property).'">'.
249
-                    'Related model description</a><pre>Access: ' . $availableAccess . '</pre>' :
250
-                    '<pre>Access: ' . $availableAccess . '</pre>';
248
+                    'Related model description</a><pre>Access: '.$availableAccess.'</pre>' : '<pre>Access: '.$availableAccess.'</pre>';
251 249
 
252 250
                 $availableParams[] = $param;
253 251
             }
@@ -259,8 +257,8 @@  discard block
 block discarded – undo
259 257
     private function getRelatedPropertyModelName($property)
260 258
     {
261 259
         $annotations = $this->reader->getPropertyAnnotations($property);
262
-        foreach ($annotations as $annotation){
263
-            if(
260
+        foreach ($annotations as $annotation) {
261
+            if (
264 262
                 $annotation instanceof OneToOne ||
265 263
                 $annotation instanceof OneToMany ||
266 264
                 $annotation instanceof ManyToOne ||
Please login to merge, or discard this patch.