Completed
Push — master ( 251636...00c698 )
by Denis
01:25
created
src/Formatters/UrlFormatter.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 class UrlFormatter implements IFormatter
6 6
 {
7
-    public function format($value): string
8
-    {
9
-        return '<a href="' . htmlspecialchars($value, ENT_QUOTES) . '">' . htmlentities($value) . '</a>';
10
-    }
7
+	public function format($value): string
8
+	{
9
+		return '<a href="' . htmlspecialchars($value, ENT_QUOTES) . '">' . htmlentities($value) . '</a>';
10
+	}
11 11
 }
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
src/Formatters/TextFormatter.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 class TextFormatter implements IFormatter
6 6
 {
7
-    public function format($value): string
8
-    {
9
-        return htmlentities($value);
10
-    }
7
+	public function format($value): string
8
+	{
9
+		return htmlentities($value);
10
+	}
11 11
 }
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
src/Formatters/ImageFormatter.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 class ImageFormatter implements IFormatter
6 6
 {
7
-    public function format($value): string
8
-    {
9
-        return '<img src="' . htmlspecialchars($value, ENT_QUOTES) . '">';
10
-    }
7
+	public function format($value): string
8
+	{
9
+		return '<img src="' . htmlspecialchars($value, ENT_QUOTES) . '">';
10
+	}
11 11
 }
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
src/Formatters/IFormatter.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,5 +4,5 @@
 block discarded – undo
4 4
 
5 5
 interface IFormatter
6 6
 {
7
-    public function format($value) : string;
7
+	public function format($value) : string;
8 8
 }
9 9
\ No newline at end of file
Please login to merge, or discard this patch.
src/Formatters/EmailFormatter.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 class EmailFormatter implements IFormatter
6 6
 {
7
-    public function format($value): string
8
-    {
9
-        return '<a href="mailto:' . htmlspecialchars($value, ENT_QUOTES) . '">' . htmlentities($value) . '</a>';
10
-    }
7
+	public function format($value): string
8
+	{
9
+		return '<a href="mailto:' . htmlspecialchars($value, ENT_QUOTES) . '">' . htmlentities($value) . '</a>';
10
+	}
11 11
 }
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
src/GridViewServiceProvider.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
 
18 18
 		require_once __DIR__ . '/functions.php';
19 19
 
20
-        \Blade::directive('grid', function ($expression) {
21
-            return "<?php echo grid($expression)->render() ?>";
22
-        });
20
+		\Blade::directive('grid', function ($expression) {
21
+			return "<?php echo grid($expression)->render() ?>";
22
+		});
23 23
 
24
-        $this->publishes([
25
-            __DIR__ . '/../public' => 'public/vendor/grid-view',
26
-        ], 'public');
24
+		$this->publishes([
25
+			__DIR__ . '/../public' => 'public/vendor/grid-view',
26
+		], 'public');
27 27
 	}
28 28
 
29 29
 	public function register()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
 		require_once __DIR__ . '/functions.php';
19 19
 
20
-        \Blade::directive('grid', function ($expression) {
20
+        \Blade::directive('grid', function($expression) {
21 21
             return "<?php echo grid($expression)->render() ?>";
22 22
         });
23 23
 
Please login to merge, or discard this patch.
src/Filters/BaseFilter.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -7,21 +7,21 @@
 block discarded – undo
7 7
 
8 8
 abstract class BaseFilter
9 9
 {
10
-    use Configurable;
10
+	use Configurable;
11 11
 
12
-    public $name;
12
+	public $name;
13 13
 
14
-    public function __construct(array $config)
15
-    {
16
-        $this->loadConfig($config);
17
-    }
14
+	public function __construct(array $config)
15
+	{
16
+		$this->loadConfig($config);
17
+	}
18 18
 
19
-    protected function configTests(): array
20
-    {
21
-        return [
22
-            'name' => 'string',
23
-        ];
24
-    }
19
+	protected function configTests(): array
20
+	{
21
+		return [
22
+			'name' => 'string',
23
+		];
24
+	}
25 25
 
26
-    abstract public function render(GridView $grid) : string;
26
+	abstract public function render(GridView $grid) : string;
27 27
 }
28 28
\ No newline at end of file
Please login to merge, or discard this patch.
src/Filters/TextFilter.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
 
7 7
 class TextFilter extends BaseFilter
8 8
 {
9
-    public function render(GridView $grid): string
10
-    {
11
-        return view('woo_gridview::filters.text-filter', [
12
-            'name' => $this->name,
13
-            'value' => $grid->getRequest()->filters[$this->name] ?? '',
14
-        ]);
15
-    }
9
+	public function render(GridView $grid): string
10
+	{
11
+		return view('woo_gridview::filters.text-filter', [
12
+			'name' => $this->name,
13
+			'value' => $grid->getRequest()->filters[$this->name] ?? '',
14
+		]);
15
+	}
16 16
 }
17 17
\ No newline at end of file
Please login to merge, or discard this patch.
src/Filters/DropdownFilter.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -6,24 +6,24 @@
 block discarded – undo
6 6
 
7 7
 class DropdownFilter extends BaseFilter
8 8
 {
9
-    /**
10
-     * @var array
11
-     */
12
-    public $items;
9
+	/**
10
+	 * @var array
11
+	 */
12
+	public $items;
13 13
 
14
-    protected function configTests(): array
15
-    {
16
-        return array_merge(parent::configTests(), [
17
-            'items' => 'array',
18
-        ]);
19
-    }
14
+	protected function configTests(): array
15
+	{
16
+		return array_merge(parent::configTests(), [
17
+			'items' => 'array',
18
+		]);
19
+	}
20 20
 
21
-    public function render(GridView $grid): string
22
-    {
23
-        return view('woo_gridview::filters.dropdown-filter', [
24
-            'name' => $this->name,
25
-            'value' => $grid->getRequest()->filters[$this->name] ?? '',
26
-            'items' => $this->items,
27
-        ]);
28
-    }
21
+	public function render(GridView $grid): string
22
+	{
23
+		return view('woo_gridview::filters.dropdown-filter', [
24
+			'name' => $this->name,
25
+			'value' => $grid->getRequest()->filters[$this->name] ?? '',
26
+			'items' => $this->items,
27
+		]);
28
+	}
29 29
 }
30 30
\ No newline at end of file
Please login to merge, or discard this patch.