Passed
Push — develop ( 5f7986...fd393c )
by Paul
03:01
created
src/Config/ConfigManager.php 1 patch
Braces   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,7 +107,9 @@  discard block
 block discarded – undo
107 107
 			trailingslashit( dirname( dirname( ABSPATH ))),
108 108
 		]);
109 109
 		foreach( (array) $configLocations as $location ) {
110
-			if( !file_exists( $location . $configYaml ))continue;
110
+			if( !file_exists( $location . $configYaml )) {
111
+				continue;
112
+			}
111 113
 			return $location . $configYaml;
112 114
 		}
113 115
 		return $this->app->path( 'defaults.yml' );
@@ -118,7 +120,8 @@  discard block
 block discarded – undo
118 120
 	 */
119 121
 	public function normalizeArray( array $array )
120 122
 	{
121
-		array_walk( $array, function( &$value, $key ) {
123
+		array_walk( $array, function( &$value, $key )
124
+		{
122 125
 			if( !is_numeric( $value ) && is_string( $value )) {
123 126
 				$value = $this->parseYaml( $value, $key );
124 127
 				if( $this->parseError == $key ) {
@@ -134,7 +137,8 @@  discard block
 block discarded – undo
134 137
 	 */
135 138
 	public function normalizeYamlValues( array $array )
136 139
 	{
137
-		return array_map( function( $value ) {
140
+		return array_map( function( $value )
141
+		{
138 142
 			return is_array( $value )
139 143
 				? $this->convertArrayToYaml( $value )
140 144
 				: $value;
@@ -191,7 +195,8 @@  discard block
 block discarded – undo
191 195
 		}
192 196
 		$pattern = '/(\')((' . implode( '|', $strings ) . ')\(?.+\))(\')/';
193 197
 		return stripslashes(
194
-			preg_replace_callback( $pattern, function( $matches ) {
198
+			preg_replace_callback( $pattern, function( $matches )
199
+			{
195 200
 				return str_replace( "''", "'", $matches[2] );
196 201
 			}, $configString )
197 202
 		);
Please login to merge, or discard this patch.