Skip to content

Commit

Permalink
Additional PHPCS emendments
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Aug 18, 2023
1 parent 3042ee1 commit a7ec237
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scoper.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// The prefix configuration. If a non null value is be used, a random prefix
// will be generated instead.
//
// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#prefix
// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#prefix.
'prefix' => 'WpToTwitter_Vendor',

// By default when running php-scoper add-prefix, it will prefix all relevant code found in the current working
Expand All @@ -33,7 +33,7 @@
//
// This configuration entry is completely ignored when using Box.
//
// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#finders-and-paths
// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#finders-and-paths.
'finders' => array(
Finder::create()
->files()
Expand All @@ -59,17 +59,17 @@
// List of excluded files, i.e. files for which the content will be left untouched.
// Paths are relative to the configuration file unless if they are already absolute
//
// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#patchers
// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#patchers.
'exclude-files' => array(),

// When scoping PHP files, there will be scenarios where some of the code being scoped indirectly references the
// original namespace. These will include, for example, strings or string manipulations. PHP-Scoper has limited
// support for prefixing such strings. To circumvent that, you can define patchers to manipulate the file to your
// heart contents.
//
// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#patchers
// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#patchers.
'patchers' => array(
static function ( string $filePath, string $prefix, string $contents ): string {
static function ( string $filePath, string $prefix, string $contents ): string { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
// Change the contents here.

return $contents;
Expand All @@ -78,7 +78,7 @@ static function ( string $filePath, string $prefix, string $contents ): string {

// List of symbols to consider internal i.e. to leave untouched.
//
// For more information see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#excluded-symbols
// For more information see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#excluded-symbols.
'exclude-namespaces' => array(),
'exclude-classes' => array(),
'exclude-functions' => array(),
Expand Down

0 comments on commit a7ec237

Please sign in to comment.