Passed
Pull Request — master (#39)
by Iman
04:21 queued 02:11
created
src/SingletonServices.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     protected function declareAsSingleton(Container $app)
31 31
     {
32 32
         foreach ($this->singletonClasses as $class) {
33
-            $app->singleton($class, function () use ($class) {
33
+            $app->singleton($class, function() use ($class) {
34 34
                 return new $class;
35 35
             });
36 36
         }
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function registerSingletons(Container $app)
40 40
     {
41
-        $app->singleton('command.imanghafoori.widget', function (Container $app) {
41
+        $app->singleton('command.imanghafoori.widget', function(Container $app) {
42 42
             return $app['Imanghafoori\Widgets\WidgetGenerator'];
43 43
         });
44 44
 
45
-        $app->singleton(Normalizer::class, function () {
45
+        $app->singleton(Normalizer::class, function() {
46 46
             $cacheNormalizer = new CacheNormalizer();
47 47
             $tplNormalizer = new TemplateNormalizer();
48 48
             $presenterNormalizer = new PresenterNormalizer();
Please login to merge, or discard this patch.
src/Utils/DebugInfo.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $tpl = $this->getTplPath($this->widget->template);
42 42
 
43
-        $this->html = "<span title='WidgetObj : ".get_class($this->widget).".php&#013;Template : {$tpl}{$this->cacheState()}'>{$this->html}</span>";
43
+        $this->html = "<span title='WidgetObj : " . get_class($this->widget) . ".php&#013;Template : {$tpl}{$this->cacheState()}'>{$this->html}</span>";
44 44
     }
45 45
 
46 46
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     private function cacheState(): string
52 52
     {
53
-        if (! $this->policies->widgetShouldUseCache()) {
53
+        if (!$this->policies->widgetShouldUseCache()) {
54 54
             return ' &#013;Cache: is globally turned off (You should put "enable_cache" => true in config\widgetize.php) ';
55 55
         }
56 56
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     private function addHtmlComments(): void
61 61
     {
62
-        $this->html = "<!-- '{".get_class($this->widget)."' Widget Start -->".$this->html."<!-- '".get_class($this->widget)."' Widget End -->";
62
+        $this->html = "<!-- '{" . get_class($this->widget) . "' Widget Start -->" . $this->html . "<!-- '" . get_class($this->widget) . "' Widget End -->";
63 63
     }
64 64
 
65 65
     /**
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
     private function getTplPath(string $tpl): string
70 70
     {
71 71
         if (str_contains($tpl, 'Widgets::')) {
72
-            $tpl = str_replace('Widgets::', app()->getNamespace().'Widgets\\', $tpl);
72
+            $tpl = str_replace('Widgets::', app()->getNamespace() . 'Widgets\\', $tpl);
73 73
         }
74 74
 
75
-        return str_replace('.', '\\', $tpl).'.blade.php';
75
+        return str_replace('.', '\\', $tpl) . '.blade.php';
76 76
     }
77 77
 }
Please login to merge, or discard this patch.