Passed
Push — master ( ccb079...7906b4 )
by Paul
04:39
created
config/styles/ninja_forms.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'fields' => [
5
-        'input' => 'ninja-forms-field nf-element',
6
-        'textarea' => 'ninja-forms-field nf-element',
7
-    ],
4
+	'fields' => [
5
+		'input' => 'ninja-forms-field nf-element',
6
+		'textarea' => 'ninja-forms-field nf-element',
7
+	],
8 8
 ];
Please login to merge, or discard this patch.
config/styles/contact_form_7.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'fields' => [
5
-        'input' => 'wpcf7-form-control',
6
-        'input_text' => 'wpcf7-form-control wpcf7-text',
7
-        'input_email' => 'wpcf7-form-control wpcf7-text wpcf7-email',
8
-        'select' => 'wpcf7-form-control wpcf7-select',
9
-        'textarea' => 'wpcf7-form-control wpcf7-textarea',
10
-    ],
11
-    'validation' => [
12
-        'error_tag' => 'span',
13
-        'error_tag_class' => 'wpcf7-not-valid-tip',
14
-        'input_error_class' => 'wpcf7-not-valid',
15
-        'message_initial_class' => 'wpcf7-display-none',
16
-        'message_success_class' => 'wpcf7-mail-sent-ok',
17
-        'message_tag_class' => 'wpcf7-response-output',
18
-    ],
4
+	'fields' => [
5
+		'input' => 'wpcf7-form-control',
6
+		'input_text' => 'wpcf7-form-control wpcf7-text',
7
+		'input_email' => 'wpcf7-form-control wpcf7-text wpcf7-email',
8
+		'select' => 'wpcf7-form-control wpcf7-select',
9
+		'textarea' => 'wpcf7-form-control wpcf7-textarea',
10
+	],
11
+	'validation' => [
12
+		'error_tag' => 'span',
13
+		'error_tag_class' => 'wpcf7-not-valid-tip',
14
+		'input_error_class' => 'wpcf7-not-valid',
15
+		'message_initial_class' => 'wpcf7-display-none',
16
+		'message_success_class' => 'wpcf7-mail-sent-ok',
17
+		'message_tag_class' => 'wpcf7-response-output',
18
+	],
19 19
 ];
Please login to merge, or discard this patch.
config/styles/wpforms.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'fields' => [
5
-        'input' => 'wpforms-field-large',
6
-        'label' => 'wpforms-field-label',
7
-        'label_checkbox' => 'wpforms-field-label-inline',
8
-        'label_radio' => 'wpforms-field-label-inline',
9
-        'select' => 'wpforms-field-large',
10
-        'textarea' => 'wpforms-field-large',
11
-    ],
4
+	'fields' => [
5
+		'input' => 'wpforms-field-large',
6
+		'label' => 'wpforms-field-label',
7
+		'label_checkbox' => 'wpforms-field-label-inline',
8
+		'label_radio' => 'wpforms-field-label-inline',
9
+		'select' => 'wpforms-field-large',
10
+		'textarea' => 'wpforms-field-large',
11
+	],
12 12
 ];
Please login to merge, or discard this patch.
config/styles/bootstrap_4_custom.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'fields' => [
5
-        'input' => 'form-control',
6
-        'input_checkbox' => 'custom-control-input',
7
-        'input_radio' => 'custom-control-input',
8
-        'label_checkbox' => 'custom-control-label',
9
-        'label_radio' => 'custom-control-label',
10
-        'select' => 'form-control',
11
-        'textarea' => 'form-control',
12
-    ],
13
-    'validation' => [
14
-        'error_tag' => 'div',
15
-        'error_tag_class' => 'invalid-feedback',
16
-        'field_class' => 'form-group',
17
-        'input_error_class' => 'is-invalid',
18
-    ],
4
+	'fields' => [
5
+		'input' => 'form-control',
6
+		'input_checkbox' => 'custom-control-input',
7
+		'input_radio' => 'custom-control-input',
8
+		'label_checkbox' => 'custom-control-label',
9
+		'label_radio' => 'custom-control-label',
10
+		'select' => 'form-control',
11
+		'textarea' => 'form-control',
12
+	],
13
+	'validation' => [
14
+		'error_tag' => 'div',
15
+		'error_tag_class' => 'invalid-feedback',
16
+		'field_class' => 'form-group',
17
+		'input_error_class' => 'is-invalid',
18
+	],
19 19
 ];
