Test Failed
Branch feature/refactoring-samurai (56de49)
by Giuliano
04:55
created
src/Providers/SamuraiServiceProvider.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
     private function registerFacade()
32 32
     {
33 33
         $this->app->bind(
34
-            'samurai', function () {
34
+            'samurai', function() {
35 35
                 return new Samurai();
36 36
             }
37 37
         );
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected function registerConfigs()
46 46
     {
47
-        $source    = __DIR__.'/../Config/config.php';
47
+        $source    = __DIR__ . '/../Config/config.php';
48 48
         $published = config_path('samurai.php');
49 49
 
50 50
         $this->publishes([$source => $published], 'samurai');
Please login to merge, or discard this patch.
src/Providers/RegistersCustomDirectiveProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     protected function registerPublic()
23 23
     {             
24 24
         Blade::directive(
25
-            'public', function ($file) : string {
25
+            'public', function($file) : string {
26 26
                       
27 27
                 $theme = Samurai::base()->current(); 
28 28
             
Please login to merge, or discard this patch.
src/Foundation/FilenameParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
         $type = $this->parseType($file);
18 18
         $name = $this->parseFullName($file);
19 19
 
20
-        if (! $name || ! $type) { return null;
20
+        if (!$name || !$type) { return null;
21 21
         }
22 22
 
23 23
         $request = [
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $name   = $this->parseOnlyName($file);
41 41
         $folder = $this->parseFolder($file);
42 42
         
43
-        if (! $name) {
43
+        if (!$name) {
44 44
             return null;
45 45
         }
46 46
         
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
         $name = (count($pieces) > 1) ? implode(DS, $pieces) : $pieces[0];
135 135
 
136
-        return (! strlen($name)) ? null : $name;
136
+        return (!strlen($name)) ? null : $name;
137 137
     }
138 138
 
139 139
     /**
Please login to merge, or discard this patch.
src/Foundation/EnvHandler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
     public function __construct()
12 12
     {
13
-        if (! $this->exists()) {
13
+        if (!$this->exists()) {
14 14
             $this->initEnv();
15 15
         }
16 16
     }
@@ -88,12 +88,12 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $search  = null;
90 90
         $lines   = $this->lines();
91
-        $pattern = strtoupper('/'. $key . '=/');
91
+        $pattern = strtoupper('/' . $key . '=/');
92 92
 
93 93
         if (empty($lines)) { return null;
94 94
         }
95 95
 
96
-        foreach($lines as $no => $line) {
96
+        foreach ($lines as $no => $line) {
97 97
             if (preg_match($pattern, $line)) {
98 98
                 $search = $no;
99 99
             }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function content() : string
135 135
     {
136
-        if (! $this->exists()) {
136
+        if (!$this->exists()) {
137 137
             throw new EnvNotFoundException();
138 138
         }
139 139
 
Please login to merge, or discard this patch.