Passed
Branch master (c4846a)
by Oskars
03:18
created
src/ScenariosServiceProvider.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -22,15 +22,15 @@  discard block
 block discarded – undo
22 22
 	 */
23 23
 	class ScenariosServiceProvider extends ServiceProvider
24 24
 	{
25
-	    /**
26
-	     * Bootstrap the application events.
27
-	     *
28
-	     * @return  void
29
-	     */
30
-	    public function boot()
31
-	    {
25
+		/**
26
+		 * Bootstrap the application events.
27
+		 *
28
+		 * @return  void
29
+		 */
30
+		public function boot()
31
+		{
32 32
 			//
33
-	    }
33
+		}
34 34
 		
35 35
 		/**
36 36
 		 * Register the application services.
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 		 * @return  void
39 39
 		 */
40 40
 		public function register()
41
-	    {
42
-	        //
43
-	    }
41
+		{
42
+			//
43
+		}
44 44
 	}
Please login to merge, or discard this patch.
src/Scenarios.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 		 */
68 68
 		public function Scenario_Pattern_Filter($method)
69 69
 		{
70
-			preg_match_all(self::$SCENARIO_PATTERN , strtolower($method), $matches);
70
+			preg_match_all(self::$SCENARIO_PATTERN, strtolower($method), $matches);
71 71
 			
72 72
 			return $matches[0][0] ?? isset($matches[0][0]);
73 73
 		}
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 		 */
119 119
 		public function Current_Controller_Function_Name()
120 120
 		{
121
-			preg_match_all(self::$CURRENT_CONTROLLER_NAME_PATTERN , self::Scenario_Current_Controller(), $matches, PREG_SET_ORDER, 1);
122
-			return ucfirst($matches[0][1] ?? isset($matches[0][1]) ?:  $matches[0][2] ?? isset($matches[0][2]));
121
+			preg_match_all(self::$CURRENT_CONTROLLER_NAME_PATTERN, self::Scenario_Current_Controller(), $matches, PREG_SET_ORDER, 1);
122
+			return ucfirst($matches[0][1] ?? isset($matches[0][1]) ?: $matches[0][2] ?? isset($matches[0][2]));
123 123
 		}
124 124
 	}
125 125
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@
 block discarded – undo
83 83
 			if ($getActionMethod === $getRequestUri)
84 84
 			{
85 85
 				return $this->Scenario = $getActionMethod;
86
-			}
87
-			else
86
+			} else
88 87
 			{
89 88
 				#FallBack Scenario / Mitigate Artisan Issues
90 89
 				return $this->Scenario = self::$SCENARIO_CREATE;
Please login to merge, or discard this patch.