PhpBrew\PatchKit\RegExpPatchRule::files PHP Method

files() public static method

public static files ( $files )
    public static function files($files)
    {
        return new self((array) $files);
    }

Usage Example

Exemplo n.º 1
0
 public function rules()
 {
     $rules = array();
     $rules[] = RegExpPatchRule::files('Makefile')->allOf(array('/^BUILD_/'))->replaces('/\\$\\(CC\\)/', '$(CXX)');
     $rules[] = RegExpPatchRule::files('Makefile')->allOf(array('/^EXTRA_LIBS =/'))->replaces('/^(.*)$/', '$1 -lstdc++');
     return $rules;
 }
All Usage Examples Of PhpBrew\PatchKit\RegExpPatchRule::files