@@ -9,7 +9,7 @@ class Properties
99 * List of existing constructor prefix
1010 * @var array
1111 */
12- protected $ constructors = array (
12+ protected static $ constructors = array (
1313 'ms ' , 'moz ' , 'webkit ' , 'o ' ,
1414 );
1515
@@ -18,7 +18,7 @@ class Properties
1818 * https://www.w3.org/Style/CSS/all-properties.en.html
1919 * @var array
2020 */
21- protected $ standards = array (
21+ protected static $ standards = array (
2222 'align-content ' => '' ,
2323 'align-items ' => '' ,
2424 'align-self ' => '' ,
@@ -451,7 +451,7 @@ class Properties
451451 * List of non standards properties
452452 * @var array
453453 */
454- protected $ nonStandards = array (
454+ protected static $ nonStandards = array (
455455 'font-smoothing ' => '' ,
456456 'interpolation-mode ' => '' ,
457457 'osx-font-smoothing ' => '' ,
@@ -464,18 +464,18 @@ class Properties
464464 * @param string $sProperty
465465 * @return boolean
466466 */
467- public function propertyExists ($ sProperty )
467+ public static function propertyExists ($ sProperty )
468468 {
469- if (isset ($ this -> standards [$ sProperty ])) {
469+ if (isset (static :: $ standards [$ sProperty ])) {
470470 return true ;
471471 }
472472
473- $ sPropertyWithoutConstructor = preg_replace ('/^(-( ' . join ('| ' , $ this -> constructors ) . ')-)/ ' , '' , $ sProperty );
473+ $ sPropertyWithoutConstructor = preg_replace ('/^(-( ' . join ('| ' , static :: $ constructors ) . ')-)/ ' , '' , $ sProperty );
474474 if ($ sPropertyWithoutConstructor !== $ sProperty ) {
475- if (isset ($ this -> standards [$ sPropertyWithoutConstructor ])) {
475+ if (isset (static :: $ standards [$ sPropertyWithoutConstructor ])) {
476476 return true ;
477477 }
478- if (isset ($ this -> nonStandards [$ sPropertyWithoutConstructor ])) {
478+ if (isset (static :: $ nonStandards [$ sPropertyWithoutConstructor ])) {
479479 return true ;
480480 }
481481 }
0 commit comments