@@ -902,24 +902,6 @@ protected function createPhpDocs($class)
902
902
$ serializer = new DocBlockSerializer ();
903
903
$ docComment = $ serializer ->getDocComment ($ phpdoc );
904
904
905
- if ($ this ->write_mixin ) {
906
- $ phpdocMixin = new DocBlock ($ reflection , new Context ($ namespace ));
907
- // remove all mixin tags prefixed with IdeHelper
908
- foreach ($ phpdocMixin ->getTagsByName ('mixin ' ) as $ tag ) {
909
- if (Str::startsWith ($ tag ->getContent (), 'IdeHelper ' )) {
910
- $ phpdocMixin ->deleteTag ($ tag );
911
- }
912
- }
913
-
914
- $ mixinClassName = "IdeHelper {$ classname }" ;
915
- $ phpdocMixin ->appendTag (Tag::createInstance ("@mixin {$ mixinClassName }" , $ phpdocMixin ));
916
- $ mixinDocComment = $ serializer ->getDocComment ($ phpdocMixin );
917
- // remove blank lines if there's no text
918
- if (!$ phpdocMixin ->getText ()) {
919
- $ mixinDocComment = preg_replace ("/\s\*\s* \n/ " , '' , $ mixinDocComment );
920
- }
921
- }
922
-
923
905
if ($ this ->write ) {
924
906
$ modelDocComment = $ this ->write_mixin ? $ mixinDocComment : $ docComment ;
925
907
$ filename = $ reflection ->getFileName ();
@@ -939,7 +921,7 @@ protected function createPhpDocs($class)
939
921
}
940
922
941
923
if ($ this ->write_mixin ) {
942
- return "namespace {$ namespace }{ \n{$ docComment }\n\t{$ keyword }class {$ classname } {} \n} \n\n " ;
924
+ return "namespace {$ namespace }{ \n{$ docComment }\n\t{$ keyword }class IdeHelper {$ classname } {} \n} \n\n " ;
943
925
}
944
926
945
927
$ output = "namespace {$ namespace }{ \n{$ docComment }\n\t{$ keyword }class {$ className } extends \Eloquent " ;
0 commit comments