Completed
Push — master ( 8985a5...723c6e )
by Raffael
03:06
created
src/lib/Balloon/Log/Adapter/AbstractAdapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * @param Iterable $options
53 53
      * @return void
54 54
      */
55
-    public function __construct(?Iterable $config=null)
55
+    public function __construct(? Iterable $config = null)
56 56
     {
57 57
         $this->setOptions($config);
58 58
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * @param   Iterable $options
96 96
      * @return  AdapterInterface
97 97
      */
98
-    public function setOptions(?Iterable $config=null): AdapterInterface
98
+    public function setOptions(? Iterable $config = null) : AdapterInterface
99 99
     {
100 100
         if ($config === null) {
101 101
             return $this;
Please login to merge, or discard this patch.
src/lib/Balloon/Log/Adapter/File.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @param   Iterable $options
36 36
      * @return  AdapterInterface
37 37
      */
38
-    public function setOptions(?Iterable $config=null): AdapterInterface
38
+    public function setOptions(? Iterable $config = null) : AdapterInterface
39 39
     {
40 40
         parent::setOptions($config);
41 41
         if ($config === null) {
Please login to merge, or discard this patch.
src/lib/Balloon/Log/Adapter/AdapterInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * @param Iterable $options
31 31
      * @return void
32 32
      */
33
-    public function __construct(?Iterable $config=null);
33
+    public function __construct(? Iterable $config = null);
34 34
     
35 35
 
36 36
     /**
@@ -61,5 +61,5 @@  discard block
 block discarded – undo
61 61
      * @param   Iterable $options
62 62
      * @return  AdapterInterface
63 63
      */
64
-    public function setOptions(?Iterable $config=null): AdapterInterface;
64
+    public function setOptions(? Iterable $config = null) : AdapterInterface;
65 65
 }
Please login to merge, or discard this patch.
src/lib/Balloon/Log/Adapter/Syslog.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param   Iterable $options
44 44
      * @return  AdapterInterface
45 45
      */
46
-    public function setOptions(?Iterable $config=null)
46
+    public function setOptions(? Iterable $config = null)
47 47
     {
48 48
         parent::setOptions($options);
49 49
 
Please login to merge, or discard this patch.
src/lib/Balloon/Bootstrap/Http.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         parent::init();
40 40
         $this->setExceptionHandler();
41 41
 
42
-        $this->logger->info('processing incoming http ['. $_SERVER['REQUEST_METHOD'].'] request to ['.$_SERVER['REQUEST_URI'].']', [
42
+        $this->logger->info('processing incoming http ['.$_SERVER['REQUEST_METHOD'].'] request to ['.$_SERVER['REQUEST_URI'].']', [
43 43
             'category' => get_class($this),
44 44
         ]);
45 45
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     protected function setExceptionHandler(): Http
127 127
     {
128
-        set_exception_handler(function ($e) {
128
+        set_exception_handler(function($e) {
129 129
             $this->logger->emergency('uncaught exception: '.$e->getMessage(), [
130 130
                 'category' => get_class($this),
131 131
                 'exception' => $e
Please login to merge, or discard this patch.
src/lib/Balloon/Bootstrap/Cli.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     protected function setExceptionHandler(): Cli
117 117
     {
118
-        set_exception_handler(function ($e) {
118
+        set_exception_handler(function($e) {
119 119
             $this->logger->emergency('uncaught exception: '.$e->getMessage(), [
120 120
                 'category' => get_class($this),
121 121
                 'exception' => $e
Please login to merge, or discard this patch.
src/lib/Balloon/Bootstrap/AbstractCore.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      *
46 46
      * @var Config
47 47
      */
48
-    protected $option_log ;
48
+    protected $option_log;
49 49
 
50 50
 
51 51
     /**
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     protected function setErrorHandler()
144 144
     {
145
-        set_error_handler(function ($errno, $errstr, $errfile, $errline) {
145
+        set_error_handler(function($errno, $errstr, $errfile, $errline) {
146 146
             $msg = $errstr." in ".$errfile.":".$errline;
147 147
             switch ($errno) {
148 148
                 case E_ERROR:
Please login to merge, or discard this patch.
src/lib/Balloon/Rest/v1/Resource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @param  bool $single
59 59
      * @return Response
60 60
      */
61
-    public function getAclRoles(string $q, bool $single=false): Response
61
+    public function getAclRoles(string $q, bool $single = false): Response
62 62
     {
63 63
         $resource = new UserResource($this->user, $this->logger, $this->fs);
64 64
         $result   = $resource->searchRole($q, $single);
Please login to merge, or discard this patch.
src/lib/Balloon/Rest/v1/Rest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 /**
5 5
  * Balloon
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 $name  = $this->camelCase2Dashes($method->name);
158 158
                 $parts = explode('-', $name);
159 159
                 $verb  = strtoupper($parts[0]);
160
-                $func  = substr($name, strlen($verb)+1);
160
+                $func  = substr($name, strlen($verb) + 1);
161 161
                 $url   = '/rest/'.strtolower($controller).'/'.$func;
162 162
                 $doc   = $this->parsePhpDoc($method->getDocComment());
163 163
 
Please login to merge, or discard this patch.