Skip to content

Commit

Permalink
Rename namespaces to agreed standard
Browse files Browse the repository at this point in the history
  • Loading branch information
atimmer committed Dec 18, 2018
1 parent 4fdb440 commit 83fc9c2
Show file tree
Hide file tree
Showing 50 changed files with 230 additions and 230 deletions.
2 changes: 1 addition & 1 deletion migrations/20171228151840_WpYoastIndexable.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

use YoastSEO_Vendor\Ruckusing_Migration_Base;
use Yoast\YoastSEO\Yoast_Model;
use Yoast\WP\Free\Yoast_Model;

/**
* Indexable migration.
Expand Down
2 changes: 1 addition & 1 deletion migrations/20171228151841_WpYoastPrimaryTerm.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

use YoastSEO_Vendor\Ruckusing_Migration_Base;
use Yoast\YoastSEO\Yoast_Model;
use Yoast\WP\Free\Yoast_Model;

/**
* Migration for the Primary Term.
Expand Down
2 changes: 1 addition & 1 deletion migrations/20180515101200_WpYoastIndexableMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

use YoastSEO_Vendor\Ruckusing_Migration_Base;
use Yoast\YoastSEO\Yoast_Model;
use Yoast\WP\Free\Yoast_Model;

/**
* Indexable meta migration.
Expand Down
8 changes: 4 additions & 4 deletions src/config/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* @package Yoast\YoastSEO\Config
*/

namespace Yoast\YoastSEO\Config;
namespace Yoast\WP\Free\Config;

use Yoast\YoastSEO\WordPress\Integration;
use Yoast\YoastSEO\WordPress\Integration_Group;
use Yoast\YoastSEO\Watchers;
use Yoast\WP\Free\WordPress\Integration;
use Yoast\WP\Free\WordPress\Integration_Group;
use Yoast\WP\Free\Watchers;

/**
* Load Admin integrations.
Expand Down
8 changes: 4 additions & 4 deletions src/config/database-migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* @package Yoast\YoastSEO\Config
*/

namespace Yoast\YoastSEO\Config;
namespace Yoast\WP\Free\Config;

use Yoast\YoastSEO\Loggers\Logger;
use Yoast\YoastSEO\Loggers\Migration_Logger;
use Yoast\YoastSEO\Yoast_Model;
use Yoast\WP\Free\Loggers\Logger;
use Yoast\WP\Free\Loggers\Migration_Logger;
use Yoast\WP\Free\Yoast_Model;
use YoastSEO_Vendor\Ruckusing_FrameworkRunner;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/config/dependency-management.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Yoast\YoastSEO\Config
*/

namespace Yoast\YoastSEO\Config;
namespace Yoast\WP\Free\Config;

use Composer\Script\Event;
use Composer\Installer\PackageEvent;
Expand Down
4 changes: 2 additions & 2 deletions src/config/frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @package Yoast\YoastSEO\Config
*/

namespace Yoast\YoastSEO\Config;
namespace Yoast\WP\Free\Config;

use Yoast\YoastSEO\WordPress\Integration;
use Yoast\WP\Free\WordPress\Integration;

/**
* Load Frontend integrations.
Expand Down
8 changes: 4 additions & 4 deletions src/config/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* @package Yoast\YoastSEO\Config
*/

namespace Yoast\YoastSEO\Config;
namespace Yoast\WP\Free\Config;

use Yoast\YoastSEO\WordPress\Integration;
use Yoast\YoastSEO\WordPress\Integration_Group;
use Yoast\YoastSEO\Yoast_Model;
use Yoast\WP\Free\WordPress\Integration;
use Yoast\WP\Free\WordPress\Integration_Group;
use Yoast\WP\Free\Yoast_Model;
use YoastSEO_Vendor\ORM;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/config/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @package Yoast\YoastSEO\Config
*/

namespace Yoast\YoastSEO\Config;
namespace Yoast\WP\Free\Config;

