Passed
Push — develop ( 72cbea...47a228 )
by Paul
02:45
created
src/Controller.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
 use GeminiLabs\Castor\Facades\Utility;
9 9
 use WP_Customize_Manager;
10 10
 
11
-class Controller
12
-{
11
+class Controller {
13 12
 	/**
14 13
 	 * @return void
15 14
 	 * @action after_setup_theme
Please login to merge, or discard this patch.
src/Exceptions/BindingResolutionException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,6 +4,5 @@
 block discarded – undo
4 4
 
5 5
 use Exception;
6 6
 
7
-class BindingResolutionException extends Exception
8
-{
7
+class BindingResolutionException extends Exception {
9 8
 }
Please login to merge, or discard this patch.
src/AliasLoader.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace GeminiLabs\Castor;
4 4
 
5
-class AliasLoader
6
-{
5
+class AliasLoader {
7 6
 	/**
8 7
 	 * The singleton instance of the loader.
9 8
 	 *
@@ -31,7 +30,8 @@  discard block
 block discarded – undo
31 30
 	}
32 31
 
33 32
 	private function __clone()
34
-	{}
33
+	{
34
+}
35 35
 
36 36
 	/**
37 37
 	 * Get or create the singleton alias loader instance.
Please login to merge, or discard this patch.
src/Facade.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use GeminiLabs\Castor\Application;
6 6
 use RuntimeException;
7 7
 
8
-abstract class Facade
9
-{
8
+abstract class Facade {
10 9
 	/**
11 10
 	 * The application instance being facaded.
12 11
 	 *
Please login to merge, or discard this patch.
src/Image.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@  discard block
 block discarded – undo
5 5
 use GeminiLabs\Castor\Helpers\PostMeta;
6 6
 use GeminiLabs\Castor\Helpers\Utility;
7 7
 
8
-class Image
9
-{
8
+class Image {
10 9
 	public $image;
11 10
 
12 11
 	protected $postmeta;
@@ -59,7 +58,9 @@  discard block
 block discarded – undo
59 58
 
60 59
 		$attachment = get_post( $attachmentId );
61 60
 
62
-		if( is_null( $attachment ) || $attachment->post_type != 'attachment' )return;
61
+		if( is_null( $attachment ) || $attachment->post_type != 'attachment' ) {
62
+			return;
63
+		}
63 64
 
64 65
 		return $attachment->ID;
65 66
 	}
Please login to merge, or discard this patch.
src/Services/Normalizer.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace GeminiLabs\Castor\Services;
4 4
 
5
-class Normalizer
6
-{
5
+class Normalizer {
7 6
 	const BOOLEAN_ATTRIBUTES = [
8 7
 		'autofocus', 'capture', 'checked', 'disabled', 'draggable', 'formnovalidate', 'hidden',
9 8
 		'multiple', 'novalidate', 'readonly', 'required', 'selected', 'spellcheck',
@@ -148,7 +147,9 @@  discard block
 block discarded – undo
148 147
 
149 148
 		// normalize truthy boolean attributes
150 149
 		foreach( $filtered as $key => $value ) {
151
-			if( !in_array( $key, self::BOOLEAN_ATTRIBUTES ))continue;
150
+			if( !in_array( $key, self::BOOLEAN_ATTRIBUTES )) {
151
+				continue;
152
+			}
152 153
 
153 154
 			if( $value !== false ) {
154 155
 				$filtered[ $key ] = '';
@@ -187,11 +188,15 @@  discard block
 block discarded – undo
187 188
 
188 189
 				if( $result ) {
189 190
 					// only allow data attributes to have an empty value
190
-					if( $wildcard != 'data-' && empty( $value ))continue;
191
+					if( $wildcard != 'data-' && empty( $value )) {
192
+						continue;
193
+					}
191 194
 
192 195
 					if( is_array( $value )) {
193 196
 
194
-						if( $wildcard != 'data-' )continue;
197
+						if( $wildcard != 'data-' ) {
198
+							continue;
199
+						}
195 200
 
196 201
 						$value = json_encode( $value );
197 202
 					}
Please login to merge, or discard this patch.
src/Facades/Utility.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use GeminiLabs\Castor\Facade;
6 6
 
7
-class Utility extends Facade
8
-{
7
+class Utility extends Facade {
9 8
     /**
10 9
      * Get the fully qualified class name of the component.
11 10
      *
Please login to merge, or discard this patch.
src/Facades/ArchiveMeta.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use GeminiLabs\Castor\Facade;
6 6
 
7
-class ArchiveMeta extends Facade
8
-{
7
+class ArchiveMeta extends Facade {
9 8
     /**
10 9
      * Get the fully qualified class name of the component.
11 10
      *
Please login to merge, or discard this patch.
src/Facades/Theme.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use GeminiLabs\Castor\Facade;
6 6
 
7
-class Theme extends Facade
8
-{
7
+class Theme extends Facade {
9 8
     /**
10 9
      * Get the fully qualified class name of the component.
11 10
      *
Please login to merge, or discard this patch.