Completed
Push — master ( 29d79e...8aac64 )
by Iman
09:16
created
src/Forget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $method = ltrim($method, 'about');
41 41
 
42 42
         if (in_array($method, ['Route', 'Action', 'Url'])) {
43
-            $args = resolve(RouteNormalizer::class)->{'normalize'.$method}($args);
43
+            $args = resolve(RouteNormalizer::class)->{'normalize' . $method}($args);
44 44
             return resolve(RouterEventManager::class)->forgetAbout($args);
45 45
         }
46 46
 
Please login to merge, or discard this patch.
src/Normilizers/RouteNormalizer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@  discard block
 block discarded – undo
11 11
      */
12 12
     public function normalizeAction($actions): array
13 13
     {
14
-        $addNamespace = function ($action) {
14
+        $addNamespace = function($action) {
15 15
             if ($action = ltrim($action, '\\')) {
16 16
                 return $action;
17 17
             }
18 18
 
19
-            return app()->getNamespace().'\\Http\\Controllers\\'.$action;
19
+            return app()->getNamespace() . '\\Http\\Controllers\\' . $action;
20 20
         };
21 21
 
22 22
         return array_map($addNamespace, $actions);
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function normalizeUrl($urls, $verb = 'GET'): array
32 32
     {
33
-        $removeSlash = function ($url) use ($verb) {
34
-            return $verb.ltrim($url, '/');
33
+        $removeSlash = function($url) use ($verb) {
34
+            return $verb . ltrim($url, '/');
35 35
         };
36 36
 
37 37
         return array_map($removeSlash, $urls);
Please login to merge, or discard this patch.
src/Normilizers/ViewNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function normalizeView(array $views): array
13 13
     {
14
-        array_walk($views, function ($view) {
14
+        array_walk($views, function($view) {
15 15
             $this->checkViewExists($view);
16 16
         });
17 17
 
Please login to merge, or discard this patch.
src/Switching/Consider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function allChecks()
33 33
     {
34
-        foreach($this->methods() as $method => $type){
34
+        foreach ($this->methods() as $method => $type) {
35 35
             $this->$method();
36 36
         }
37 37
     }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     private function turn($key, callable $closure = null)
44 44
     {
45
-        $key = 'heyman_ignore_'.$key;
45
+        $key = 'heyman_ignore_' . $key;
46 46
 
47 47
         $current = config($key);
48 48
         $this->changeMode($key);
Please login to merge, or discard this patch.