Passed
Pull Request — master (#8)
by
unknown
05:39
created
src/Distilleries/Contentful/Helpers/NamespaceResolver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     {
30 30
         $class = static::modelClass($model);
31 31
 
32
-        if (! empty($class)) {
32
+        if (!empty($class)) {
33 33
             $model = new $class;
34 34
             return $model instanceof ContentfulModel ? $model : null;
35 35
         }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $class = static::mapperClass($mapper);
60 60
 
61
-        if (! empty($class)) {
61
+        if (!empty($class)) {
62 62
             return new $class;
63 63
         }
64 64
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public static function load(string $key, string $element): ?string
76 76
     {
77 77
         foreach (config($key, []) as $namespace) {
78
-            $modelClass = rtrim($namespace, '\\') . '\\' . ltrim(Str::studly($element), '\\');
78
+            $modelClass = rtrim($namespace, '\\').'\\'.ltrim(Str::studly($element), '\\');
79 79
             if (class_exists($modelClass)) {
80 80
                 return $modelClass;
81 81
             }
Please login to merge, or discard this patch.