Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Replace ThisWith ThisIs Regular ExpressionReplace Options
Array (array(nocase sensitive, match whole words
array (array(nocase sensitive, match whole words
Array(array(nocase sensitive, match whole words
(@param kEvent \$event)\n$1 Event.\nyescase sensitive, match whole words
[\t]+ \* @access protected\n yes 
=> NULL=> nullnocase sensitive, match whole words
\tclassmanually remove 1 indention level  
class (.*?) extends (.*?) \{class $1 extends $2\n\{yes 
@param Array @param array no, but notice space at the end 
* @param int * @param integer no, but notice space at the end 
(\* @param array \$params)\n$1 Tag params\.\nyes 
(// .*?[^\.])\n$1.\nyes, but manually check where a replacement is valid 

Class declaration

Another thing, that is fairly common is to apply 1 more extra TAB for class declaration indentation (see below). So it's commended to use Shift+TAB shortcut of PhpStorm to fix that instantly.

IncorrectCorrect
Code Block
<?php
 
	class SomeClass {


	}
Code Block
<?php
 
class SomeClass {
 
}

 

P.S.

In fact I've developed a coding standard already, but it's not mature yet to be released.

...