use Yoast\YoastSEO\WordPress\Integration;
use Yoast\WP\Free\WordPress\Integration;

/**
* Triggers migrations and other upgrades.
Expand Down
2 changes: 1 addition & 1 deletion src/exceptions/missing-method.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Yoast\YoastSEO\Exceptions
*/

namespace Yoast\YoastSEO\Exceptions;
namespace Yoast\WP\Free\Exceptions;

/**
* The exception when a method does not exists.
Expand Down
4 changes: 2 additions & 2 deletions src/exceptions/no-indexable-found.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @package Yoast\YoastSEO\Exceptions
*/

namespace Yoast\YoastSEO\Exceptions;
namespace Yoast\WP\Free\Exceptions;

use Yoast\YoastSEO\Loggers\Logger;
use Yoast\WP\Free\Loggers\Logger;

/**
* The exception when no indexable could be found.
Expand Down
4 changes: 2 additions & 2 deletions src/formatters/indexable-author-formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @package Yoast\YoastSEO\Formatters
*/

namespace Yoast\YoastSEO\Formatters;
namespace Yoast\WP\Free\Formatters;

use Yoast\YoastSEO\Models\Indexable;
use Yoast\WP\Free\Models\Indexable;

/**
* Formats the term meta to indexable format.
Expand Down
6 changes: 3 additions & 3 deletions src/formatters/indexable-post-formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* @package Yoast\YoastSEO\Formatters
*/

namespace Yoast\YoastSEO\Formatters;
namespace Yoast\WP\Free\Formatters;

use Yoast\YoastSEO\Models\Indexable;
use Yoast\YoastSEO\Models\SEO_Meta;
use Yoast\WP\Free\Models\Indexable;
use Yoast\WP\Free\Models\SEO_Meta;

/**
* Formats the post meta to indexable format.
Expand Down
4 changes: 2 additions & 2 deletions src/formatters/indexable-term-formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @package Yoast\YoastSEO\Formatters
*/

namespace Yoast\YoastSEO\Formatters;
namespace Yoast\WP\Free\Formatters;

use Yoast\YoastSEO\Models\Indexable;
use Yoast\WP\Free\Models\Indexable;

/**
* Formats the term meta to indexable format.
Expand Down
4 changes: 2 additions & 2 deletions src/loaders/indexable.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
$has_feature_flag = defined( 'YOAST_SEO_INDEXABLES' ) && YOAST_SEO_INDEXABLES === true;

// @codingStandardsIgnoreLine PHPCompatibility.PHP.NewLanguageConstructs.t_ns_separatorFound -- This is a > 5.3 feature.
if ( $has_feature_flag && class_exists( '\Yoast\YoastSEO\Config\Plugin' ) ) {
if ( $has_feature_flag && class_exists( '\Yoast\WP\Free\Config\Plugin' ) ) {
// @codingStandardsIgnoreLine PHPCompatibility.PHP.NewLanguageConstructs.t_ns_separatorFound -- This is a > 5.3 feature.
$bootstrap = new \Yoast\YoastSEO\Config\Plugin();
$bootstrap = new \Yoast\WP\Free\Config\Plugin();
$bootstrap->initialize();
$bootstrap->register_hooks();
}
Expand Down
2 changes: 1 addition & 1 deletion src/loggers/logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Yoast\YoastSEO\Loggers
*/

namespace Yoast\YoastSEO\Loggers;
namespace Yoast\WP\Free\Loggers;

use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
Expand Down
2 changes: 1 addition & 1 deletion src/loggers/migration-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Yoast\YoastSEO
*/

namespace Yoast\YoastSEO\Loggers;
namespace Yoast\WP\Free\Loggers;

use YoastSEO_Vendor\Ruckusing_Util_Logger;

Expand Down
6 changes: 3 additions & 3 deletions src/models/indexable-meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* @package Yoast\YoastSEO\Models
*/

namespace Yoast\YoastSEO\Models;
namespace Yoast\WP\Free\Models;

