Passed
Push — master ( 033b76...80b8b4 )
by Anton
02:44
created
tests/Framework/Http/CookiesTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     public function testHasCookie(): void
38 38
     {
39
-        $this->http->setHandler(function () {
39
+        $this->http->setHandler(function (){
40 40
             return (int)$this->cookies()->has('a');
41 41
         });
42 42
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         ]);
55 55
         $this->http = $this->app->get(Http::class);
56 56
 
57
-        $this->http->setHandler(function () {
57
+        $this->http->setHandler(function (){
58 58
             return (int)$this->cookies()->has('a');
59 59
         });
60 60
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $this->app = $this->makeApp(['ENCRYPTER_KEY' => $key]);
72 72
         $this->http = $this->app->get(Http::class);
73 73
 
74
-        $this->http->setHandler(function () {
74
+        $this->http->setHandler(function (){
75 75
             return $this->cookies()->get('a');
76 76
         });
77 77
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $this->app = $this->makeApp(['ENCRYPTER_KEY' => $key]);
89 89
         $this->http = $this->app->get(Http::class);
90 90
 
91
-        $this->http->setHandler(function () {
91
+        $this->http->setHandler(function (){
92 92
             $this->cookies()->set('a', 'value');
93 93
 
94 94
             return 'ok';
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $this->app = $this->makeApp(['ENCRYPTER_KEY' => $key]);
113 113
         $this->http = $this->app->get(Http::class);
114 114
 
115
-        $this->http->setHandler(function () {
115
+        $this->http->setHandler(function (){
116 116
             $this->cookies()->schedule(Cookie::create('a', 'value'));
117 117
             $this->assertSame([], $this->cookies()->getAll());
118 118
             $this->assertCount(1, $this->cookies()->getScheduled());
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         $this->app = $this->makeApp(['ENCRYPTER_KEY' => $key]);
139 139
         $this->http = $this->app->get(Http::class);
140 140
 
141
-        $this->http->setHandler(function () {
141
+        $this->http->setHandler(function (){
142 142
             $this->cookies()->delete('cookie');
143 143
 
144 144
             return 'ok';
Please login to merge, or discard this patch.
tests/app/src/Controller/AuthController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function do(GuardInterface $guard)
30 30
     {
31
-        if (!$guard->allows('do')) {
31
+        if (!$guard->allows('do')){
32 32
             throw new ControllerException("Unauthorized permission 'do'", ControllerException::FORBIDDEN);
33 33
         }
34 34
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     public function token(AuthContextInterface $authContext)
39 39
     {
40
-        if ($authContext->getToken() !== null) {
40
+        if ($authContext->getToken() !== null){
41 41
             return $authContext->getToken()->getID();
42 42
         }
43 43
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function token2()
57 57
     {
58
-        if ($this->auth->getToken() !== null) {
58
+        if ($this->auth->getToken() !== null){
59 59
             return $this->auth->getToken()->getID();
60 60
         }
61 61
 
Please login to merge, or discard this patch.