Completed
Branch master (5af635)
by Maciej
02:13
created
src/Validators/RequiredIf.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace WFV\Validators;
3
-defined( 'ABSPATH' ) or die();
3
+defined('ABSPATH') or die();
4 4
 
5 5
 use WFV\Validators\AbstractValidator;
6 6
 
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
 		$v = $this->validator;
39 39
 
40 40
 		$v->when(
41
-			$v->create()->key( $other_field, $v->create()->equals( $other_value ) ),
42
-			$v->create()->key( $this->field, $v->create()->notEmpty() ),
43
-			$v->create()->key( $this->field, $v->create()->alwaysValid() )
41
+			$v->create()->key($other_field, $v->create()->equals($other_value)),
42
+			$v->create()->key($this->field, $v->create()->notEmpty()),
43
+			$v->create()->key($this->field, $v->create()->alwaysValid())
44 44
 		);
45 45
 	}
46 46
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	 * @param string|array $input
53 53
 	 * @return bool
54 54
 	 */
55
-	public function validate( $input ){
56
-		return $this->validator->validate( $_POST );
55
+	public function validate($input) {
56
+		return $this->validator->validate($_POST);
57 57
 	}
58 58
 }
Please login to merge, or discard this patch.
src/Validators/Email.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace WFV\Validators;
3
-defined( 'ABSPATH' ) or die();
3
+defined('ABSPATH') or die();
4 4
 
5 5
 use WFV\Validators\AbstractValidator;
6 6
 
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
 	 */
35 35
 	protected function set_policy() {
36 36
 		$v = $this->validator;
37
-		$v = ( $this->optional )
38
-			? $v->optional( $v->create()->email() )
37
+		$v = ($this->optional)
38
+			? $v->optional($v->create()->email())
39 39
 			: $v->email();
40 40
 	}
41 41
 }
Please login to merge, or discard this patch.
src/Validators/Alpha.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace WFV\Validators;
3
-defined( 'ABSPATH' ) or die();
3
+defined('ABSPATH') or die();
4 4
 
5 5
 use WFV\Validators\AbstractValidator;
6 6
 
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
 	 */
33 33
 	protected function set_policy() {
34 34
 		$v = $this->validator;
35
-		$v = ( $this->optional )
36
-			? $v->optional( $v->create()->alpha() )
35
+		$v = ($this->optional)
36
+			? $v->optional($v->create()->alpha())
37 37
 			: $v->alpha();
38 38
 	}
39 39
 }
Please login to merge, or discard this patch.
src/Abstraction/Collectable.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace WFV\Abstraction;
3
-defined( 'ABSPATH' ) or die();
3
+defined('ABSPATH') or die();
4 4
 
5 5
 use WFV\Contract\CollectionInterface;
6 6
 
@@ -27,13 +27,13 @@  discard block
 block discarded – undo
27 27
 	 *
28 28
 	 * @return bool
29 29
 	 */
