Completed
Pull Request — master (#22)
by
unknown
03:39
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   +4 added lines patch added patch discarded remove patch
@@ -31,6 +31,10 @@
 block discarded – undo
31 31
         return '';
32 32
     }
33 33
 
34
+    /**
35
+     * @param string $before
36
+     * @param string $after
37
+     */
34 38
     public function surroundWith($before, $after) {
35 39
         $oldRunner = $this->runner;
36 40
         $this->runner = function (DelayedOutput $output) use ($oldRunner, $before, $after) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function __construct(callable $runner) {
15 15
         $this->runner = $runner;
16
-        $this->printer = function ($string) {
16
+        $this->printer = function($string) {
17 17
             echo $string;
18 18
         };
19 19
     }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function surroundWith($before, $after) {
35 35
         $oldRunner = $this->runner;
36
-        $this->runner = function (DelayedOutput $output) use ($oldRunner, $before, $after) {
36
+        $this->runner = function(DelayedOutput $output) use ($oldRunner, $before, $after) {
37 37
             $this->write($before);
38 38
             call_user_func($oldRunner, $output);
39 39
             $this->write($after);
Please login to merge, or discard this patch.
src/delivery/web/renderers/DelayedOutputRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         ob_end_flush();
25 25
 
26 26
         $value->surroundWith("<pre>", "</pre>");
27
-        $value->setPrinter(function ($string) {
27
+        $value->setPrinter(function($string) {
28 28
             echo $string;
29 29
             flush();
30 30
             ob_flush();
Please login to merge, or discard this patch.
src/delivery/cli/Console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function error($message) {
22 22
         $stderr = fopen('php://stderr', 'w');
23
-        fwrite($stderr,$message);
23
+        fwrite($stderr, $message);
24 24
         fclose($stderr);
25 25
     }
26 26
 
Please login to merge, or discard this patch.