use Yoast\YoastSEO\Loggers\Logger;
use Yoast\YoastSEO\Yoast_Model;
use Yoast\WP\Free\Loggers\Logger;
use Yoast\WP\Free\Yoast_Model;

/**
* Table definition for the Indexable Meta table.
Expand Down
8 changes: 4 additions & 4 deletions src/models/indexable.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* @package Yoast\YoastSEO\Models
*/

namespace Yoast\YoastSEO\Models;
namespace Yoast\WP\Free\Models;

use Yoast\YoastSEO\Exceptions\No_Indexable_Found;
use Yoast\YoastSEO\Loggers\Logger;
use Yoast\YoastSEO\Yoast_Model;
use Yoast\WP\Free\Exceptions\No_Indexable_Found;
use Yoast\WP\Free\Loggers\Logger;
use Yoast\WP\Free\Yoast_Model;

/**
* Indexable table definition.
Expand Down
4 changes: 2 additions & 2 deletions src/models/primary-term.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @package Yoast\YoastSEO\Models
*/

namespace Yoast\YoastSEO\Models;
namespace Yoast\WP\Free\Models;

use Yoast\YoastSEO\Yoast_Model;
use Yoast\WP\Free\Yoast_Model;

/**
* Primary Term model definition.
Expand Down
4 changes: 2 additions & 2 deletions src/models/seo-meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @package Yoast\YoastSEO\Models
*/

namespace Yoast\YoastSEO\Models;
namespace Yoast\WP\Free\Models;

use Yoast\YoastSEO\Yoast_Model;
use Yoast\WP\Free\Yoast_Model;

/**
* Table definition for the SEO Meta table.
Expand Down
10 changes: 5 additions & 5 deletions src/watchers/indexable-author-watcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
* @package Yoast\YoastSEO\Watchers
*/

namespace Yoast\YoastSEO\Watchers;
namespace Yoast\WP\Free\Watchers;

use Yoast\YoastSEO\Exceptions\No_Indexable_Found;
use Yoast\YoastSEO\Formatters\Indexable_Author_Formatter;
use Yoast\YoastSEO\WordPress\Integration;
use Yoast\YoastSEO\Models\Indexable;
use Yoast\WP\Free\Exceptions\No_Indexable_Found;
use Yoast\WP\Free\Formatters\Indexable_Author_Formatter;
use Yoast\WP\Free\WordPress\Integration;
use Yoast\WP\Free\Models\Indexable;

/**
* Watches an Author to save the meta information when updated.
Expand Down
10 changes: 5 additions & 5 deletions src/watchers/indexable-post-watcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
* @package Yoast\YoastSEO\Watchers
*/

namespace Yoast\YoastSEO\Watchers;
namespace Yoast\WP\Free\Watchers;

use Yoast\YoastSEO\Exceptions\No_Indexable_Found;
use Yoast\YoastSEO\Formatters\Indexable_Post_Formatter;
use Yoast\YoastSEO\WordPress\Integration;
use Yoast\YoastSEO\Models\Indexable;
use Yoast\WP\Free\Exceptions\No_Indexable_Found;
use Yoast\WP\Free\Formatters\Indexable_Post_Formatter;
use Yoast\WP\Free\WordPress\Integration;
use Yoast\WP\Free\Models\Indexable;

/**
* Fills the Indexable according to Post data.
Expand Down
10 changes: 5 additions & 5 deletions src/watchers/indexable-term-watcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
* @package Yoast\YoastSEO\Watchers
*/

namespace Yoast\YoastSEO\Watchers;
namespace Yoast\WP\Free\Watchers;

use Yoast\YoastSEO\Exceptions\No_Indexable_Found;
use Yoast\YoastSEO\Formatters\Indexable_Term_Formatter;
use Yoast\YoastSEO\WordPress\Integration;
use Yoast\YoastSEO\Models\Indexable;
use Yoast\WP\Free\Exceptions\No_Indexable_Found;
use Yoast\WP\Free\Formatters\Indexable_Term_Formatter;
use Yoast\WP\Free\WordPress\Integration;
use Yoast\WP\Free\Models\Indexable;

