Completed
Branch master (19f72b)
by n
02:49
created
src/Jugoya.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     }
76 76
 
77 77
     /**
78
-     * @param mixed $delegate
78
+     * @param DelegateInterface $delegate
79 79
      * @return DelegateInterface
80 80
      */
81 81
     private function resolveDelegate($delegate)
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
         }
86 86
 
87 87
         if (is_callable($delegate)) {
88
-             return new CallableDelegate($delegate);
88
+                return new CallableDelegate($delegate);
89 89
         }
90 90
 
91 91
         throw new \LogicException('$delegate must be one of an DelegateInterface or a callable');
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function middleware(array $entries)
49 49
     {
50
-        foreach($entries as $entry) {
50
+        foreach ($entries as $entry) {
51 51
             $this->middlewareEntries[] = $entry;
52 52
         }
53 53
         return $this;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function build()
60 60
     {
61
-        if(is_null($this->coreDelegate)) {
61
+        if (is_null($this->coreDelegate)) {
62 62
             throw new \LogicException('Please call Jugoya::from() and set a core delegate before build an HTTP Application.');
63 63
         }
64 64
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     private function resolveDelegate($delegate)
82 82
     {
83
-        if($delegate instanceof DelegateInterface) {
83
+        if ($delegate instanceof DelegateInterface) {
84 84
             return $delegate;
85 85
         }
86 86
 
Please login to merge, or discard this patch.
src/CallableDelegate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     {
31 31
         $response = call_user_func($this->callable, $request);
32 32
 
33
-        if(!$response instanceof ResponseInterface) {
33
+        if (!$response instanceof ResponseInterface) {
34 34
             throw new \LogicException('callable must return an instance of Psr\Http\Message\ResponseInterface.');
35 35
         }
36 36
 
Please login to merge, or discard this patch.
src/CallableMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         $response = call_user_func($this->callable, $request, $delegate);
35 35
 
36
-        if(!$response instanceof ResponseInterface) {
36
+        if (!$response instanceof ResponseInterface) {
37 37
             throw new \LogicException('callable must return an instance of \Psr\Http\Message\ResponseInterface.');
38 38
         }
39 39
 
Please login to merge, or discard this patch.
src/MiddlewarePipeline.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function __construct(array $queue)
25 25
     {
26
-        foreach($queue as $middleware) {
26
+        foreach ($queue as $middleware) {
27 27
             $this->add($middleware);
28 28
         }
29 29
     }
Please login to merge, or discard this patch.