Completed
Push — master ( c5ff6f...1b0c53 )
by Naveen
01:18
created
src/modules/pods/load.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -17,16 +17,16 @@  discard block
 block discarded – undo
17 17
 use Wordlift\Modules\Pods\WlEntityField\Filters;
18 18
 
19 19
 if ( ! defined( 'ABSPATH' ) ) {
20
-	exit;
20
+    exit;
21 21
 }
22 22
 
23 23
 if ( ! apply_filters( 'wl_feature__enable__pods-integration', false ) ) { //phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
24
-	return;
24
+    return;
25 25
 }
26 26
 
27 27
 // Autoloader for plugin itself.
28 28
 if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
29
-	require __DIR__ . '/vendor/autoload.php';
29
+    require __DIR__ . '/vendor/autoload.php';
30 30
 }
31 31
 
32 32
 $container_builder = new ContainerBuilder();
@@ -35,32 +35,32 @@  discard block
 block discarded – undo
35 35
 $container_builder->compile();
36 36
 
37 37
 add_action(
38
-	'plugins_loaded',
39
-	function () use ( $container_builder ) {
38
+    'plugins_loaded',
39
+    function () use ( $container_builder ) {
40 40
 
41
-		if ( ! defined( 'PODS_VERSION' ) ) {
42
-			return;
43
-		}
41
+        if ( ! defined( 'PODS_VERSION' ) ) {
42
+            return;
43
+        }
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
-		$container_builder->get( Filters::class );
61
+        $container_builder->get( Filters::class );
62 62
 
63
-	}
63
+    }
64 64
 );
65 65
 
66 66
 
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -16,49 +16,49 @@
 block discarded – undo
16 16
 use Wordlift\Modules\Pods\Notices;
17 17
 use Wordlift\Modules\Pods\WlEntityField\Filters;
18 18
 
19
-if ( ! defined( 'ABSPATH' ) ) {
19
+if ( ! defined('ABSPATH')) {
20 20
 	exit;
21 21
 }
22 22
 
23
-if ( ! apply_filters( 'wl_feature__enable__pods-integration', false ) ) { //phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
23
+if ( ! apply_filters('wl_feature__enable__pods-integration', false)) { //phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
24 24
 	return;
25 25
 }
26 26
 
27 27
 // Autoloader for plugin itself.
28
-if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
29
-	require __DIR__ . '/vendor/autoload.php';
28
+if (file_exists(__DIR__.'/vendor/autoload.php')) {
29
+	require __DIR__.'/vendor/autoload.php';
30 30
 }
31 31
 
32 32
 $container_builder = new ContainerBuilder();
33
-$loader            = new YamlFileLoader( $container_builder, new FileLocator( __DIR__ ) );
34
-$loader->load( 'services.yml' );
33
+$loader            = new YamlFileLoader($container_builder, new FileLocator(__DIR__));
34
+$loader->load('services.yml');
35 35
 $container_builder->compile();
36 36
 
37 37
 add_action(
38 38
 	'plugins_loaded',
39
-	function () use ( $container_builder ) {
39
+	function() use ($container_builder) {
40 40
 
41
-		if ( ! defined( 'PODS_VERSION' ) ) {
41
+		if ( ! defined('PODS_VERSION')) {
42 42
 			return;
43 43
 		}
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
-		$container_builder->get( Filters::class );
61
+		$container_builder->get(Filters::class);
62 62
 
63 63
 	}
64 64
 );
Please login to merge, or discard this patch.