Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Push — add-more-tests ( 8dd05e )
by
unknown
10:34
created
tests/Unit/CrudPanel/CrudPanelErrorsTest.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@
 block discarded – undo
17 17
 
18 18
     public function testItCanEnableAndDisableGroupedErrors()
19 19
     {
20
-         $this->crudPanel->setOperation('create');
21
-         $this->crudPanel->enableGroupedErrors();
22
-         $this->assertTrue($this->crudPanel->groupedErrorsEnabled());
23
-         $this->crudPanel->disableGroupedErrors();
24
-         $this->assertFalse($this->crudPanel->groupedErrorsEnabled());  
20
+            $this->crudPanel->setOperation('create');
21
+            $this->crudPanel->enableGroupedErrors();
22
+            $this->assertTrue($this->crudPanel->groupedErrorsEnabled());
23
+            $this->crudPanel->disableGroupedErrors();
24
+            $this->assertFalse($this->crudPanel->groupedErrorsEnabled());  
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
tests/Unit/CrudPanel/CrudPanelAutofocusTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@
 block discarded – undo
6 6
  */
7 7
 class CrudPanelAutofocusTest extends BaseCrudPanelTest
8 8
 {
9
-     public function testItCanEnableAndDisableAutofocus()
10
-     {
11
-          $this->crudPanel->setOperation('create');
12
-          $this->crudPanel->enableAutoFocus();
13
-          $this->assertTrue($this->crudPanel->getAutoFocusOnFirstField());
14
-          $this->crudPanel->disableAutofocus();
15
-          $this->assertFalse($this->crudPanel->getAutoFocusOnFirstField());
16
-     }
9
+        public function testItCanEnableAndDisableAutofocus()
10
+        {
11
+            $this->crudPanel->setOperation('create');
12
+            $this->crudPanel->enableAutoFocus();
13
+            $this->assertTrue($this->crudPanel->getAutoFocusOnFirstField());
14
+            $this->crudPanel->disableAutofocus();
15
+            $this->assertFalse($this->crudPanel->getAutoFocusOnFirstField());
16
+        }
17 17
 }
Please login to merge, or discard this patch.
tests/Unit/CrudPanel/CrudPanelMacroTest.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -7,26 +7,26 @@
 block discarded – undo
7 7
  */
8 8
 class CrudPanelMacroTest extends BaseCrudPanelTest
9 9
 {
10
-     public function testItCanRegisterMacro()
11
-     {
12
-          $this->crudPanel::macro('validMacro',function() {
13
-               return true;
14
-          });
10
+        public function testItCanRegisterMacro()
11
+        {
12
+            $this->crudPanel::macro('validMacro',function() {
13
+                return true;
14
+            });
15 15
           
16
-          $this->assertTrue($this->crudPanel->validMacro());
17
-     }
16
+            $this->assertTrue($this->crudPanel->validMacro());
17
+        }
18 18
 
19 19
     public function testThrowsErrorIfMacroExists()
20 20
     {
21
-     try {
22
-          $this->crudPanel::macro('setModel',function() {
23
-               return true;
24
-             });
25
-      } catch (\Throwable $e) {
26
-      }
27
-      $this->assertEquals(
28
-          new \Symfony\Component\HttpKernel\Exception\HttpException(500, 'Cannot register \'setModel\' macro. \'setModel()\' already exists on Backpack\CRUD\app\Library\CrudPanel\CrudPanel'),
29
-          $e
30
-      );
21
+        try {
22
+            $this->crudPanel::macro('setModel',function() {
23
+                return true;
24
+                });
25
+        } catch (\Throwable $e) {
26
+        }
27
+        $this->assertEquals(
28
+            new \Symfony\Component\HttpKernel\Exception\HttpException(500, 'Cannot register \'setModel\' macro. \'setModel()\' already exists on Backpack\CRUD\app\Library\CrudPanel\CrudPanel'),
29
+            $e
30
+        );
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 {
10 10
      public function testItCanRegisterMacro()
11 11
      {
12
-          $this->crudPanel::macro('validMacro',function() {
12
+          $this->crudPanel::macro('validMacro', function() {
13 13
                return true;
14 14
           });
15 15
           
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public function testThrowsErrorIfMacroExists()
20 20
     {
21 21
      try {
22
-          $this->crudPanel::macro('setModel',function() {
22
+          $this->crudPanel::macro('setModel', function() {
23 23
                return true;
24 24
              });
25 25
       } catch (\Throwable $e) {
Please login to merge, or discard this patch.
tests/Unit/CrudPanel/CrudPanelTitlesAndHeadingsTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $this->crudPanel->setModel(User::class);
38 38
         $request = request()->create('/admin/users/create', 'POST', ['name' => 'foo']);
39
-        $request->setRouteResolver(function () use ($request) {
39
+        $request->setRouteResolver(function() use ($request) {
40 40
             return (new Route('POST', 'admin/users/create', ['UserCrudController', 'create']))->bind($request);
41 41
         });
42 42
         $this->crudPanel->setRequest($request);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $this->crudPanel->setModel(User::class);
53 53
         $request = request()->create('/admin/users/create', 'POST', ['name' => 'foo']);
54
-        $request->setRouteResolver(function () use ($request) {
54
+        $request->setRouteResolver(function() use ($request) {
55 55
             return (new Route('POST', 'admin/users/create', ['UserCrudController', 'create']))->bind($request);
56 56
         });
57 57
         $this->crudPanel->setRequest($request);
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         $this->crudPanel->setModel(User::class);
68 68
         $request = request()->create('/admin/users/create', 'POST', ['name' => 'foo']);
69
-        $request->setRouteResolver(function () use ($request) {
69
+        $request->setRouteResolver(function() use ($request) {
70 70
             return (new Route('POST', 'admin/users/create', ['UserCrudController', 'create']))->bind($request);
71 71
         });
72 72
         $this->crudPanel->setRequest($request);
Please login to merge, or discard this patch.
tests/BaseTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@
 block discarded – undo
24 24
         ];
25 25
     }
26 26
     
27
-     // allow us to run crud panel private/protected methods like `inferFieldTypeFromDbColumnType`
28
-     public function invokeMethod(&$object, $methodName, array $parameters = [])
29
-     {
30
-         $reflection = new \ReflectionClass(get_class($object));
31
-         $method = $reflection->getMethod($methodName);
32
-         $method->setAccessible(true);
27
+        // allow us to run crud panel private/protected methods like `inferFieldTypeFromDbColumnType`
28
+        public function invokeMethod(&$object, $methodName, array $parameters = [])
29
+        {
30
+            $reflection = new \ReflectionClass(get_class($object));
31
+            $method = $reflection->getMethod($methodName);
32
+            $method->setAccessible(true);
33 33
  
34
-         return $method->invokeArgs($object, $parameters);
35
-     }
34
+            return $method->invokeArgs($object, $parameters);
35
+        }
36 36
 }
Please login to merge, or discard this patch.