Passed
Push — master ( e82656...5198fb )
by Thierry
03:06
created
src/Request/Upload/UploadManager.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         {
100 100
             return bin2hex(random_bytes(7));
101 101
         }
102
-        catch(Exception $e){}
102
+        catch(Exception $e) {}
103 103
         // Generate the name
104 104
         $sChars = '0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz';
105 105
         return substr(str_shuffle($sChars), 0, 14);
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,9 @@
 block discarded – undo
99 99
         {
100 100
             return bin2hex(random_bytes(7));
101 101
         }
102
-        catch(Exception $e){}
102
+        catch(Exception $e)
103
+        {
104
+}
103 105
         // Generate the name
104 106
         $sChars = '0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz';
105 107
         return substr(str_shuffle($sChars), 0, 14);
Please login to merge, or discard this patch.
src/Response/Plugin/DataBag/DataBagPlugin.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@
 block discarded – undo
30 30
         $aBody = $xRequest->getParsedBody();
31 31
         $aParams = $xRequest->getQueryParams();
32 32
         $aData = is_array($aBody) ?
33
-            $this->readData($aBody['jxnbags'] ?? []) :
34
-            $this->readData($aParams['jxnbags'] ?? []);
33
+            $this->readData($aBody['jxnbags'] ?? []) : $this->readData($aParams['jxnbags'] ?? []);
35 34
         $this->xDataBag = new DataBag($aData);
36 35
     }
37 36
 
Please login to merge, or discard this patch.
src/Di/Traits/AppTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * @var array The default config options
19 19
      */
20
-    protected $aConfig =  [
20
+    protected $aConfig = [
21 21
         'core' => [
22 22
             'version'               => Jaxon::VERSION,
23 23
             'language'              => 'en',
Please login to merge, or discard this patch.
src/Response/Traits/CommandTrait.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
     public function appendCommands(array $aCommands, bool $bBefore = false)
58 58
     {
59 59
         $this->aCommands = ($bBefore) ?
60
-            array_merge($aCommands, $this->aCommands) :
61
-            array_merge($this->aCommands, $aCommands);
60
+            array_merge($aCommands, $this->aCommands) : array_merge($this->aCommands, $aCommands);
62 61
     }
63 62
 
64 63
     /**
Please login to merge, or discard this patch.
src/Response/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
      */
141 141
     public function bag(string $sName): DataBagContext
142 142
     {
143
-        return $this->plugin('bags')->bag($sName);;
143
+        return $this->plugin('bags')->bag($sName); ;
144 144
     }
145 145
 
146 146
     /**
Please login to merge, or discard this patch.
src/Response/Manager/ResponseManager.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -173,8 +173,7 @@
 block discarded – undo
173 173
      */
174 174
     public function getContentType(): string
175 175
     {
176
-        return empty($this->sCharacterEncoding) ? $this->xResponse->getContentType() :
177
-            $this->xResponse->getContentType() . '; charset="' . $this->sCharacterEncoding . '"';
176
+        return empty($this->sCharacterEncoding) ? $this->xResponse->getContentType() : $this->xResponse->getContentType() . '; charset="' . $this->sCharacterEncoding . '"';
178 177
     }
179 178
 
180 179
     /**
Please login to merge, or discard this patch.
src/Jaxon.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,8 @@
 block discarded – undo
173 173
      * The constructor
174 174
      */
175 175
     private function __construct()
176
-    {}
176
+    {
177
+}
177 178
 
178 179
     /**
179 180
      * The current Jaxon version
Please login to merge, or discard this patch.