Passed
Push — develop ( a8cd8c...3d135a )
by Paul
02:51
created
src/SiteMeta.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
 	 */
15 15
 	public function get( $group = null, $key = null, $fallback = null )
16 16
 	{
17
-		$options = get_option( apply_filters( 'pollux/settings/option', Settings::ID ));
18
-		if( empty( $options )) {
17
+		$options = get_option( apply_filters( 'pollux/settings/option', Settings::ID ) );
18
+		if( empty( $options ) ) {
19 19
 			return $fallback;
20 20
 		}
21
-		if( !is_string( $group )) {
21
+		if( !is_string( $group ) ) {
22 22
 			return $options;
23 23
 		}
24 24
 		$group = $this->normalize( $options, $group, $fallback );
@@ -34,10 +34,10 @@  discard block
 block discarded – undo
34 34
 	 */
35 35
 	protected function normalize( array $options, $key, $fallback )
36 36
 	{
37
-		if( !array_key_exists( $key, $options )) {
37
+		if( !array_key_exists( $key, $options ) ) {
38 38
 			return $fallback;
39 39
 		}
40
-		$option = $options[$key];
40
+		$option = $options[ $key ];
41 41
 		$option = is_array( $option )
42 42
 			? array_filter( $option )
43 43
 			: trim( $option );
Please login to merge, or discard this patch.