Completed
Pull Request — master (#1)
by
unknown
10:29 queued 01:06
created
core/Response.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * Returns a response with a particular view loaded.
26 26
      *
27
-     * @param  string $view name of the view to load
28 27
      * @param  array  $data data to expose to the view
29 28
      * @return \Psr\Http\Message\ResponseInterface
30 29
      */
@@ -36,7 +35,7 @@  discard block
 block discarded – undo
36 35
     /**
37 36
      * Create a new basic string response.
38 37
      *
39
-     * @param  string $name name of the view to load
38
+     * @param string $string
40 39
      * @return \Psr\Http\Message\ResponseInterface
41 40
      */
42 41
     public static function string($string)
Please login to merge, or discard this patch.
core/Framework.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public static function middleware(array $stack)
44 44
     {
45
-        return array_map(function ($callable) {
45
+        return array_map(function($callable) {
46 46
             $callable = is_string($callable) ? static::lazy($callable) : $callable;
47 47
             return $callable;
48 48
         }, $stack);
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public static function lazy($className)
59 59
     {
60
-        return function (ServerRequestInterface $request, $next) use ($className) {
60
+        return function(ServerRequestInterface $request, $next) use ($className) {
61 61
             $class = new $className();
62 62
             if ($class instanceof MiddlewareInterface) {
63 63
                 return $class->process($request, $next);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public static function router(ServerRequestInterface $request, $path = null)
76 76
     {
77 77
         $path = $path ?: __DIR__ . "/../app/routes.php";
78
-        $dispatcher = \FastRoute\simpleDispatcher(function (RouteCollector $r) use ($path) {
78
+        $dispatcher = \FastRoute\simpleDispatcher(function(RouteCollector $r) use ($path) {
79 79
             include $path;
80 80
         });
81 81
         $match = $dispatcher->dispatch($request->getMethod(), $request->getUri()->getPath());
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * class passed to it and then call __invoke() with middleware arguments.
54 54
      *
55 55
      * @param  string $className fully qualified name of a class
56
-     * @return callable
56
+     * @return \Closure
57 57
      */
58 58
     public static function lazy($className)
59 59
     {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * Create a new FastRouter\simpleDispatcher and collect the routes.
72 72
      *
73
-     * @return FastRouter\simpleDispatcher
73
+     * @return \Psr\Http\Message\ResponseInterface
74 74
      */
75 75
     public static function router(ServerRequestInterface $request, $path = null)
76 76
     {
@@ -104,6 +104,7 @@  discard block
 block discarded – undo
104 104
     /**
105 105
      * Load a given configuration file or array.
106 106
      *
107
+     * @param string $name
107 108
      * @return array
108 109
      */
109 110
     public static function config($name, $dir = null)
@@ -123,7 +124,7 @@  discard block
 block discarded – undo
123 124
     /**
124 125
      * Get the rendering engine.
125 126
      *
126
-     * @return void
127
+     * @return Engine
127 128
      */
128 129
     public static function engine()
129 130
     {
@@ -135,7 +136,7 @@  discard block
 block discarded – undo
135 136
      *
136 137
      * @param  string $view our view data.
137 138
      * @param  array  $data data to pass through to our template
138
-     * @return array
139
+     * @return string
139 140
      */
140 141
     public static function render($view, $data, $engine = false)
141 142
     {
Please login to merge, or discard this patch.