Please login to merge, or discard this patch.
config/styles/materialize.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'fields' => [
5
-        'select' => 'browser-default',
6
-        'textarea' => 'materialize-textarea',
7
-    ],
8
-    'pagination' => [
9
-        'type' => 'list',
10
-    ],
11
-    'validation' => [
12
-        'error_tag' => 'span',
13
-        'input_error_class' => 'wpcf7-not-valid',
14
-        'error_tag_class' => 'wpcf7-not-valid-tip',
15
-        'input_error_class' => 'wpcf7-not-valid',
16
-        'message_tag_class' => 'wpcf7-response-output',
17
-    ],
4
+	'fields' => [
5
+		'select' => 'browser-default',
6
+		'textarea' => 'materialize-textarea',
7
+	],
8
+	'pagination' => [
9
+		'type' => 'list',
10
+	],
11
+	'validation' => [
12
+		'error_tag' => 'span',
13
+		'input_error_class' => 'wpcf7-not-valid',
14
+		'error_tag_class' => 'wpcf7-not-valid-tip',
15
+		'input_error_class' => 'wpcf7-not-valid',
16
+		'message_tag_class' => 'wpcf7-response-output',
17
+	],
18 18
 ];
Please login to merge, or discard this patch.
config/styles/bootstrap_4.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    'fields' => [
5
-        'input' => 'form-control',
6
-        'input_checkbox' => 'form-check-input',
7
-        'input_radio' => 'form-check-input',
8
-        'label_checkbox' => 'form-check-label',
9
-        'label_radio' => 'form-check-label',
10
-        'select' => 'form-control',
11
-        'textarea' => 'form-control',
12
-    ],
13
-    'validation' => [
14
-        'error_tag' => 'div',
15
-        'error_tag_class' => 'invalid-feedback',
16
-        'field_class' => 'form-group',
17
-        'input_error_class' => 'is-invalid',
18
-    ],
4
+	'fields' => [
5
+		'input' => 'form-control',
6
+		'input_checkbox' => 'form-check-input',
7
+		'input_radio' => 'form-check-input',
8
+		'label_checkbox' => 'form-check-label',
9
+		'label_radio' => 'form-check-label',
10
+		'select' => 'form-control',
11
+		'textarea' => 'form-control',
12
+	],
13
+	'validation' => [
14
+		'error_tag' => 'div',
15
+		'error_tag_class' => 'invalid-feedback',
16
+		'field_class' => 'form-group',
17
+		'input_error_class' => 'is-invalid',
18
+	],
19 19
 ];
Please login to merge, or discard this patch.
config/inline-styles.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-    ':star-empty' => glsr()->url('assets/images/star-empty.svg'),
5
-    ':star-error' => glsr()->url('assets/images/star-error.svg'),
6
-    ':star-full' => glsr()->url('assets/images/star-full.svg'),
7
-    ':star-half' => glsr()->url('assets/images/star-half.svg'),
4
+	':star-empty' => glsr()->url('assets/images/star-empty.svg'),
5
+	':star-error' => glsr()->url('assets/images/star-error.svg'),
6
+	':star-full' => glsr()->url('assets/images/star-full.svg'),
7
+	':star-half' => glsr()->url('assets/images/star-half.svg'),
8 8
 ];
Please login to merge, or discard this patch.
plugin/Controllers/RestReviewController.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -12,58 +12,58 @@
 block discarded – undo
12 12
 
13 13
 class RestReviewController extends RestController
