Completed
Push — master ( 975fd1...3e68e7 )
by J.D.
03:16
created
src/includes/classes/data/type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 	/**
27 27
 	 * @since 1.0.0
28 28
 	 */
29
-	public function __construct( $slug ) {
29
+	public function __construct($slug) {
30 30
 
31 31
 		$this->slug = $slug;
32 32
 	}
Please login to merge, or discard this patch.
src/includes/classes/entity/comment/author.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 	 * @since 1.0.0
34 34
 	 */
35 35
 	public function get_title() {
36
-		return __( 'Author', 'wordpoints' );
36
+		return __('Author', 'wordpoints');
37 37
 	}
38 38
 }
39 39
 
Please login to merge, or discard this patch.
src/includes/classes/hook/action/comment/new.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
 	 */
20 20
 	public function should_fire() {
21 21
 
22
-		if ( ! isset( $this->args[1]->comment_approved ) ) {
22
+		if ( ! isset($this->args[1]->comment_approved)) {
23 23
 			return false;
24 24
 		}
25 25
 
26
-		if ( 1 !== (int) $this->args[1]->comment_approved ) {
26
+		if (1 !== (int) $this->args[1]->comment_approved) {
27 27
 			return false;
28 28
 		}
29 29
 
Please login to merge, or discard this patch.
src/admin/admin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@
 block discarded – undo
12 12
  *
13 13
  * @since 1.0.0
14 14
  */
15
-require_once( dirname( __FILE__ ) . '/includes/functions.php' );
15
+require_once(dirname(__FILE__).'/includes/functions.php');
16 16
 
17 17
 /**
18 18
  * The admin-side actions and filters.
19 19
  *
20 20
  * @since 1.0.0
21 21
  */
22
-require_once( dirname( __FILE__ ) . '/includes/actions.php' );
22
+require_once(dirname(__FILE__).'/includes/actions.php');
23 23
 
24 24
 WordPoints_Class_Autoloader::register_dir(
25
-	dirname( __FILE__ ) . '/includes/classes'
25
+	dirname(__FILE__).'/includes/classes'
26 26
 	, 'WordPoints_Admin_'
27 27
 );
28 28
 
Please login to merge, or discard this patch.
src/includes/classes/entity/post.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
 	 */
37 37
 	public function get_title() {
38 38
 
39
-		$post_type = get_post_type_object( substr( $this->slug, 5 /* post\ */ ) );
39
+		$post_type = get_post_type_object(substr($this->slug, 5 /* post\ */));
40 40
 
41
-		if ( $post_type ) {
41
+		if ($post_type) {
42 42
 			return $post_type->labels->singular_name;
43 43
 		} else {
44 44
 			return $this->slug;
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
 	/**
49 49
 	 * @since 1.0.0
50 50
 	 */
51
-	public function user_can_view( $user_id, $id ) {
52
-		return user_can( $user_id, 'read_post', $id );
51
+	public function user_can_view($user_id, $id) {
52
+		return user_can($user_id, 'read_post', $id);
53 53
 	}
54 54
 }
55 55
 
Please login to merge, or discard this patch.
src/includes/classes/entity/term.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public function get_title() {
31 31
 
32
-		$taxonomy = get_taxonomy( substr( $this->slug, 5 /* term\ */ ) );
32
+		$taxonomy = get_taxonomy(substr($this->slug, 5 /* term\ */));
33 33
 
34
-		if ( $taxonomy ) {
34
+		if ($taxonomy) {
35 35
 			return $taxonomy->labels->singular_name;
36 36
 		} else {
37 37
 			return $this->slug;
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
 	/**
42 42
 	 * @since 1.0.0
43 43
 	 */
44
-	public function get_entity( $id ) {
45
-		return get_term( $id, 'taxonomy' );
44
+	public function get_entity($id) {
45
+		return get_term($id, 'taxonomy');
46 46
 	}
47 47
 }
48 48
 
Please login to merge, or discard this patch.
src/includes/classes/entity/post/terms.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 	 */
30 30
 	public function get_title() {
31 31
 
32
-		$taxonomy = get_taxonomy( substr( $this->slug, 6 /* terms\ */ ) );
32
+		$taxonomy = get_taxonomy(substr($this->slug, 6 /* terms\ */));
33 33
 
34
-		if ( $taxonomy ) {
34
+		if ($taxonomy) {
35 35
 			return $taxonomy->labels->name;
36 36
 		} else {
37 37
 			return parent::get_title();
@@ -41,13 +41,13 @@  discard block
 block discarded – undo
41 41
 	/**
42 42
 	 * @since 1.0.0
43 43
 	 */
44
-	protected function get_related_entity_ids( WordPoints_Entity $entity ) {
44
+	protected function get_related_entity_ids(WordPoints_Entity $entity) {
45 45
 
46 46
 		$id = $entity->get_the_id();
47 47
 
48
-		$taxonomies = get_object_taxonomies( get_post( $id ) );
48
+		$taxonomies = get_object_taxonomies(get_post($id));
49 49
 
50
-		return wp_get_object_terms( $id, $taxonomies, array( 'fields' => 'ids' ) );
50
+		return wp_get_object_terms($id, $taxonomies, array('fields' => 'ids'));
51 51
 	}
52 52
 }
53 53
 
Please login to merge, or discard this patch.
src/includes/classes/hook/arg/dynamic.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
 	/**
38 38
 	 * @since 1.0.0
39 39
 	 */
40
-	public function __construct( $slug, WordPoints_Hook_ActionI $action = null ) {
40
+	public function __construct($slug, WordPoints_Hook_ActionI $action = null) {
41 41
 
42
-		parent::__construct( $slug, $action );
42
+		parent::__construct($slug, $action);
43 43
 
44
-		$parts = wordpoints_parse_dynamic_slug( $this->slug );
44
+		$parts = wordpoints_parse_dynamic_slug($this->slug);
45 45
 
46
-		if ( $parts['dynamic'] ) {
46
+		if ($parts['dynamic']) {
47 47
 			$this->arg_slug = $parts['generic'];
48 48
 		} else {
49 49
 			$this->arg_slug = $this->slug;
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
 		$value = parent::get_value();
60 60
 
61 61
 		// If not, then we check for an arg with the generic name.
62
-		if ( null === $value && $this->action instanceof WordPoints_Hook_ActionI ) {
63
-			$value = $this->action->get_arg_value( $this->arg_slug );
62
+		if (null === $value && $this->action instanceof WordPoints_Hook_ActionI) {
63
+			$value = $this->action->get_arg_value($this->arg_slug);
64 64
 		}
65 65
 
66 66
 		return $value;
Please login to merge, or discard this patch.
src/includes/classes/hook/event/dynamic.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,17 +46,17 @@
 block discarded – undo
46 46
 	 */
47 47
 	protected function get_entity_title() {
48 48
 
49
-		$parts = wordpoints_parse_dynamic_slug( $this->slug );
49
+		$parts = wordpoints_parse_dynamic_slug($this->slug);
50 50
 
51
-		if ( $parts['dynamic'] ) {
51
+		if ($parts['dynamic']) {
52 52
 			$entity_slug = "{$this->generic_entity_slug}\\{$parts['dynamic']}";
53 53
 		} else {
54 54
 			$entity_slug = $this->generic_entity_slug;
55 55
 		}
56 56
 
57
-		$entity = wordpoints_entities()->get( $entity_slug );
57
+		$entity = wordpoints_entities()->get($entity_slug);
58 58
 
59
-		if ( ! $entity instanceof WordPoints_Entity ) {
59
+		if ( ! $entity instanceof WordPoints_Entity) {
60 60
 			return $this->slug;
61 61
 		}
62 62
 
Please login to merge, or discard this patch.