@@ -19,17 +19,17 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | if ( ! defined( 'ABSPATH' ) ) { |
| 22 | - exit; |
|
| 22 | + exit; |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | if ( ! apply_filters( 'wl_feature__enable__pods-integration', false ) ) { |
| 26 | - return; |
|
| 26 | + return; |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | |
| 30 | 30 | // Autoloader for plugin itself. |
| 31 | 31 | if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) { |
| 32 | - require __DIR__ . '/vendor/autoload.php'; |
|
| 32 | + require __DIR__ . '/vendor/autoload.php'; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | |
@@ -39,26 +39,26 @@ discard block |
||
| 39 | 39 | $container_builder->compile(); |
| 40 | 40 | |
| 41 | 41 | add_action( |
| 42 | - 'plugins_loaded', |
|
| 43 | - function () use ( $container_builder ) { |
|
| 42 | + 'plugins_loaded', |
|
| 43 | + function () use ( $container_builder ) { |
|
| 44 | 44 | |
| 45 | - $factory = $container_builder->get( FieldDefinitionFactory::class ); |
|
| 46 | - $field_definition = $factory->get_field_definition(); |
|
| 47 | - $field_definition->register(); |
|
| 45 | + $factory = $container_builder->get( FieldDefinitionFactory::class ); |
|
| 46 | + $field_definition = $factory->get_field_definition(); |
|
| 47 | + $field_definition->register(); |
|
| 48 | 48 | |
| 49 | - /** |
|
| 50 | - * @var $installer \Wordlift\Modules\Pods\Installer |
|
| 51 | - */ |
|
| 52 | - $installer = $container_builder->get( Installer::class ); |
|
| 53 | - $installer->register_hooks(); |
|
| 49 | + /** |
|
| 50 | + * @var $installer \Wordlift\Modules\Pods\Installer |
|
| 51 | + */ |
|
| 52 | + $installer = $container_builder->get( Installer::class ); |
|
| 53 | + $installer->register_hooks(); |
|
| 54 | 54 | |
| 55 | - /** |
|
| 56 | - * @var $notices \Wordlift\Modules\Pods\Notices |
|
| 57 | - */ |
|
| 58 | - $notices = $container_builder->get( Notices::class ); |
|
| 59 | - $notices->register_hooks(); |
|
| 55 | + /** |
|
| 56 | + * @var $notices \Wordlift\Modules\Pods\Notices |
|
| 57 | + */ |
|
| 58 | + $notices = $container_builder->get( Notices::class ); |
|
| 59 | + $notices->register_hooks(); |
|
| 60 | 60 | |
| 61 | - } |
|
| 61 | + } |
|
| 62 | 62 | ); |
| 63 | 63 | |
| 64 | 64 | $filters = $container_builder->get( 'Wordlift\Modules\Pods\WlEntityField\Filters' ); |
@@ -18,47 +18,47 @@ |
||
| 18 | 18 | use Wordlift\Modules\Pods\Installer; |
| 19 | 19 | |
| 20 | 20 | |
| 21 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 21 | +if ( ! defined('ABSPATH')) { |
|
| 22 | 22 | exit; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | -if ( ! apply_filters( 'wl_feature__enable__pods-integration', false ) ) { |
|
| 25 | +if ( ! apply_filters('wl_feature__enable__pods-integration', false)) { |
|
| 26 | 26 | return; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | |
| 30 | 30 | // Autoloader for plugin itself. |
| 31 | -if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) { |
|
| 32 | - require __DIR__ . '/vendor/autoload.php'; |
|
| 31 | +if (file_exists(__DIR__.'/vendor/autoload.php')) { |
|
| 32 | + require __DIR__.'/vendor/autoload.php'; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | |
| 36 | 36 | $container_builder = new ContainerBuilder(); |
| 37 | -$loader = new YamlFileLoader( $container_builder, new FileLocator( __DIR__ ) ); |
|
| 38 | -$loader->load( 'services.yml' ); |
|
| 37 | +$loader = new YamlFileLoader($container_builder, new FileLocator(__DIR__)); |
|
| 38 | +$loader->load('services.yml'); |
|
| 39 | 39 | $container_builder->compile(); |
| 40 | 40 | |
| 41 | 41 | add_action( |
| 42 | 42 | 'plugins_loaded', |
| 43 | - function () use ( $container_builder ) { |
|
| 43 | + function() use ($container_builder) { |
|
| 44 | 44 | |
| 45 | - $factory = $container_builder->get( FieldDefinitionFactory::class ); |
|
| 45 | + $factory = $container_builder->get(FieldDefinitionFactory::class); |
|
| 46 | 46 | $field_definition = $factory->get_field_definition(); |
| 47 | 47 | $field_definition->register(); |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * @var $installer \Wordlift\Modules\Pods\Installer |
| 51 | 51 | */ |
| 52 | - $installer = $container_builder->get( Installer::class ); |
|
| 52 | + $installer = $container_builder->get(Installer::class); |
|
| 53 | 53 | $installer->register_hooks(); |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * @var $notices \Wordlift\Modules\Pods\Notices |
| 57 | 57 | */ |
| 58 | - $notices = $container_builder->get( Notices::class ); |
|
| 58 | + $notices = $container_builder->get(Notices::class); |
|
| 59 | 59 | $notices->register_hooks(); |
| 60 | 60 | |
| 61 | 61 | } |
| 62 | 62 | ); |
| 63 | 63 | |
| 64 | -$filters = $container_builder->get( 'Wordlift\Modules\Pods\WlEntityField\Filters' ); |
|
| 64 | +$filters = $container_builder->get('Wordlift\Modules\Pods\WlEntityField\Filters'); |
|