14 14
 {
15
-    public function __construct()
16
-    {
17
-        $this->meta = new WP_REST_Post_Meta_Fields(Application::POST_TYPE);
18
-        $this->namespace = Application::ID.'/v1';
19
-        $this->post_type = Application::POST_TYPE;
20
-        $this->rest_base = 'reviews';
21
-    }
15
+	public function __construct()
16
+	{
17
+		$this->meta = new WP_REST_Post_Meta_Fields(Application::POST_TYPE);
18
+		$this->namespace = Application::ID.'/v1';
19
+		$this->post_type = Application::POST_TYPE;
20
+		$this->rest_base = 'reviews';
21
+	}
22 22
 
23
-    /**
24
-     * @return void
25
-     */
26
-    public function register_routes()
27
-    {
28
-        // register_rest_route($this->namespace, '/'.$this->rest_base, [
29
-        //  ['callback' => [$this, 'createReview'], 'methods' => Server::CREATABLE],
30
-        //  ['callback' => [$this, 'getReviews'], 'methods' => Server::READABLE],
31
-        // ]);
32
-        register_rest_route($this->namespace, '/types', [
33
-            ['callback' => [$this, 'getReviewTypes'], 'methods' => Server::READABLE],
34
-        ]);
35
-    }
23
+	/**
24
+	 * @return void
25
+	 */
26
+	public function register_routes()
27
+	{
28
+		// register_rest_route($this->namespace, '/'.$this->rest_base, [
29
+		//  ['callback' => [$this, 'createReview'], 'methods' => Server::CREATABLE],
30
+		//  ['callback' => [$this, 'getReviews'], 'methods' => Server::READABLE],
31
+		// ]);
32
+		register_rest_route($this->namespace, '/types', [
33
+			['callback' => [$this, 'getReviewTypes'], 'methods' => Server::READABLE],
34
+		]);
35
+	}
36 36
 
37
-    /**
38
-     * @return WP_Error|Response|mixed
39
-     */
40
-    public function createReview()
41
-    {
42
-        $response = [];
43
-        return rest_ensure_response($response);
44
-    }
37
+	/**
38
+	 * @return WP_Error|Response|mixed
39
+	 */
40
+	public function createReview()
41
+	{
42
+		$response = [];
43
+		return rest_ensure_response($response);
44
+	}
45 45
 
46
-    /**
47
-     * @return WP_Error|Response|mixed
48
-     */
49
-    public function getReviews()
50
-    {
51
-        $response = [];
52
-        return rest_ensure_response($response);
53
-    }
46
+	/**
47
+	 * @return WP_Error|Response|mixed
48
+	 */
49
+	public function getReviews()
50
+	{
51
+		$response = [];
52
+		return rest_ensure_response($response);
53
+	}
54 54
 
55
-    /**
56
-     * @return WP_Error|Response|mixed
57
-     */
58
-    public function getReviewTypes()
59
-    {
60
-        $response = [];
61
-        foreach (glsr()->reviewTypes as $slug => $name) {
62
-            $response[] = [
63
-                'name' => $name,
64
-                'slug' => $slug,
65
-            ];
66
-        }
67
-        return rest_ensure_response($response);
68
-    }
55
+	/**
56
+	 * @return WP_Error|Response|mixed
57
+	 */
58
+	public function getReviewTypes()
59
+	{
60
+		$response = [];
61
+		foreach (glsr()->reviewTypes as $slug => $name) {
62
+			$response[] = [
63
+				'name' => $name,
64
+				'slug' => $slug,
65
+			];
66
+		}
67
+		return rest_ensure_response($response);
68
+	}
69 69
 }
Please login to merge, or discard this patch.
autoload.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -5,23 +5,23 @@
 block discarded – undo
5 5
 require_once ABSPATH.WPINC.'/class-phpass.php';
6 6
 
7 7
 spl_autoload_register(function ($className) {
8
-    $namespaces = [
9
-        'GeminiLabs\\SiteReviews\\' => __DIR__.'/plugin/',
10
-        'GeminiLabs\\SiteReviews\\Tests\\' => __DIR__.'/tests/',
11
-        'GeminiLabs\\Sepia\\PoParser\\' => __DIR__.'/vendors/sepia/po-parser/',
12
-        'GeminiLabs\\Sinergi\\BrowserDetector\\' => __DIR__.'/vendors/sinergi/browser-detector/',
13
-        'GeminiLabs\\Vectorface\\Whip\\' => __DIR__.'/vendors/vectorface/whip/',
14
-    ];
15
-    foreach ($namespaces as $prefix => $baseDir) {
16
-        $len = strlen($prefix);
17
-        if (0 !== strncmp($prefix, $className, $len)) {
18
-            continue;
19
-        }
20
-        $file = $baseDir.str_replace('\\', '/', substr($className, $len)).'.php';
21
-        if (!file_exists($file)) {
22
-            continue;
23
-        }
24
-        require $file;
25
-        break;
26
-    }
8
+	$namespaces = [
9
+		'GeminiLabs\\SiteReviews\\' => __DIR__.'/plugin/',
10
+		'GeminiLabs\\SiteReviews\\Tests\\' => __DIR__.'/tests/',
11
+		'GeminiLabs\\Sepia\\PoParser\\' => __DIR__.'/vendors/sepia/po-parser/',
12
+		'GeminiLabs\\Sinergi\\BrowserDetector\\' => __DIR__.'/vendors/sinergi/browser-detector/',
13
+		'GeminiLabs\\Vectorface\\Whip\\' => __DIR__.'/vendors/vectorface/whip/',
14
+	];
15
+	foreach ($namespaces as $prefix => $baseDir) {
16
+		$len = strlen($prefix);
17
+		if (0 !== strncmp($prefix, $className, $len)) {
18
+			continue;
19
+		}
20
+		$file = $baseDir.str_replace('\\', '/', substr($className, $len)).'.php';
21
+		if (!file_exists($file)) {
22
+			continue;
23
+		}
24
+		require $file;
25
+		break;
26
+	}
27 27
 });
Please login to merge, or discard this patch.