Completed
Pull Request — master (#6)
by James
46:36
created
src/Contract/Core/HasShortcode.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@
 block discarded – undo
2 2
 namespace Intraxia\Jaxion\Contract\Core;
3 3
 
4 4
 interface HasShortcode {
5
-	/**
6
-	 * Get the shortcode string to interpret.
7
-	 *
8
-	 * @return string
9
-	 */
10
-	public function shortcode_name();
5
+    /**
6
+     * Get the shortcode string to interpret.
7
+     *
8
+     * @return string
9
+     */
10
+    public function shortcode_name();
11 11
 
12
-	/**
13
-	 * WordPress callback to fire on the shortcode.
14
-	 *
15
-	 * @param array  $atts
16
-	 * @param string $content
17
-	 */
18
-	public function do_shortcode( array $atts, $content = '' );
12
+    /**
13
+     * WordPress callback to fire on the shortcode.
14
+     *
15
+     * @param array  $atts
16
+     * @param string $content
17
+     */
18
+    public function do_shortcode( array $atts, $content = '' );
19 19
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,5 +15,5 @@
 block discarded – undo
15 15
 	 * @param array  $atts
16 16
 	 * @param string $content
17 17
 	 */
18
-	public function do_shortcode( array $atts, $content = '' );
18
+	public function do_shortcode(array $atts, $content = '');
19 19
 }
Please login to merge, or discard this patch.
src/Contract/Core/Loader.php 2 patches
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -2,41 +2,41 @@
 block discarded – undo
2 2
 namespace Intraxia\Jaxion\Contract\Core;
3 3
 
4 4
 interface Loader {
5
-	/**
6
-	 * Register all the actions and filters with WordPress.
7
-	 *
8
-	 * Loops through all the registered actions/filters and fires add_* for each of
9
-	 * them respectively.
10
-	 */
11
-	public function run();
5
+    /**
6
+     * Register all the actions and filters with WordPress.
7
+     *
8
+     * Loops through all the registered actions/filters and fires add_* for each of
9
+     * them respectively.
10
+     */
11
+    public function run();
12 12
 
13
-	/**
14
-	 * Registers the service's actions with the loader.
15
-	 *
16
-	 * Actions retrieved from the service are registered with the Loader.
17
-	 * When the loader runs, this actions are registered with WordPress.
18
-	 *
19
-	 * @param HasActions $service
20
-	 */
21
-	public function register_actions( HasActions $service );
13
+    /**
14
+     * Registers the service's actions with the loader.
15
+     *
16
+     * Actions retrieved from the service are registered with the Loader.
17
+     * When the loader runs, this actions are registered with WordPress.
18
+     *
19
+     * @param HasActions $service
20
+     */
21
+    public function register_actions( HasActions $service );
22 22
 
23
-	/**
24
-	 * Registers the service's filters with the loader.
25
-	 *
26
-	 * Filters retrieved from the service are registered with the Loader.
27
-	 * When the loader runs, these filters are registered with WordPress.
28
-	 *
29
-	 * @param HasFilters $service
30
-	 */
31
-	public function register_filters( HasFilters $service );
23
+    /**
24
+     * Registers the service's filters with the loader.
25
+     *
26
+     * Filters retrieved from the service are registered with the Loader.
27
+     * When the loader runs, these filters are registered with WordPress.
28
+     *
29
+     * @param HasFilters $service
30
+     */
31
+    public function register_filters( HasFilters $service );
32 32
 
33
-	/**
34
-	 * Registers the service's shortcode with the loader.
35
-	 *
36
-	 * Service's method definitions are passed into the add_shortcode hook
37
-	 * in WordPress to register the shortcode.
38
-	 *
39
-	 * @param HasShortcode $service
40
-	 */
41
-	public function register_shortcode( HasShortcode $service );
33
+    /**
34
+     * Registers the service's shortcode with the loader.
35
+     *
36
+     * Service's method definitions are passed into the add_shortcode hook
37
+     * in WordPress to register the shortcode.
38
+     *
39
+     * @param HasShortcode $service
40
+     */
41
+    public function register_shortcode( HasShortcode $service );
42 42
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	 *
19 19
 	 * @param HasActions $service
20 20
 	 */
21
-	public function register_actions( HasActions $service );
21
+	public function register_actions(HasActions $service);
22 22
 
23 23
 	/**
24 24
 	 * Registers the service's filters with the loader.
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 *
29 29
 	 * @param HasFilters $service
30 30
 	 */
31
-	public function register_filters( HasFilters $service );
31
+	public function register_filters(HasFilters $service);
32 32
 
33 33
 	/**
34 34
 	 * Registers the service's shortcode with the loader.
@@ -38,5 +38,5 @@  discard block
 block discarded – undo
38 38
 	 *
39 39
 	 * @param HasShortcode $service
40 40
 	 */
41
-	public function register_shortcode( HasShortcode $service );
41
+	public function register_shortcode(HasShortcode $service);
42 42
 }
Please login to merge, or discard this patch.
src/Contract/Core/HasFilters.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 namespace Intraxia\Jaxion\Contract\Core;
3 3
 
4 4
 interface HasFilters {
5
-	/**
6
-	 * Provides the array of filters the class wants to register with WordPress.
7
-	 *
8
-	 * These filters are retrieved by the Loader class and used to register the
9
-	 * correct service methods with WordPress.
10
-	 *
11
-	 * @return array[]
12
-	 */
13
-	public function filter_hooks();
5
+    /**
6
+     * Provides the array of filters the class wants to register with WordPress.
7
+     *
8
+     * These filters are retrieved by the Loader class and used to register the
9
+     * correct service methods with WordPress.
10
+     *
11
+     * @return array[]
12
+     */
13
+    public function filter_hooks();
14 14
 }
Please login to merge, or discard this patch.
src/Contract/Core/ServiceProvider.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 namespace Intraxia\Jaxion\Contract\Core;
3 3
 
4 4
 interface ServiceProvider {
5
-	/**
6
-	 * Register the provider's services on the container.
7
-	 *
8
-	 * This method is passed the container to register on, giving the service provider
9
-	 * an opportunity to register its services on the container in an encapsulated way.
10
-	 *
11
-	 * @param Container $container
12
-	 */
13
-	public function register( Container $container );
5
+    /**
6
+     * Register the provider's services on the container.
7
+     *
8
+     * This method is passed the container to register on, giving the service provider
9
+     * an opportunity to register its services on the container in an encapsulated way.
10
+     *
11
+     * @param Container $container
12
+     */
13
+    public function register( Container $container );
14 14
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,5 +10,5 @@
 block discarded – undo
10 10
 	 *
11 11
 	 * @param Container $container
12 12
 	 */
13
-	public function register( Container $container );
13
+	public function register(Container $container);
14 14
 }
Please login to merge, or discard this patch.
src/Contract/Core/Application.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -4,52 +4,52 @@
 block discarded – undo
4 4
 use Intraxia\Jaxion\Core\ApplicationNotBootedException;
5 5
 
6 6
 interface Application {
7
-	/**
8
-	 * Starts up the Application.
9
-	 *
10
-	 * Retrieves the Application's loader instance, and registers all of the Application's
11
-	 * services with the loader. It loops through its own services, and any services that
12
-	 * implement the required interface are passed into the loader. It then attaches the
13
-	 * loader to the required WordPress hook.
14
-	 */
15
-	public function boot();
7
+    /**
8
+     * Starts up the Application.
9
+     *
10
+     * Retrieves the Application's loader instance, and registers all of the Application's
11
+     * services with the loader. It loops through its own services, and any services that
12
+     * implement the required interface are passed into the loader. It then attaches the
13
+     * loader to the required WordPress hook.
14
+     */
15
+    public function boot();
16 16
 
17
-	/**
18
-	 * Fired on plugin activation.
19
-	 *
20
-	 * This function is attached to `register_activation_hook` and is fired when the plugin is
21
-	 * activated by WordPress. This gives the developer a place to set up any options,
22
-	 * add any custom tables, or flush rewrite rules, as required.
23
-	 */
24
-	public function activate();
17
+    /**
18
+     * Fired on plugin activation.
19
+     *
20
+     * This function is attached to `register_activation_hook` and is fired when the plugin is
21
+     * activated by WordPress. This gives the developer a place to set up any options,
22
+     * add any custom tables, or flush rewrite rules, as required.
23
+     */
24
+    public function activate();
25 25
 
26
-	/**
27
-	 * Fired on plugin deactivation.
28
-	 *
29
-	 * This function is attached to `register_deactivation_hook` and is fired when the plugin
30
-	 * is deactivated by WordPress. This gives the developer a place to clean up anything left
31
-	 * behind by the plugin.
32
-	 */
33
-	public function deactivate();
26
+    /**
27
+     * Fired on plugin deactivation.
28
+     *
29
+     * This function is attached to `register_deactivation_hook` and is fired when the plugin
30
+     * is deactivated by WordPress. This gives the developer a place to clean up anything left
31
+     * behind by the plugin.
32
+     */
33
+    public function deactivate();
34 34
 
35
-	/**
36
-	 * Retrieves the booted Application instance.
37
-	 *
38
-	 * If the Application has not yet been booted, an Exception will be thrown.
39
-	 *
40
-	 * @return Application
41
-	 * @throws ApplicationNotBootedException
42
-	 */
43
-	public static function instance();
35
+    /**
36
+     * Retrieves the booted Application instance.
37
+     *
38
+     * If the Application has not yet been booted, an Exception will be thrown.
39
+     *
40
+     * @return Application
41
+     * @throws ApplicationNotBootedException
42
+     */
43
+    public static function instance();
44 44
 
45
-	/**
46
-	 * Shuts down the booted Application.
47
-	 *
48
-	 * If the Application has already been booted, the Application instance
49
-	 * will be destroyed by assigning it a null value, freeing it from memory.
50
-	 * However, the service objects will likely remain in memory if they've been
51
-	 * attached to hooks when this method is called. This function is primarily
52
-	 * for uniting testing to make sure you can boot a new instance for each test.
53
-	 */
54
-	public static function shutdown();
45
+    /**
46
+     * Shuts down the booted Application.
47
+     *
48
+     * If the Application has already been booted, the Application instance
49
+     * will be destroyed by assigning it a null value, freeing it from memory.
50
+     * However, the service objects will likely remain in memory if they've been
51
+     * attached to hooks when this method is called. This function is primarily
52
+     * for uniting testing to make sure you can boot a new instance for each test.
53
+     */
54
+    public static function shutdown();
55 55
 }
Please login to merge, or discard this patch.
src/Contract/Axolotl/UsesWordPressTerm.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
  * @subpackage Contract\Axolotl
9 9
  */
10 10
 interface UsesWordPressTerm {
11
-	/**
12
-	 * Returns the taxonomy used by the Model.
13
-	 *
14
-	 * @return string
15
-	 */
16
-	public static function get_taxonomy();
11
+    /**
12
+     * Returns the taxonomy used by the Model.
13
+     *
14
+     * @return string
15
+     */
16
+    public static function get_taxonomy();
17 17
 }
Please login to merge, or discard this patch.
src/Contract/Axolotl/UsesCustomTable.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 namespace Intraxia\Jaxion\Contract\Axolotl;
3 3
 
4 4
 interface UsesCustomTable {
5
-	/**
6
-	 * Returns the custom table name used by the model.
7
-	 *
8
-	 * @return string
9
-	 */
10
-	public static function get_table_name();
5
+    /**
6
+     * Returns the custom table name used by the model.
7
+     *
8
+     * @return string
9
+     */
10
+    public static function get_table_name();
11 11
 }
Please login to merge, or discard this patch.
src/Contract/Axolotl/EntityManager.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 	 *
15 15
 	 * @return Model|WP_Error
16 16
 	 */
17
-	public function find( $class, $id );
17
+	public function find($class, $id);
18 18
 
19 19
 	/**
20 20
 	 * Finds all the models of the provided class for the given params.
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	 *
27 27
 	 * @return Collection|WP_Error
28 28
 	 */
29
-	public function find_by( $class, $params = array() );
29
+	public function find_by($class, $params = array());
30 30
 
31 31
 	/**
32 32
 	 * Saves a new model of the provided class with the given data.
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	 *
37 37
 	 * @return Model|WP_Error
38 38
 	 */
39
-	public function create( $class, $data = array() );
39
+	public function create($class, $data = array());
40 40
 
41 41
 	/**
42 42
 	 * Updates a model with its latest data.
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	 *
46 46
 	 * @return Model|WP_Error
47 47
 	 */
48
-	public function persist( Model $model );
48
+	public function persist(Model $model);
49 49
 
50 50
 	/**
51 51
 	 * Delete the provided Model.
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	 *
56 56
 	 * @return Model|WP_Error
57 57
 	 */
58
-	public function delete( Model $model, $force = false );
58
+	public function delete(Model $model, $force = false);
59 59
 
60 60
 	/**
61 61
 	 * Frees all currently managed models from the EntityManager.
Please login to merge, or discard this patch.
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -6,54 +6,54 @@
 block discarded – undo
6 6
 use WP_Error;
7 7
 
8 8
 interface EntityManager {
9
-	/**
10
-	 * Get a single model of the provided class with the given ID.
11
-	 *
12
-	 * @param string $class Fully qualified class name of model.
13
-	 * @param int    $id    ID of the model.
14
-	 *
15
-	 * @return Model|WP_Error
16
-	 */
17
-	public function find( $class, $id );
9
+    /**
10
+     * Get a single model of the provided class with the given ID.
11
+     *
12
+     * @param string $class Fully qualified class name of model.
13
+     * @param int    $id    ID of the model.
14
+     *
15
+     * @return Model|WP_Error
16
+     */
17
+    public function find( $class, $id );
18 18
 
19
-	/**
20
-	 * Finds all the models of the provided class for the given params.
21
-	 *
22
-	 * This method will return an empty Collection if the query returns no models.
23
-	 *
24
-	 * @param string $class  Fully qualified class name of models to find.
25
-	 * @param array  $params Params to constrain the find.
26
-	 *
27
-	 * @return Collection|WP_Error
28
-	 */
29
-	public function find_by( $class, $params = array() );
19
+    /**
20
+     * Finds all the models of the provided class for the given params.
21
+     *
22
+     * This method will return an empty Collection if the query returns no models.
23
+     *
24
+     * @param string $class  Fully qualified class name of models to find.
25
+     * @param array  $params Params to constrain the find.
26
+     *
27
+     * @return Collection|WP_Error
28
+     */
29
+    public function find_by( $class, $params = array() );
30 30
 
31
-	/**
32
-	 * Saves a new model of the provided class with the given data.
33
-	 *
34
-	 * @param string $class
35
-	 * @param array  $data
36
-	 *
37
-	 * @return Model|WP_Error
38
-	 */
39
-	public function create( $class, $data = array() );
31
+    /**
32
+     * Saves a new model of the provided class with the given data.
33
+     *
34
+     * @param string $class
35
+     * @param array  $data
36
+     *
37
+     * @return Model|WP_Error
38
+     */
39
+    public function create( $class, $data = array() );
40 40
 
41
-	/**
42
-	 * Updates a model with its latest dataE.
43
-	 *
44
-	 * @param Model $model
45
-	 *
46
-	 * @return Model|WP_Error
47
-	 */
48
-	public function persist( Model $model );
41
+    /**
42
+     * Updates a model with its latest dataE.
43
+     *
44
+     * @param Model $model
45
+     *
46
+     * @return Model|WP_Error
47
+     */
48
+    public function persist( Model $model );
49 49
 
50
-	/**
51
-	 * Delete the provide
52
-	 *
53
-	 * @param Model $model
54
-	 * @param bool  $force
55
-	 *
56
-	 * @return mixed
57
-	 */
58
-	public function delete( Model $model, $force = false );
50
+    /**
51
+     * Delete the provide
52
+     *
53
+     * @param Model $model
54
+     * @param bool  $force
55
+     *
56
+     * @return mixed
57
+     */
58
+    public function delete( Model $model, $force = false );
59 59
 }
Please login to merge, or discard this patch.
src/Contract/Axolotl/Serializes.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 namespace Intraxia\Jaxion\Contract\Axolotl;
3 3
 
4 4
 interface Serializes {
5
-	/**
6
-	 * Serializes the model's public data into an array.
7
-	 *
8
-	 * @return array
9
-	 */
10
-	public function serialize();
5
+    /**
6
+     * Serializes the model's public data into an array.
7
+     *
8
+     * @return array
9
+     */
10
+    public function serialize();
11 11
 }
Please login to merge, or discard this patch.