Passed
Push — master ( 158c7e...b2ebb4 )
by
unknown
01:32
created
config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
2 2
 /**
3 3
  * Absolute path to framework's directory
4 4
  */
5
-if ( ! defined( 'CARBON_FRAMEWORK_DIR' ) ) {
6
-	define( 'CARBON_FRAMEWORK_DIR', __DIR__ );
5
+if ( ! defined('CARBON_FRAMEWORK_DIR')) {
6
+	define('CARBON_FRAMEWORK_DIR', __DIR__);
7 7
 }
Please login to merge, or discard this patch.
src/Facades/Facade.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public static function spy()
35 35
     {
36
-        if (! static::isMock()) {
36
+        if ( ! static::isMock()) {
37 37
             $class = static::getMockableClass();
38 38
 
39 39
             static::swap($class ? Mockery::spy($class) : Mockery::spy());
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     protected static function createFreshMockInstance()
65 65
     {
66
-        return tap(static::createMock(), function ($mock) {
66
+        return tap(static::createMock(), function($mock) {
67 67
             static::swap($mock);
68 68
 
69 69
             $mock->shouldAllowMockingProtectedMethods();
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     {
219 219
         $instance = static::getFacadeRoot();
220 220
 
221
-        if (! $instance) {
221
+        if ( ! $instance) {
222 222
             throw new RuntimeException('A facade root has not been set.');
223 223
         }
224 224
 
Please login to merge, or discard this patch.
src/Url.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 	 * @return string
23 23
 	 */
24 24
 	public static function getCurrentUrl() {
25
-		return home_url( add_query_arg( array() ) );
25
+		return home_url(add_query_arg(array()));
26 26
 	}
27 27
 
28 28
 	/**
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
 	 * @param  string $url
32 32
 	 * @return string
33 33
 	 */
34
-	public static function addLeadingSlash( $url ) {
35
-		return '/' . static::removeLeadingSlash( $url );
34
+	public static function addLeadingSlash($url) {
35
+		return '/' . static::removeLeadingSlash($url);
36 36
 	}
37 37
 
38 38
 	/**
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
 	 * @param  string $url
42 42
 	 * @return string
43 43
 	 */
44
-	public static function removeLeadingSlash( $url ) {
45
-		return preg_replace( '/^\/+/', '', $url );
44
+	public static function removeLeadingSlash($url) {
45
+		return preg_replace('/^\/+/', '', $url);
46 46
 	}
47 47
 
48 48
 	/**
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
 	 * @param  string $url
52 52
 	 * @return string
53 53
 	 */
54
-	public static function addTrailingSlash( $url ) {
55
-		return trailingslashit( $url );
54
+	public static function addTrailingSlash($url) {
55
+		return trailingslashit($url);
56 56
 	}
57 57
 
58 58
 	/**
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	 * @param  string $url
62 62
 	 * @return string
63 63
 	 */
64
-	public static function removeTrailingSlash( $url ) {
65
-		return untrailingslashit( $url );
64
+	public static function removeTrailingSlash($url) {
65
+		return untrailingslashit($url);
66 66
 	}
67 67
 }
Please login to merge, or discard this patch.
src/Support/AliasLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      */
92 92
     public function register()
93 93
     {
94
-        if (! $this->registered) {
94
+        if ( ! $this->registered) {
95 95
             $this->prependToLoaderStack();
96 96
 
97 97
             $this->registered = true;
Please login to merge, or discard this patch.
src/Support/Arr.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
 
63 63
         foreach ($array as $key => $value) {
64 64
             if (is_array($value) && ! empty($value)) {
65
-                $results = array_merge($results, static::dot($value, $prepend.$key.'.'));
65
+                $results = array_merge($results, static::dot($value, $prepend . $key . '.'));
66 66
             } else {
67
-                $results[$prepend.$key] = $value;
67
+                $results[$prepend . $key] = $value;
68 68
             }
69 69
         }
70 70
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public static function get($array, $key, $default = null)
203 203
     {
204
-        if (! static::accessible($array)) {
204
+        if ( ! static::accessible($array)) {
205 205
             return $default;
206 206
         }
207 207
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 
240 240
         $keys = (array) $keys;
241 241
 
242
-        if (! $array) {
242
+        if ( ! $array) {
243 243
             return false;
244 244
         }
245 245
 
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
             // If the key doesn't exist at this depth, we will just create an empty array
402 402
             // to hold the next value, allowing us to create the arrays to hold final
403 403
             // values at the correct depth. Then we'll keep digging into the array.
404
-            if (! isset($array[$key]) || ! is_array($array[$key])) {
404
+            if ( ! isset($array[$key]) || ! is_array($array[$key])) {
405 405
                 $array[$key] = [];
406 406
             }
407 407
 
Please login to merge, or discard this patch.
src/Input/OldInput.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 	 * @return array
32 32
 	 */
33 33
 	public static function all() {
34
-		return Flash::peek( static::getFlashKey() );
34
+		return Flash::peek(static::getFlashKey());
35 35
 	}
36 36
 
37 37
 	/**
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
 	 * @see Arr::get()
41 41
 	 */
42 42
 	public static function get() {
43
-		$arguments = array_merge( [
43
+		$arguments = array_merge([
44 44
 			static::all(),
45
-		], func_get_args() );
46
-		return call_user_func_array( [Arr::class, 'get'], $arguments );
45
+		], func_get_args());
46
+		return call_user_func_array([Arr::class, 'get'], $arguments);
47 47
 	}
48 48
 }
49 49
\ No newline at end of file
Please login to merge, or discard this patch.
src/Controllers/Controller.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -19,35 +19,35 @@
 block discarded – undo
19 19
 	/**
20 20
 	 * @see Response::output()
21 21
 	 */
22
-	protected function output( $output ) {
23
-		return FrameworkResponse::output( $this->response(), $output );
22
+	protected function output($output) {
23
+		return FrameworkResponse::output($this->response(), $output);
24 24
 	}
25 25
 
26 26
 	/**
27 27
 	 * @see Response::template()
28 28
 	 */
29
-	protected function template( $templates, $context = array() ) {
30
-		return FrameworkResponse::template( $this->response(), $templates, $context );
29
+	protected function template($templates, $context = array()) {
30
+		return FrameworkResponse::template($this->response(), $templates, $context);
31 31
 	}
32 32
 
33 33
 	/**
34 34
 	 * @see Response::json()
35 35
 	 */
36
-	protected function json( $data ) {
37
-		return FrameworkResponse::json( $this->response(), $data );
36
+	protected function json($data) {
37
+		return FrameworkResponse::json($this->response(), $data);
38 38
 	}
39 39
 
40 40
 	/**
41 41
 	 * @see Response::redirect()
42 42
 	 */
43
-	protected function redirect( $url, $status = 302 ) {
44
-		return FrameworkResponse::redirect( $this->response(), $url, $status );
43
+	protected function redirect($url, $status = 302) {
44
+		return FrameworkResponse::redirect($this->response(), $url, $status);
45 45
 	}
46 46
 
47 47
 	/**
48 48
 	 * @see Response::error()
49 49
 	 */
50
-	protected function error( $code ) {
51
-		return FrameworkResponse::error( $this->response(), $code );
50
+	protected function error($code) {
51
+		return FrameworkResponse::error($this->response(), $code);
52 52
 	}
53 53
 }
Please login to merge, or discard this patch.
src/Templating/EngineInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,5 +13,5 @@
 block discarded – undo
13 13
 	 * @param  array  $context
14 14
 	 * @return string
15 15
 	 */
16
-	public function render( $file, $context );
16
+	public function render($file, $context);
17 17
 }
18 18
\ No newline at end of file
Please login to merge, or discard this patch.
src/Templating/Php.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@
 block discarded – undo
9 9
 	/**
10 10
 	 * {@inheritDoc}
11 11
 	 */
12
-	public function render( $file, $context ) {
12
+	public function render($file, $context) {
13 13
 		$__template = $file;
14 14
 		$__context = $context;
15
-		$renderer = function() use ( $__template, $__context ) {
15
+		$renderer = function() use ($__template, $__context) {
16 16
 			ob_start();
17
-			extract( $__context );
18
-			include( $__template );
17
+			extract($__context);
18
+			include($__template);
19 19
 			return ob_get_clean();
20 20
 		};
21 21
 		return $renderer();
Please login to merge, or discard this patch.