Completed
Branch 1.x.x-dev (09212c)
by Sławomir
02:01
created
src/HelloWordPl/SimpleEntityGeneratorBundle/Lib/Items/ClassManager.php 1 patch
Doc Comments   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 
199 199
     /**
200 200
      * @param ArrayCollection $methods
201
-     * @return InterfaceManager
201
+     * @return ClassManager
202 202
      */
203 203
     public function setMethods(ArrayCollection $methods)
204 204
     {
@@ -270,6 +270,7 @@  discard block
 block discarded – undo
270 270
 
271 271
     /**
272 272
      * @param string
273
+     * @param string $comment
273 274
      * @return ClassManager
274 275
      */
275 276
     public function setComment($comment)
@@ -410,7 +411,7 @@  discard block
 block discarded – undo
410 411
     /**
411 412
      * Return set of tags used in template
412 413
      *
413
-     * @return array
414
+     * @return string[]
414 415
      */
415 416
     public function getTemplateTags()
416 417
     {
@@ -461,7 +462,7 @@  discard block
 block discarded – undo
461 462
 
462 463
     /**
463 464
      * @param string $classManagerTemplatePath
464
-     * @return this
465
+     * @return ClassManager
465 466
      */
466 467
     public function setClassManagerTemplatePath($classManagerTemplatePath)
467 468
     {
@@ -471,7 +472,7 @@  discard block
 block discarded – undo
471 472
 
472 473
     /**
473 474
      * @param string $classConstructorManagerTemplatePath
474
-     * @return this
475
+     * @return ClassManager
475 476
      */
476 477
     public function setClassConstructorManagerTemplatePath($classConstructorManagerTemplatePath)
477 478
     {
@@ -481,7 +482,7 @@  discard block
 block discarded – undo
481 482
 
482 483
     /**
483 484
      * @param string $interfaceManagerTemplatePath
484
-     * @return this
485
+     * @return ClassManager
485 486
      */
486 487
     public function setInterfaceManagerTemplatePath($interfaceManagerTemplatePath)
487 488
     {
@@ -491,7 +492,7 @@  discard block
 block discarded – undo
491 492
 
492 493
     /**
493 494
      * @param string $testClassManagerTemplatePath
494
-     * @return this
495
+     * @return ClassManager
495 496
      */
496 497
     public function setTestClassManagerTemplatePath($testClassManagerTemplatePath)
497 498
     {
Please login to merge, or discard this patch.
src/HelloWordPl/SimpleEntityGeneratorBundle/Lib/Items/InterfaceManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@
 block discarded – undo
180 180
     /**
181 181
      * Return set of tags used in template
182 182
      *
183
-     * @return array
183
+     * @return string[]
184 184
      */
185 185
     public function getTemplateTags()
186 186
     {
Please login to merge, or discard this patch.
src/HelloWordPl/SimpleEntityGeneratorBundle/Lib/Items/PropertyManager.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,7 +234,6 @@  discard block
 block discarded – undo
234 234
     /**
235 235
      * Return prepared property name eg. name_and_surname => nameAndSurname
236 236
      *
237
-     * @param string $propertyName
238 237
      * @return string
239 238
      */
240 239
     public function getPreparedName()
@@ -363,7 +362,7 @@  discard block
 block discarded – undo
363 362
     /**
364 363
      * Return set of tags used in template
365 364
      *
366
-     * @return array
365
+     * @return string[]
367 366
      */
368 367
     public function getTemplateTags()
369 368
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -580,6 +580,6 @@
 block discarded – undo
580 580
             throw new Exception("This is not object type");
581 581
         }
582 582
 
583
-        return "\\" . $this->getTypeName();
583
+        return "\\".$this->getTypeName();
584 584
     }
585 585
 }
Please login to merge, or discard this patch.
src/HelloWordPl/SimpleEntityGeneratorBundle/Lib/Items/TestClassManager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      * Set collection of methods
78 78
      *
79 79
      * @param ArrayCollection $methods
80
-     * @return InterfaceManager
80
+     * @return TestClassManager
81 81
      */
82 82
     public function setMethods(ArrayCollection $methods)
83 83
     {
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     /**
192 192
      * Return set of tags used in template
193 193
      *
194
-     * @return array
194
+     * @return string[]
195 195
      */
196 196
     public function getTemplateTags()
197 197
     {
Please login to merge, or discard this patch.
src/HelloWordPl/SimpleEntityGeneratorBundle/Lib/Renderer.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
     }
440 440
 
441 441
     /**
442
-     * @param mixed $item
442
+     * @param RenderableInterface $item
443 443
      * @return UnrecognizedItemToRenderException
444 444
      */
445 445
     protected function getExceptionUnrecognizedItem($item)
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
     }
509 509
 
510 510
     /**
511
-     * @param \ArrayCollection $collection
511
+     * @param ArrayCollection $collection
512 512
      * @return string
513 513
      */
514 514
     protected function prepareMultilineCommentForCollection(ArrayCollection $collection)
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -541,7 +541,7 @@
 block discarded – undo
541 541
         if ($property->isObjectType()) {
542 542
             return $property->getTypeNameAbsoluteIfIsObjectTypeOrThrowException();
543 543
         } else {
544
-           return $property->getTypeName(); 
544
+            return $property->getTypeName(); 
545 545
         }
546 546
     }
547 547
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -430,7 +430,7 @@
 block discarded – undo
430 430
     {
431 431
         $parts = Tools::explodeTemplateStringToArray($template);
432 432
         array_walk(
433
-            $parts, function (&$value) use ($spaces) {
433
+            $parts, function(&$value) use ($spaces) {
434 434
             $value = str_pad($value, strlen($value) + (int) $spaces, " ", STR_PAD_LEFT);
435 435
         }
436 436
         );
Please login to merge, or discard this patch.
src/HelloWordPl/SimpleEntityGeneratorBundle/Lib/StructureGenerator.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      * - setters and getters for Class and Interface (optional)
133 133
      * - method with prefix is for boolean properties
134 134
      *
135
-     * @param \HelloWordPl\SimpleEntityGeneratorBundle\Lib\ClassManager $classManager
135
+     * @param ClassManager $classManager
136 136
      */
137 137
     protected function generateAndFillClassMethods(ClassManager $classManager)
138 138
     {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      * Generate methods for interface
167 167
      *
168 168
      * @param InterfaceManager $interface
169
-     * @return ArrayCollection
169
+     * @return InterfaceManager
170 170
      */
171 171
     protected function generateAndFillInterfaceMethods(InterfaceManager $interface)
172 172
     {
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     }
265 265
 
266 266
     /**
267
-     * @param mixed $classConfig
267
+     * @param null|ClassConfig $classConfig
268 268
      * @return ClassConfig
269 269
      */
270 270
     private function getDefaultClassConfigIfNeed($classConfig)
Please login to merge, or discard this patch.
src/HelloWordPl/SimpleEntityGeneratorBundle/Lib/StructureResolver.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 
220 220
     /**
221 221
      * @param ReflectionClass $reflectionClass
222
-     * @return type
222
+     * @return integer
223 223
      */
224 224
     protected function getNewInitPropertyPosition(ReflectionClass $reflectionClass)
225 225
     {
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 
235 235
     /**
236 236
      * @param ReflectionClass $reflectionClass
237
-     * @return type
237
+     * @return integer
238 238
      */
239 239
     protected function getNewPropertyPosition(ReflectionClass $reflectionClass)
240 240
     {
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     }
266 266
 
267 267
     /**
268
-     * @param mixed $item
268
+     * @param DumpableInterface $item
269 269
      * @return UnrecognizedItemToDumpException
270 270
      */
271 271
     protected function getExceptionUnrecognizedItem($item)
Please login to merge, or discard this patch.
src/HelloWordPl/SimpleEntityGeneratorBundle/Tests/Lib/Dummies/User.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * For property "fullName"
63 63
      *
64 64
      * @param string $fullName
65
-     * @return this
65
+     * @return User
66 66
      */
67 67
     public function setFullName($fullName)
68 68
     {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * For property "email"
85 85
      *
86 86
      * @param string $email
87
-     * @return this
87
+     * @return User
88 88
      */
89 89
     public function setEmail($email)
90 90
     {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * For property "active"
117 117
      *
118 118
      * @param boolean $active
119
-     * @return this
119
+     * @return User
120 120
      */
121 121
     public function setActive($active)
122 122
     {
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      * For property "newPosts"
139 139
      *
140 140
      * @param Doctrine\Common\Collections\ArrayCollection<AppBundle\Entity\Post> $newPosts
141
-     * @return this
141
+     * @return User
142 142
      */
143 143
     public function setNewPosts(\Doctrine\Common\Collections\ArrayCollection $newPosts)
144 144
     {
Please login to merge, or discard this patch.
HelloWordPl/SimpleEntityGeneratorBundle/Tests/Lib/StructureResolverTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -926,7 +926,7 @@
 block discarded – undo
926 926
      * Prepare correct ClassManager
927 927
      *
928 928
      * @param $newProperties ArrayCollection
929
-     * @return ClassManager
929
+     * @return DumpableInterface
930 930
      */
931 931
     protected function preapareClassManager()
932 932
     {
Please login to merge, or discard this patch.