/**
* Watcher for terms to fill the related Indexable.
Expand Down
12 changes: 6 additions & 6 deletions src/watchers/primary-term-watcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
* @package Yoast\YoastSEO\Watchers
*/

namespace Yoast\YoastSEO\Watchers;
namespace Yoast\WP\Free\Watchers;

use Yoast\YoastSEO\Exceptions\No_Indexable_Found;
use Yoast\YoastSEO\Loggers\Logger;
use Yoast\YoastSEO\Models\Indexable;
use Yoast\YoastSEO\Models\Primary_Term as Primary_Term_Indexable;
use Yoast\YoastSEO\WordPress\Integration;
use Yoast\WP\Free\Exceptions\No_Indexable_Found;
use Yoast\WP\Free\Loggers\Logger;
use Yoast\WP\Free\Models\Indexable;
use Yoast\WP\Free\Models\Primary_Term as Primary_Term_Indexable;
use Yoast\WP\Free\WordPress\Integration;


/**
Expand Down
2 changes: 1 addition & 1 deletion src/wordpress/integration-group.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Yoast\YoastSEO\WordPress;
*/

namespace Yoast\YoastSEO\WordPress;
namespace Yoast\WP\Free\WordPress;

/**
* Manage integrations and registers hooks at the required moment.
Expand Down
2 changes: 1 addition & 1 deletion src/wordpress/integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Yoast\YoastSEO\WordPress
*/

namespace Yoast\YoastSEO\WordPress;
namespace Yoast\WP\Free\WordPress;

/**
* An interface for registering integrations with WordPress
Expand Down
4 changes: 2 additions & 2 deletions src/yoast-model.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @package Yoast\YoastSEO
*/

namespace Yoast\YoastSEO;
namespace Yoast\WP\Free;

use Yoast\YoastSEO\Exceptions\Missing_Method;
use Yoast\WP\Free\Exceptions\Missing_Method;
use YoastSEO_Vendor\ORM;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/yoast-orm-wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Yoast\YoastSEO
*/

namespace Yoast\YoastSEO;
namespace Yoast\WP\Free;

use YoastSEO_Vendor\ORM;

Expand Down
2 changes: 1 addition & 1 deletion tests/src/doubles/database-migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Yoast\Tests\Doubles;

class Database_Migration extends \Yoast\YoastSEO\Config\Database_Migration {
class Database_Migration extends \Yoast\WP\Free\Config\Database_Migration {

/**
* @inheritDoc
Expand Down
2 changes: 1 addition & 1 deletion tests/src/doubles/indexable-author-formatter-double.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Yoast\Tests\Doubles;

use Yoast\YoastSEO\Formatters\Indexable_Author_Formatter;
use Yoast\WP\Free\Formatters\Indexable_Author_Formatter;

class Indexable_Author_Formatter_Double extends Indexable_Author_Formatter {

Expand Down
2 changes: 1 addition & 1 deletion tests/src/doubles/indexable-post-formatter-double.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Yoast\Tests\Doubles;

use Yoast\YoastSEO\Formatters\Indexable_Post_Formatter;
use Yoast\WP\Free\Formatters\Indexable_Post_Formatter;

class Indexable_Post_Formatter_Double extends Indexable_Post_Formatter {

Expand Down
2 changes: 1 addition & 1 deletion tests/src/doubles/indexable-term-formatter-double.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Yoast\Tests\Doubles;

use Yoast\YoastSEO\Formatters\Indexable_Term_Formatter;
use Yoast\WP\Free\Formatters\Indexable_Term_Formatter;

class Indexable_Term_Formatter_Double extends Indexable_Term_Formatter {

Expand Down
Loading

0 comments on commit 83fc9c2

Please sign in to comment.