package Ġcom . vk . k php storm . configuration Ċ Ċ import Ġcom . intellij . openapi . editor . colors . Editor Colors Manager Ċ import Ġcom . intellij . openapi . editor . colors . impl . Abstract Colors Scheme Ċ import Ġcom . intellij . openapi . editor . colors . impl . Editor Colors ManagerImpl Ċ import Ġcom . intellij . openapi . editor . markup . Text Attributes Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġcom . intellij . profile . code Inspection . Project Inspection Profile Manager Ċ import Ġcom . jetbrains . php . lang . highlighter . Php Highlighting Data Ċ Ċ // Ġsetup ĠK PHP Storm Ġplugin Ġincludes Ġdisabling Ġsome Ġnative Ġins pe ctions Ġand Ġenabling Ġnew Ġones Ġinstead Ċ // Ġ( these Ġidentifiers Ġare Ġ< short Name > Ġfrom Ġplugin . xml Ġfrom Ġde compiled ĠPhpStorm Ġsources ) Ċ private Ġval Ġnative Ins pe ctions To Disable Ġ= ĠlistOf ( ĊĠĠĠĠĠĠĠ Ġ// Ġworks Ġincorrect Ġfor Ġ' km ixed ' ĊĠĠĠĠĠĠĠ Ġ" Php ToString Implementation Inspection ", ĊĠĠĠĠĠĠĠ Ġ// Ġworks Ġincorrect Ġfor Ġ' km ixed ', Ġ' future ', Ġ' T ' Ġetc ; Ġis Ġreplaced Ġby ĠK php Undefined Class Inspection ĊĠĠĠĠĠĠĠ Ġ" Php Undefined Class Inspection ", ĊĠĠĠĠĠĠĠ Ġ// Ġphp docs Ġand Ġtyping Ġin Ġthem Ġis Ġfully Ġreplaced Ġby ĠK php Doc Inspection ĊĠĠĠĠĠĠĠ Ġ" Php Doc Missing Return Tag Inspection ", ĊĠĠĠĠĠĠĠ Ġ" Php Doc Signature Inspection ", ĊĠĠĠĠĠĠĠ Ġ" Php Doc Duplicate Type Inspection ", ĊĠĠĠĠĠĠĠ Ġ" Php Doc FieldType Mismatch Inspection ", ĊĠĠĠĠĠĠĠ Ġ" Php Red undant Doc Comment Inspection ", ĊĠĠĠĠĠĠĠ Ġ// Ġ" PHP Ġ> ĠType Ġcompatibility " Ġins pe ctions Ġare Ġall Ġturned Ġoff , Ġas Ġthey Ġproduce Ġfalse Ġposit ives / neg atives ĊĠĠĠĠĠĠĠ Ġ" Php Params Inspection ", ĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ// ĠK php ParameterType Mismatch Inspection ĊĠĠĠĠĠĠĠ Ġ" Php Wrong Fore ach Argument Type Inspection ", ĠĠĠ Ġ// ĠArray And Indexing Inspection ĊĠĠĠĠĠĠĠ Ġ" Php Illegal Array KeyType Inspection ", ĠĠĠĠĠĠĠĠ Ġ// ĠArray And Indexing Inspection ĊĠĠĠĠĠĠĠ Ġ" Php Illegal String Offset Inspection ", ĠĠĠĠĠĠĠĠ Ġ// ĠArray And Indexing Inspection ĊĠĠĠĠĠĠĠ Ġ" Php Strict Type Checking Inspection ", ĠĠĠĠĠĠĠĠĠ Ġ// Ġdone Ġby Ġvarious Ġchecks ĊĠĠĠĠĠĠĠ Ġ" Php In compatible ReturnType Inspection ", ĠĠĠĠĠ Ġ// ĠK php ReturnType Mismatch Inspection ĊĠĠĠĠĠĠĠ Ġ" Php Missing FieldType Inspection ", ĠĠĠĠĠĠĠĠĠĠĠ Ġ// Ġdone Ġby Ġphp doc Ġchecks ĊĠĠĠĠĠĠĠ Ġ" Php Missing ReturnType Inspection ", ĠĠĠĠĠĠĠĠĠĠ Ġ// Ġdone Ġby Ġphp doc Ġchecks ĊĠĠĠĠĠĠĠ Ġ" Php Field Assignment Type Mismatch Inspection ", Ġ// ĠK php Assignment Type Mismatch Inspection ĊĠĠĠĠĠĠĠ Ġ" Php Red undant Type In Union Type Inspection ", ĠĠĠ Ġ// Ġdone Ġby Ġvarious Ġchecks ĊĠĠĠĠĠĠĠ Ġ" Php Missing Param Type Inspection ", ĠĠĠĠĠĠĠĠĠĠĠ Ġ// Ġdone Ġby Ġ@ param Ġinspection Ċ Ċ ) Ċ Ċ // Ġsetup ĠK PHP Storm Ġplugin Ġincludes Ġ" uncheck ing " Ġsome Ġcolors & fonts Ġfrom Ġ" PHP " Ġsection Ċ // Ġ( this Ġis Ġalready Ġlisted Ġin Ġcolor Schemes /*. xml , Ġbut Ġdoing Ġthis Ġalso Ġmanually Ġis Ġmore Ġreliable ) Ċ private Ġval Ġnative Text Attributes To Ann ulate Ġ= ĠlistOf ( ĊĠĠĠĠĠĠĠ ĠPhp Highlighting Data . DOC _ IDENTIFIER , ĊĠĠĠĠĠĠĠ ĠPhp Highlighting Data . DOC _ TAG , ĊĠĠĠĠĠĠĠ ĠPhp Highlighting Data . FUNCTION _ CALL Ċ ) Ċ Ċ /** Ċ Ġ* ĠPerform Ġplugin Ġsetup Ġfor Ġproject Ċ Ġ* Ġ 1 ) ĠDisable Ġsome Ġnative Ġins pe ctions Ġbut Ġenable Ġplugin 's Ċ Ġ* Ġ 2 ) ĠDisable Ġsome Ġnative Ġcolor Ġscheme Ġsettings , Ġnot Ġto Ġbe Ġmixed Ġwith ĠK php Storm Annot ator Ċ Ġ* ĠĠĠ Ġ( this Ġis Ġglobally , Ġnot Ġper - project , Ġbut Ġannot ator Ġalso Ġworks Ġglobally , Ġso Ġit Ġis Ġexpected ) Ċ Ġ*/ Ċ internal Ġfun Ġsetup K php Storm Plugin For Project ( project : ĠProject ) Ġ{ ĊĠĠĠ Ġval Ġcur Inspection Profile Ġ= ĠProject Inspection Profile Manager . getInstance ( project ). current Profile ĊĠĠĠ Ġfor Ġ( tool State Ġin Ġcur Inspection Profile . all Tools ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġinspection Ġ= Ġtool State . tool ĊĠĠĠĠĠĠĠ Ġval Ġshort Name Ġ= Ġinspection . short Name ĊĊĠĠĠĠĠĠĠ Ġif Ġ( inspection . group DisplayName Ġ== Ġ" K PHP Storm Ġplugin ") Ġ// Ġ< groupName > ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcur Inspection Profile . set Tool Enabled ( short Name , Ġtrue , Ġproject , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġif Ġ( native Ins pe ctions To Disable . contains ( short Name )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcur Inspection Profile . set Tool Enabled ( short Name , Ġfalse , Ġproject , Ġfalse ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġ// Ġthis Ġline Ġsaves Ġsettings Ġ( without Ġthis , Ġon / off Ġins pe ctions Ġrestore Ġprevious Ġstate Ġafter Ġrestart ) ĊĠĠĠ ĠProject Inspection Profile Manager . getInstance ( project ). fire Profile Changed ( cur Inspection Profile ) ĊĊĠĠĠĠĊĠĠĠ Ġval Ġcur Color Scheme Ġ= ĠEditor Colors Manager . getInstance (). global Scheme ĊĠĠĠ Ġval Ġempty Text Ġ= ĠText Attributes ( null , Ġnull , Ġnull , Ġnull , Ġ 0 ) ĊĠĠĠ Ġfor Ġ( attr Name Ġin Ġnative Text Attributes To Ann ulate ) Ġ{ ĊĠĠĠĠĠĠĠ Ġcur Color Scheme . set Attributes ( attr Name , Ġempty Text ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġ// Ġthese Ġlines Ġalso Ġsave Ġsettings Ġ( without Ġthem Ġcolor Ġsettings Ġrestore Ġprevious Ġstate Ġafter Ġrestart ) ĊĠĠĠ Ġ( cur Color Scheme Ġas ĠAbstract Colors Scheme ). set Save Needed ( true ) ĊĠĠĠ Ġ( Editor Colors Manager . getInstance () Ġas ĠEditor Colors ManagerImpl ). scheme Changed Or Sw itched ( null ) ĊĊĊĠĠĠ Ġ// Ġafter Ġhaving Ġmade Ġall Ġchanges , Ġsave Ġthat Ġsetup Ġwas Ġdone ĊĠĠĠ ĠK php Storm Configuration . save That Setup For Project Done ( project ) Ċ } Ċ