Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
Revert "CS: fix capitalization in class names" (#49)
Browse files Browse the repository at this point in the history
Revert "CS: fix capitalization in class names"
  • Loading branch information
IreneStr authored May 7, 2019
2 parents 50c6996 + 86400f3 commit 9d0a2f6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
1 change: 1 addition & 0 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<rule ref="Yoast">
<!-- Can't be helped, textdomain is passed in dynamically, that's the nature of this module. -->
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralDomain"/>
<exclude name="PEAR.NamingConventions.ValidClassName.Invalid"/>
</rule>


Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 3.1.1

### Fixed
- Reverts the capitalization of the class names.

## 3.1.0

### Fixed
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Alternatively you can include the library as a submodule.
Make sure the class is loaded and instantiate it like this:

```php
new Yoast_I18n_V3(
new Yoast_I18n_v3(
array(
'textdomain' => '{your text domain}',
'project_slug' => '{your probject slug}',
Expand All @@ -39,7 +39,7 @@ new Yoast_I18n_V3(
Because translate.wordpress.org is also a GlotPress installation you can use the i18n-module to promote translation your plugin on there. To do this you can use the dedicated wordpress.org class:

```php
new Yoast_I18n_WordPressOrg_V3(
new Yoast_I18n_WordPressOrg_v3(
array(
'textdomain' => '{your text domain}',
'plugin_name' => '{your plugin name}',
Expand All @@ -53,7 +53,7 @@ new Yoast_I18n_WordPressOrg_V3(
Since 3.0.0 you can also decide to render the message in a message-box of your own, just provide the second argument to the constructor as `false` to disable the showing of the box by the module itself.

```php
$i18n_module = new Yoast_I18n_V3(
$i18n_module = new Yoast_I18n_v3(
array(
'textdomain' => '{your text domain}',
'project_slug' => '{your probject slug}',
Expand All @@ -71,7 +71,7 @@ $message = $i18n_module->get_promo_message();
```

```php
$i18n_module = new Yoast_I18n_WordPressOrg_V3(
$i18n_module = new Yoast_I18n_WordPressOrg_v3(
array(
'textdomain' => '{your text domain}',
'plugin_name' => '{your plugin name}',
Expand Down
2 changes: 1 addition & 1 deletion src/i18n-v3.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* This class defines a promo box and checks your translation site's API for stats about it,
* then shows them to the user.
*/
class Yoast_I18n_V3 {
class Yoast_I18n_v3 {

/**
* Your translation site's logo.
Expand Down
6 changes: 3 additions & 3 deletions src/i18n-wordpressorg-v3.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
/**
* The Yoast i18n module with a connection to WordPress.org.
*/
class Yoast_I18n_WordPressOrg_V3 {
class Yoast_I18n_WordPressOrg_v3 {

/**
* The i18n object that presents the user with the notification.
*
* @var yoast_i18n_V3
* @var yoast_i18n_v3
*/
protected $i18n;

Expand All @@ -28,7 +28,7 @@ class Yoast_I18n_WordPressOrg_V3 {
public function __construct( $args, $show_translation_box = true ) {
$args = $this->set_defaults( $args );

$this->i18n = new Yoast_I18n_V3( $args, $show_translation_box );
$this->i18n = new Yoast_I18n_v3( $args, $show_translation_box );
$this->set_api_url( $args['textdomain'] );
}

Expand Down

0 comments on commit 9d0a2f6

Please sign in to comment.