Passed
Push — master ( cd5214...019dde )
by Divine Niiquaye
08:40 queued 11s
created
src/PhpGenerator.php 1 patch
Switch Indentation   -26 removed lines patch added patch discarded remove patch
@@ -57,29 +57,3 @@
 block discarded – undo
57 57
     public function toString(Nette\PhpGenerator\ClassType $class): string
58 58
     {
59 59
         $class->setComment(<<<'COMMENT'
60
-/**
61
- * Main DependencyInjection Container. This class has been auto-generated
62
- * by the Nette Dependency Injection Component.
63
- *
64
- * Automatically detects if "container" property are presented in class or uses
65
- * global container as fallback.
66
- *
67
- */
68
-COMMENT);
69
-
70
-        return parent::toString($class);
71
-    }
72
-
73
-    public function generateMethod(Definitions\Definition $def): Nette\PhpGenerator\Method
74
-    {
75
-        $method   = parent::generateMethod($def);
76
-        $name     = $def->getName();
77
-        $comment  = 'This service can be accessed by it\'s name in lower case,';
78
-        $comment2 = "thus `%s`, using container get or make methods.\n\n@return %s";
79
-
80
-        $method->setProtected();
81
-        $method->setComment(\sprintf($comment . "\n" . $comment2, $name, $def->getType()));
82
-
83
-        return $method;
84
-    }
85
-}
Please login to merge, or discard this patch.