Completed
Push — master ( d21e4b...25fd19 )
by Nikolas
03:46
created
src/reflection/GenericAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
      * @throws \Exception
75 75
      */
76 76
     public function parameters() {
77
-        return array_map(function (Parameter $parameter) {
77
+        return array_map(function(Parameter $parameter) {
78 78
             if (array_key_exists($parameter->getName(), $this->paramMap)) {
79 79
                 return call_user_func($this->paramMap[$parameter->getName()], $parameter);
80 80
             }
Please login to merge, or discard this patch.
src/reflection/GenericObjectAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
             ->setCaption(parent::caption())
20 20
             ->setDescription(parent::description())
21 21
             ->setParameters(parent::parameters())
22
-            ->setExecute(function ($parameters) {
22
+            ->setExecute(function($parameters) {
23 23
                 return parent::execute($parameters);
24 24
             })
25
-            ->setFill(function ($parameters) {
25
+            ->setFill(function($parameters) {
26 26
                 return $parameters;
27 27
             });
28 28
     }
Please login to merge, or discard this patch.
src/reflection/GenericMethodAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
             ->setCaption(parent::caption())
20 20
             ->setDescription(parent::description())
21 21
             ->setParameters(parent::parameters())
22
-            ->setExecute(function ($parameters) {
22
+            ->setExecute(function($parameters) {
23 23
                 return parent::execute($parameters);
24 24
             })
25
-            ->setFill(function ($parameters) {
25
+            ->setFill(function($parameters) {
26 26
                 return $parameters;
27 27
             });
28 28
     }
Please login to merge, or discard this patch.
src/ActionRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         $actions = $this->actions;
17 17
 
18 18
         if ($this->access) {
19
-            $actions = array_filter($actions, function ($id) {
19
+            $actions = array_filter($actions, function($id) {
20 20
                 return $this->access->isVisible($id);
21 21
             }, ARRAY_FILTER_USE_KEY);
22 22
         }
Please login to merge, or discard this patch.
src/delivery/web/WebAccessControl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      * @return callable The factory to build a WebAccessControl
32 32
      */
33 33
     public static function factory(AccessControl $access, callable $acquire = null) {
34
-        return function (WebRequest $request) use ($access, $acquire) {
34
+        return function(WebRequest $request) use ($access, $acquire) {
35 35
             return new WebAccessControl($access, $request, $acquire);
36 36
         };
37 37
     }
Please login to merge, or discard this patch.
src/delivery/DelayedOutput.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@  discard block
 block discarded – undo
40 40
         return '';
41 41
     }
42 42
 
43
+    /**
44
+     * @param string $message
45
+     */
43 46
     public function write($message) {
44 47
         call_user_func($this->printer, $message);
45 48
     }
@@ -62,6 +65,9 @@  discard block
 block discarded – undo
62 65
         $this->exceptionHandler = $exceptionHandler;
63 66
     }
64 67
 
68
+    /**
69
+     * @param \Exception $message
70
+     */
65 71
     public function handleException($message) {
66 72
         call_user_func($this->exceptionHandler, $message);
67 73
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
      */
17 17
     public function __construct(callable $runner) {
18 18
         $this->runner = $runner;
19
-        $this->printer = function ($string) {
19
+        $this->printer = function($string) {
20 20
             echo $string;
21 21
         };
22
-        $this->exceptionHandler = function (\Exception $exception) {
22
+        $this->exceptionHandler = function(\Exception $exception) {
23 23
             $message = get_class($exception) . ': ' . $exception->getMessage() . ' ' .
24 24
                 '[' . $exception->getFile() . ':' . $exception->getLine() . ']' . "\n" .
25 25
                 $exception->getTraceAsString();
Please login to merge, or discard this patch.
src/delivery/web/renderers/DelayedOutputRenderer.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
         header('X-Accel-Buffering: no');
29 29
         ob_end_flush();
30 30
 
31
-        $value->setPrinter(function ($string) {
31
+        $value->setPrinter(function($string) {
32 32
             echo $string;
33 33
 
34 34
             $length = strlen($string);
@@ -39,14 +39,14 @@  discard block
 block discarded – undo
39 39
             flush();
40 40
             ob_flush();
41 41
         });
42
-        $value->setExceptionHandler(function (\Exception $exception) {
42
+        $value->setExceptionHandler(function(\Exception $exception) {
43 43
             echo '</pre>';
44 44
             echo new Element('div', ['class' => 'alert alert-danger'], [
45 45
                 htmlentities($exception->getMessage())
46 46
             ]);
47 47
         });
48 48
 
49
-        return new DelayedOutput(function () use ($value) {
49
+        return new DelayedOutput(function() use ($value) {
50 50
             $value->write('<pre>');
51 51
             $value->__toString();
52 52
             $value->write('</pre>');
Please login to merge, or discard this patch.
src/delivery/cli/CliApplication.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,6 @@
 block discarded – undo
44 44
 use rtens\domin\reflection\CommentParser;
45 45
 use rtens\domin\reflection\types\TypeFactory;
46 46
 use watoki\factory\Factory;
47
-use watoki\reflect\ValuePrinter;
48 47
 
49 48
 class CliApplication {
50 49
 
Please login to merge, or discard this patch.