Completed
Pull Request — master (#4)
by Korotkov
01:29
created
app/Http/Supports/CommonHelper.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@  discard block
 block discarded – undo
12 12
      */
13 13
     protected function getIdFromSlug(string $slug) :string
14 14
     {
15
-      $slug = strip_tags($slug);
15
+        $slug = strip_tags($slug);
16 16
 
17
-      return (strpos($slug, '_') !== false) ? strstr($slug, '_', true) : $slug;
17
+        return (strpos($slug, '_') !== false) ? strstr($slug, '_', true) : $slug;
18 18
     }
19 19
 
20 20
     /**
@@ -24,13 +24,13 @@  discard block
 block discarded – undo
24 24
      */
25 25
     protected function redirectToSelf(string $uri)
26 26
     {
27
-      $page = $this->validation()->sanitize($this->post('page'))->required()->run();
27
+        $page = $this->validation()->sanitize($this->post('page'))->required()->run();
28 28
 
29
-      if ($this->validation()->access($page)) {
29
+        if ($this->validation()->access($page)) {
30 30
         return $this->redirect($uri . '/page/' . $page[0]);
31
-      }
31
+        }
32 32
 
33
-      return $this->redirect($uri);
33
+        return $this->redirect($uri);
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.