Passed
Push — master ( 9604c7...90a7ba )
by
unknown
01:48
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/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/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.
src/ServiceProviders/Flash.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -11,24 +11,24 @@
 block discarded – undo
11 11
 	/**
12 12
 	 * {@inheritDoc}
13 13
 	 */
14
-	public function register( $container ) {
15
-		$container['framework.flash.flash'] = function( $c ) {
14
+	public function register($container) {
15
+		$container['framework.flash.flash'] = function($c) {
16 16
 			$session = null;
17
-			if ( isset( $c['framework.session'] ) ) {
17
+			if (isset($c['framework.session'])) {
18 18
 				$session = $c['framework.session'];
19
-			} else if ( isset( $_SESSION ) ) {
19
+			} else if (isset($_SESSION)) {
20 20
 				$session = &$_SESSION;
21 21
 			}
22
-			return new \CarbonFramework\Flash\Flash( $session );
22
+			return new \CarbonFramework\Flash\Flash($session);
23 23
 		};
24 24
 
25
-		Framework::facade( 'Flash', \CarbonFramework\Facades\Flash::class );
25
+		Framework::facade('Flash', \CarbonFramework\Facades\Flash::class);
26 26
 	}
27 27
 
28 28
 	/**
29 29
 	 * {@inheritDoc}
30 30
 	 */
31
-	public function boot( $container ) {
31
+	public function boot($container) {
32 32
 		// nothing to boot
33 33
 	}
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
src/ServiceProviders/ServiceProviderInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 	 * @param  \Pimple\Container $container
13 13
 	 * @return null
14 14
 	 */
15
-	public function register( $container );
15
+	public function register($container);
16 16
 
17 17
 	/**
18 18
 	 * Bootstrap any services if needed
@@ -20,5 +20,5 @@  discard block
 block discarded – undo
20 20
 	 * @param  \Pimple\Container $container
21 21
 	 * @return null
22 22
 	 */
23
-	public function boot( $container );
23
+	public function boot($container);
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
src/Routing/Middleware/MiddlewareInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,5 +14,5 @@
 block discarded – undo
14 14
 	 * @param \CarbonFramework\Request $request
15 15
 	 * @param  Closure                 $next
16 16
 	 */
17
-	public function handle( $request, Closure $next );
17
+	public function handle($request, Closure $next);
18 18
 }
Please login to merge, or discard this patch.
src/Routing/Middleware/HasMiddlewareInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 	 * @param  string|callable|\CarbonFramework\Routing\Middleware\MiddlewareInterface|array $middleware
23 23
 	 * @return object
24 24
 	 */
25
-	public function addMiddleware( $middleware );
25
+	public function addMiddleware($middleware);
26 26
 
27 27
 	/**
28 28
 	 * Alias for addMiddleware
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	 * @param  string|callable|\CarbonFramework\Routing\Middleware\MiddlewareInterface|array $middleware
31 31
 	 * @return object
32 32
 	 */
33
-	public function add( $middleware );
33
+	public function add($middleware);
34 34
 
35 35
 	/**
36 36
 	 * Execute an array of middleware recursively (last in, first out)
@@ -40,5 +40,5 @@  discard block
 block discarded – undo
40 40
 	 * @param  Closure                                                   $next
41 41
 	 * @return ResponseInterface
42 42
 	 */
43
-	public function executeMiddleware( $middleware, $request, Closure $next );
43
+	public function executeMiddleware($middleware, $request, Closure $next);
44 44
 }
Please login to merge, or discard this patch.
src/Routing/Middleware/OldInput.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@
 block discarded – undo
14 14
 	/**
15 15
 	 * {@inheritDoc}
16 16
 	 */
17
-	public function handle( $request, Closure $next ) {
18
-		$response = $next( $request );
17
+	public function handle($request, Closure $next) {
18
+		$response = $next($request);
19 19
 
20
-		if ( Flash::enabled() ) {
21
-			Flash::clear( OldInputService::getFlashKey() );
20
+		if (Flash::enabled()) {
21
+			Flash::clear(OldInputService::getFlashKey());
22 22
 
23
-			if ( $request->getMethod() === 'POST' ) {
24
-				Flash::add( OldInputService::getFlashKey(), $request->post() );
23
+			if ($request->getMethod() === 'POST') {
24
+				Flash::add(OldInputService::getFlashKey(), $request->post());
25 25
 			}
26 26
 		}
27 27
 		
Please login to merge, or discard this patch.