Completed
Pull Request — master (#28)
by
unknown
40s
created
functions.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,5 +13,5 @@
 block discarded – undo
13 13
  */
14 14
 function grid(array $config): string
15 15
 {
16
-    return (new GridView($config))->render();
16
+	return (new GridView($config))->render();
17 17
 }
18 18
\ No newline at end of file
Please login to merge, or discard this patch.
src/GridViewServiceProvider.php 2 patches
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -7,49 +7,49 @@
 block discarded – undo
7 7
 
8 8
 class GridViewServiceProvider extends ServiceProvider
9 9
 {
10
-    /**
11
-     * Perform post-registration booting of services.
12
-     *
13
-     * @return void
14
-     */
15
-    public function boot()
16
-    {
17
-        $this->loadViews();
18
-
19
-        $this->publishViews();
20
-        $this->publishResources();
21
-
22
-        $this->bootDirectives();
23
-    }
24
-
25
-    public function register()
26
-    {
27
-        //
28
-    }
29
-
30
-    private function loadViews()
31
-    {
32
-        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'woo_gridview');
33
-    }
34
-
35
-    private function publishViews()
36
-    {
37
-        $this->publishes([
38
-            __DIR__ . '/../resources/views' => resource_path('views/vendor/woo_gridview'),
39
-        ], 'views');
40
-    }
41
-
42
-    private function publishResources()
43
-    {
44
-        $this->publishes([
45
-            __DIR__ . '/../public' => 'public/vendor/woo_gridview',
46
-        ], 'public');
47
-    }
48
-
49
-    private function bootDirectives()
50
-    {
51
-        Blade::directive('grid', function ($expression) {
52
-            return "<?php echo grid($expression) ?>";
53
-        });
54
-    }
10
+	/**
11
+	 * Perform post-registration booting of services.
12
+	 *
13
+	 * @return void
14
+	 */
15
+	public function boot()
16
+	{
17
+		$this->loadViews();
18
+
19
+		$this->publishViews();
20
+		$this->publishResources();
21
+
22
+		$this->bootDirectives();
23
+	}
24
+
25
+	public function register()
26
+	{
27
+		//
28
+	}
29
+
30
+	private function loadViews()
31
+	{
32
+		$this->loadViewsFrom(__DIR__ . '/../resources/views', 'woo_gridview');
33
+	}
34
+
35
+	private function publishViews()
36
+	{
37
+		$this->publishes([
38
+			__DIR__ . '/../resources/views' => resource_path('views/vendor/woo_gridview'),
39
+		], 'views');
40
+	}
41
+
42
+	private function publishResources()
43
+	{
44
+		$this->publishes([
45
+			__DIR__ . '/../public' => 'public/vendor/woo_gridview',
46
+		], 'public');
47
+	}
48
+
49
+	private function bootDirectives()
50
+	{
51
+		Blade::directive('grid', function ($expression) {
52
+			return "<?php echo grid($expression) ?>";
53
+		});
54
+	}
55 55
 }
56 56
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
     private function bootDirectives()
50 50
     {
51
-        Blade::directive('grid', function ($expression) {
51
+        Blade::directive('grid', function($expression) {
52 52
             return "<?php echo grid($expression) ?>";
53 53
         });
54 54
     }
Please login to merge, or discard this patch.