30
-	public function contains( $key = null, $value = null ) {
30
+	public function contains($key = null, $value = null) {
31 31
 		// WIP
32
-		if( $this->has( $key ) ) {
33
-			if ( is_array( $this->data[ $key ] ) ) {
34
-				return ( in_array( $value, $this->data[ $key ] ) ) ? true : false;
32
+		if ($this->has($key)) {
33
+			if (is_array($this->data[$key])) {
34
+				return (in_array($value, $this->data[$key])) ? true : false;
35 35
 			}
36
-			return ( $this->data[ $key ] === $value ) ? true : false;
36
+			return ($this->data[$key] === $value) ? true : false;
37 37
 		}
38 38
 		return false;
39 39
 	}
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
47 47
 	 * @param string|array (optional) $callback Context appropriate callable.
48 48
 	 * @return string|null
49 49
 	 */
50
-	public function escape( $key, callable $callback = null ) {
51
-		if( is_string( $key ) ) {
52
-			$callback = ( null === $callback ) ? 'esc_html' : $callback;
53
-			return ( true === $this->has( $key ) ) ? $this->call_func( $callback, $this->data[ $key ] ) : null;
50
+	public function escape($key, callable $callback = null) {
51
+		if (is_string($key)) {
52
+			$callback = (null === $callback) ? 'esc_html' : $callback;
53
+			return (true === $this->has($key)) ? $this->call_func($callback, $this->data[$key]) : null;
54 54
 		}
55 55
 		return null;
56 56
 	}
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
 	 * @param string $key
64 64
 	 * @return bool
65 65
 	 */
66
-	public function has( $key = null ) {
66
+	public function has($key = null) {
67 67
 		/*array_walk( $this->data, function( $item, $key ) {
68 68
 		});*/
69
-		return array_key_exists( $key, $this->data );
69
+		return array_key_exists($key, $this->data);
70 70
 	}
71 71
 
72 72
 	/**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	 * @return bool
78 78
 	 */
79 79
 	public function is_populated() {
80
-		return ( count( $this->data ) > 0 ) ? true : false;
80
+		return (count($this->data) > 0) ? true : false;
81 81
 	}
82 82
 
83 83
 	/**
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
 	 * @param string $callback
91 91
 	 * @return string|array
92 92
 	 */
93
-	public function transform( $key = null, callable $callback ) {
93
+	public function transform($key = null, callable $callback) {
94 94
 		// WIP
95
-		if( true === $this->has( $key ) ) {
96
-			if( is_array( $this->data[ $key ] ) ) {
97
-				return $this->transform_array_leafs( $this->data[ $key ], $callback );
95
+		if (true === $this->has($key)) {
96
+			if (is_array($this->data[$key])) {
97
+				return $this->transform_array_leafs($this->data[$key], $callback);
98 98
 			}
99 99
 		}
100 100
 	}
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
 	 * @param string|array $callback
112 112
 	 * @return array
113 113
 	 */
114
-	protected function transform_array_leafs( array $array, $callback ) {
115
-		array_walk_recursive( $array, function( &$item, $key ) use( $callback ) {
116
-			$item = $this->call_func( $callback, $item );
114
+	protected function transform_array_leafs(array $array, $callback) {
115
+		array_walk_recursive($array, function(&$item, $key) use($callback) {
116
+			$item = $this->call_func($callback, $item);
117 117
 		} );
118 118
 		return $array;
119 119
 	}
@@ -128,16 +128,16 @@  discard block
 block discarded – undo
128 128
 	 * @param string (optional) $input The input string
129 129
 	 * @return
130 130
 	 */
131
-	private function call_func( $callback, $input = null ) {
131
+	private function call_func($callback, $input = null) {
132 132
 		// WIP - simplify
133
-		if( is_array( $callback ) ) {
133
+		if (is_array($callback)) {
134 134
 			$method = $callback[0];
135 135
 			$args = $callback[1];
136
-			if ( $input ) {
137
-				array_unshift( $args, $input );
136
+			if ($input) {
137
+				array_unshift($args, $input);
138 138
 			}
139
-			return call_user_func_array( $method, $args );
139
+			return call_user_func_array($method, $args);
140 140
 		}
141
-		return $callback( $input );
141
+		return $callback($input);
142 142
 	}
143 143
 }
Please login to merge, or discard this patch.
src/Abstraction/Composable.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace WFV\Abstraction;
3
-defined( 'ABSPATH' ) or die();
3
+defined('ABSPATH') or die();
4 4
 
5 5
 /**
6 6
  *
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
 	 * @param string $name
37 37
 	 * @param class $collection
38 38
 	 */
39
-	protected function add_collection( $name, $collection ) {
40
-		$this->collection[ $name ] = $collection;
39
+	protected function add_collection($name, $collection) {
40
+		$this->collection[$name] = $collection;
41 41
 	}
42 42
 
43 43
 	/**
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
 	 *
49 49
 	 * @param string $component Key indentifier.
50 50
 	 */
51
-	protected function utilize( $component ) {
52
-		return $this->collection[ $component ];
51
+	protected function utilize($component) {
52
+		return $this->collection[$component];
53 53
 	}
54 54
 
55 55
 	/**
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
 	 *
61 61
 	 * @param array $collections
62 62
 	 */
63
-	protected function install( array $collections ) {
64
-		foreach( $collections as $name => $collection ) {
65
-			$this->add_collection( $name, $collection );
63
+	protected function install(array $collections) {
64
+		foreach ($collections as $name => $collection) {
65
+			$this->add_collection($name, $collection);
66 66
 		}
67 67
 	}
68 68
 }
Please login to merge, or discard this patch.
src/FormComposite.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace WFV;
3
-defined( 'ABSPATH' ) or die();
3
+defined('ABSPATH') or die();
4 4
 
5 5
 use WFV\Abstraction\Composable;
6 6
 use WFV\Contract\ArtisanInterface;
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
 	 * @param ArtisanInterface $builder
40 40
 	 * @param string $action
41 41
 	 */
42
-	function __construct( ArtisanInterface $builder, $action ) {
42
+	function __construct(ArtisanInterface $builder, $action) {
43 43
 		$this->alias = $action;
44
-		$this->install( $builder->collection );
44
+		$this->install($builder->collection);
45 45
 		$this->strategies = $builder->strategies;
46 46
 		$this->validator = $builder->validator;
47 47
 	}
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
 	 * @param string $value Value to compare against.
56 56
 	 * @return string|null
57 57
 	 */
58
-	public function checked_if( $field = null, $value = null ) {
59
-		return $this->string_or_null( 'checked', $field, $value );
58
+	public function checked_if($field = null, $value = null) {
59
+		return $this->string_or_null('checked', $field, $value);
60 60
 	}
61 61
 
62 62
 	/**
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
 	 * @param callable (optional) $callback
71 71
 	 * @return string
72 72
 	 */
73
-	public function display( $field = null, callable $callback = null ) {
74
-		echo $input = $this->utilize('input')->escape( $field );
73
+	public function display($field = null, callable $callback = null) {
74
+		echo $input = $this->utilize('input')->escape($field);
75 75
 		return $input;
76 76
 	}
77 77
 
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
 	 * @param string $value Value to compare against.
108 108
 	 * @return string|null
109 109
 	 */
110
-	public function selected_if( $field = null, $value = null ) {
111
-		return $this->string_or_null( 'selected', $field, $value );
110
+	public function selected_if($field = null, $value = null) {
111
+		return $this->string_or_null('selected', $field, $value);
112 112
 	}
113 113
 
114 114
 	/**
@@ -120,9 +120,9 @@  discard block
 block discarded – undo
120 120
 	 */
121 121
 	public function token_fields() {
122 122
 		// TODO - Move markup into something - perhaps a renderable interface?
123
-		$token_name = $this->alias . '_token';
124
-		echo $nonce_field = wp_nonce_field( $this->alias, $token_name, false, false );
125
-		echo $action_field = '<input type="hidden" name="action" value="'. $this->alias .'">';
123
+		$token_name = $this->alias.'_token';
124
+		echo $nonce_field = wp_nonce_field($this->alias, $token_name, false, false);
125
+		echo $action_field = '<input type="hidden" name="action" value="'.$this->alias.'">';
126 126
 	}
127 127
 
128 128
 	/**
@@ -134,14 +134,14 @@  discard block
 block discarded – undo
134 134
 	 * @return bool
135 135
 	 */
136 136
 	public function validate() {
137
-		$input = $this->utilize('input')->get_array( false );
137
+		$input = $this->utilize('input')->get_array(false);
138 138
 		$rules = $this->utilize('rules')->get_array();
139 139
 
140
-		foreach( array_keys($rules) as $field ) {
141
-			if( $this->strategies[ $field ] ) {
142
-				foreach( $this->strategies[ $field ] as $rule ) {
143
-					$value = ( isset( $input[ $field ] ) ) ? $input[ $field ] : null;
144
-					$this->validator->validate( $rule, $value );
140
+		foreach (array_keys($rules) as $field) {
141
+			if ($this->strategies[$field]) {
142
+				foreach ($this->strategies[$field] as $rule) {
143
+					$value = (isset($input[$field])) ? $input[$field] : null;
144
+					$this->validator->validate($rule, $value);
145 145
 				}
146 146
 			}
147 147
 		}
@@ -161,10 +161,10 @@  discard block
 block discarded – undo
161 161
 	protected function is_valid() {
162 162
 
163 163
 		$is_valid = $this->validator->is_valid();
164
-		if( false === $is_valid ) {
165
-			$this->utilize('errors')->set_errors( $this->validator->errors() );
164
+		if (false === $is_valid) {
165
+			$this->utilize('errors')->set_errors($this->validator->errors());
166 166
 		}
167
-		$this->trigger_post_validate_action( $is_valid );
167
+		$this->trigger_post_validate_action($is_valid);
168 168
 		return $is_valid;
169 169
 	}
170 170
 
@@ -179,8 +179,8 @@  discard block
 block discarded – undo
179 179
 	 * @param string (optional) $value
180 180
 	 * @return string|null
181 181
 	 */
182
-	protected function string_or_null( $response, $field = null, $value = null ) {
183
-		return ( $this->input( $field )->contains( $field, $value ) ) ? $response : null;
182
+	protected function string_or_null($response, $field = null, $value = null) {
183
+		return ($this->input($field)->contains($field, $value)) ? $response : null;
184 184
 	}
185 185
 
186 186
 	/**
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
 	 *
192 192
 	 * @param bool $is_valid
193 193
 	 */
194
-	protected function trigger_post_validate_action( $is_valid = false ) {
195
-		$action = ( true === $is_valid ) ? $this->alias : $this->alias .'_fail';
196
-		do_action( $action, $this );
194
+	protected function trigger_post_validate_action($is_valid = false) {
195
+		$action = (true === $is_valid) ? $this->alias : $this->alias.'_fail';
196
+		do_action($action, $this);
197 197
 	}
198 198
 }
Please login to merge, or discard this patch.
src/Artisan/FormArtisan.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace WFV\Artisan;
3
-defined( 'ABSPATH' ) or die();
3
+defined('ABSPATH') or die();
4 4
 
5 5
 use \Respect\Validation\Validator as RespectValidator;
6 6
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	 *
70 70
 	 * @param array $config
71 71
 	 */
72
-	function __construct( array $config ) {
72
+	function __construct(array $config) {
73 73
 		$this->config = $config;
74 74
 	}
75 75
 
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
 	 * @param string $action
93 93
 	 * @return WFV\Artisan\FormArtisan
94 94
 	 */
95
-	public function create( $action ) {
96
-		$this->form = new FormComposite( $this, $action );
95
+	public function create($action) {
96
+		$this->form = new FormComposite($this, $action);
97 97
 		return $this;
98 98
 	}
99 99
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	 * @return WFV\Artisan\FormArtisan
107 107
 	 */
108 108
 	public function errors() {
109
-		$this->collection['errors'] = new ErrorCollection( $this->labels() );
109
+		$this->collection['errors'] = new ErrorCollection($this->labels());
110 110
 		return $this;
111 111
 	}
112 112
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 	 * @return array
121 121
 	 */
122 122
 	protected function labels() {
123
-		return array_map( function( $item ) {
123
+		return array_map(function($item) {
124 124
 			return $item['label'];
125 125
 		}, $this->config);
126 126
 	}
@@ -134,10 +134,10 @@  discard block
 block discarded – undo
134 134
 	 * @param array $data
135 135
 	 * @return WFV\Artisan\FormArtisan
136 136
 	 */
137
-	public function input( array $data = [] ) {
137
+	public function input(array $data = []) {
138 138
 		$input = $data[0];
139 139
 		$trim = $data[1];
140
-		$this->collection['input'] = new InputCollection( $input, $trim );
140
+		$this->collection['input'] = new InputCollection($input, $trim);
141 141
 		return $this;
142 142
 	}
143 143
 
@@ -150,10 +150,10 @@  discard block
 block discarded – undo
150 150
 	 * @return WFV\Artisan\FormArtisan
151 151
 	 */
152 152
 	public function rules() {
153
-		foreach( $this->config as $field => $options ) {
154
-			$rules[ $field ] = $options['rules'];
153
+		foreach ($this->config as $field => $options) {
154
+			$rules[$field] = $options['rules'];
155 155
 		}
156
-		$this->collection['rules'] = new RuleCollection( $rules );
156
+		$this->collection['rules'] = new RuleCollection($rules);
157 157
 		$this->resolve_strategies();
158 158
 		return $this;
159 159
 	}
@@ -186,25 +186,25 @@  discard block
 block discarded – undo
186 186
 		$optional = false;
187 187
 		$rules = $this->collection['rules']->get_array();
188 188
 
189
-		foreach( $rules as $field => $ruleset ) {
189
+		foreach ($rules as $field => $ruleset) {
190 190
 
191 191
 			$optional = in_array("optional", $ruleset);
192 192
 
193
-			foreach( $ruleset as $rule ) {
193
+			foreach ($ruleset as $rule) {
194 194
 
195
-				if( 'optional' !== $rule ){
195
+				if ('optional' !== $rule) {
196 196
 
197
-					$rule_name = ( is_string( $rule ) ) ? $rule : $rule['rule'];
198
-					$class = str_replace(' ', '', ucwords( str_replace('_', ' ', $rule_name ) ) );
197
+					$rule_name = (is_string($rule)) ? $rule : $rule['rule'];
198
+					$class = str_replace(' ', '', ucwords(str_replace('_', ' ', $rule_name)));
199 199
 					$class = 'WFV\Validators\\'.$class;
200 200
 
201
-					$message = ( isset( $this->config[ $field ]['messages'][ $rule_name ] ) )
202
-						? $this->config[ $field ]['messages'][ $rule_name ]
201
+					$message = (isset($this->config[$field]['messages'][$rule_name]))
202
+						? $this->config[$field]['messages'][$rule_name]
203 203
 						: false;
204 204
 
205
-					$strategies[ $field ][ $rule_name ] = ( is_string( $rule ) )
206
-						? new $class( new RespectValidator(), $field, $optional, $message )
207
-						: new $class( new RespectValidator(), $field, $optional, $message, $rule['params'] );
205
+					$strategies[$field][$rule_name] = (is_string($rule))
206
+						? new $class(new RespectValidator(), $field, $optional, $message)
207
+						: new $class(new RespectValidator(), $field, $optional, $message, $rule['params']);
208 208
 				}
209 209
 			}
210 210
 		}
Please login to merge, or discard this patch.
src/Artisan/Director.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace WFV\Artisan;
3
-defined( 'ABSPATH' ) or die( 'envois' );
3
+defined('ABSPATH') or die('envois');
4 4
 
5 5
 use WFV\Contract\ArtisanInterface;
6 6
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
    *
47 47
    * @param string (optional) $identity
48 48
    */
49
-  function __construct( $identity = null ) {
49
+  function __construct($identity = null) {
50 50
     $this->entity = $identity;
51 51
   }
52 52
 
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
    * @param mixed $characteristic
60 60
    * @return self
61 61
    */
62
-  public function describe( $attribute, $characteristic ) {
63
-    $this->scribe[ $attribute ] = $characteristic;
62
+  public function describe($attribute, $characteristic) {
63
+    $this->scribe[$attribute] = $characteristic;
64 64
     return $this;
65 65
   }
66 66
 
@@ -72,10 +72,10 @@  discard block
 block discarded – undo
72 72
    * @param ArtisanInterface $artisan
73 73
    * @return Composite
74 74
    */
75
-  public function compose( ArtisanInterface $artisan ) {
76
-    $this->orchestrate( $this->aspect, $artisan );
75
+  public function compose(ArtisanInterface $artisan) {
76
+    $this->orchestrate($this->aspect, $artisan);
77 77
     return $artisan
78
-      ->create( $this->entity )
78
+      ->create($this->entity)
79 79
       ->actualize();
80 80
   }
81 81
 
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
    * @param string|array (optional) $attributes
89 89
    * @return self
90 90
    */
91
-  public function with( $quality, $attributes = null ) {
92
-    $this->aspect[ $quality ] = $attributes;
91
+  public function with($quality, $attributes = null) {
92
+    $this->aspect[$quality] = $attributes;
93 93
     return $this;
94 94
   }
95 95
 
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
    * @param array $aspect
103 103
    * @param ArtisanInterface $artisan
104 104
    */
105
-  private function orchestrate( array $aspect, ArtisanInterface &$artisan ) {
106
-    foreach( $aspect as $component => $params ) {
107
-      $artisan->$component( $params );
105
+  private function orchestrate(array $aspect, ArtisanInterface&$artisan) {
106
+    foreach ($aspect as $component => $params) {
107
+      $artisan->$component($params);
108 108
     }
109 109
   }
110 110
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
    *
117 117
    * @param
118 118
    */
119
-  private function adapt( $interface ) {
119
+  private function adapt($interface) {
120 120
 
121 121
   }
122 122
 }
Please login to merge, or discard this patch.
src/Contract/CollectionInterface.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace WFV\Contract;
3
-defined( 'ABSPATH' ) or die();
3
+defined('ABSPATH') or die();
4 4
 
5 5
 /**
6 6
  *
@@ -12,12 +12,12 @@  discard block
 block discarded – undo
12 12
 	/**
13 13
 	 * @return bool
14 14
 	 */
15
-	public function contains( $key = null, $value = null );
15
+	public function contains($key = null, $value = null);
16 16
 
17 17
 	/**
18 18
 	 * @return bool
19 19
 	 */
20
-	public function has( $key = null );
20
+	public function has($key = null);
21 21
 
22 22
 	/**
23 23
 	 * @return bool
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	/**
28 28
 	 * @return string|null
29 29
 	 */
30
-	public function escape( $key, callable $callback = null );
30
+	public function escape($key, callable $callback = null);
31 31
 
32 32
 	/**
33 33
 	 * @return
Please login to merge, or discard this patch.