Passed
Push — master ( 46262d...417a35 )
by Thierry
02:15
created
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/Response/UploadResponse.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,8 +80,7 @@
 block discarded – undo
80 80
     public function getOutput(): string
81 81
     {
82 82
         $sResult = json_encode(($this->sUploadedFile) ?
83
-            ['code' => 'success', 'upl' => $this->sUploadedFile] :
84
-            ['code' => 'error', 'msg' => $this->sErrorMessage]) . ';';
83
+            ['code' => 'success', 'upl' => $this->sUploadedFile] : ['code' => 'error', 'msg' => $this->sErrorMessage]) . ';';
85 84
         $sConsoleLog = array_reduce($this->aDebugMessages, function($sJsLog, $sMessage) {
86 85
             return "$sJsLog\n\t" . 'console.log("' . addslashes($sMessage) . '");';
87 86
         }, '');
Please login to merge, or discard this patch.
src/Plugin/Response/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/Request/Call/Call.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,8 +181,7 @@
 block discarded – undo
181 181
         }
182 182
         elseif($this->sCondition !== '')
183 183
         {
184
-            $sScript = empty($sMessageScript) ? 'if(' . $this->sCondition . '){' . $sScript . ';}' :
185
-                'if(' . $this->sCondition . '){' . $sScript . ';}else{' . $sMessageScript . ';}';
184
+            $sScript = empty($sMessageScript) ? 'if(' . $this->sCondition . '){' . $sScript . ';}' : 'if(' . $this->sCondition . '){' . $sScript . ';}else{' . $sMessageScript . ';}';
186 185
         }
187 186
         return $this->sVars . $sScript;
188 187
     }
Please login to merge, or discard this patch.
src/Di/Traits/PluginTrait.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,8 @@
 block discarded – undo
41 41
         // Code Generation
42 42
         $this->set(MinifierInterface::class, function() {
43 43
             return new class extends FileMinifier implements MinifierInterface
44
-            {};
44
+            {
45
+};
45 46
         });
46 47
         $this->set(AssetManager::class, function($c) {
47 48
             return new AssetManager($c->g(ConfigManager::class), $c->g(ParameterReader::class),
Please login to merge, or discard this patch.
src/App/Ajax.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,8 @@
 block discarded – undo
125 125
      * The constructor
126 126
      */
127 127
     private function __construct()
128
-    {}
128
+    {
129
+}
129 130
 
130 131
     /**
131 132
      * @return string
Please login to merge, or discard this patch.
src/App/Dialog/Library/AlertLibrary.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public function confirm(string $sQuestion, string $sYesScript, string $sNoScript): string
31 31
     {
32
-        return empty($sNoScript) ? 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}' :
33
-            'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}else{' . $sNoScript . ';}';
32
+        return empty($sNoScript) ? 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}' : 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}else{' . $sNoScript . ';}';
34 33
     }
35 34
 
36 35
     /**
Please login to merge, or discard this patch.