Completed
Branch develop (3f9c38)
by
unknown
25:32
created
htdocs/includes/mobiledetect/mobiledetectlib/export/exportToJSON.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
 // Included nicejson function to beautify the result JSON file.
19 19
 // This library is not mandatory.
20
-if( file_exists(dirname(__FILE__).'/nicejson/nicejson.php') ) {
20
+if (file_exists(dirname(__FILE__).'/nicejson/nicejson.php')) {
21 21
 	include_once dirname(__FILE__).'/nicejson/nicejson.php';
22 22
 }
23 23
 
Please login to merge, or discard this patch.
htdocs/includes/tcpdi/fpdf_tpl.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
         // Save settings
95 95
         $this->tpl++;
96
-        $tpl =& $this->tpls[$this->tpl];
96
+        $tpl = & $this->tpls[$this->tpl];
97 97
         $tpl = array(
98 98
             'o_x' => $this->x,
99 99
             'o_y' => $this->y,
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
         $this->SetRightMargin($this->w - $w + $this->rMargin);
127 127
 
128 128
         if ($this->CurrentFont) {
129
-            $fontkey = $this->FontFamily . $this->FontStyle;
130
-            $this->_res['tpl'][$this->tpl]['fonts'][$fontkey] =& $this->fonts[$fontkey];
129
+            $fontkey = $this->FontFamily.$this->FontStyle;
130
+            $this->_res['tpl'][$this->tpl]['fonts'][$fontkey] = & $this->fonts[$fontkey];
131 131
             
132 132
             $this->_out(sprintf('BT /F%d %.2f Tf ET', $this->CurrentFont['i'], $this->FontSizePt));
133 133
         }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         
151 151
         if ($this->_intpl) {
152 152
             $this->_intpl = false; 
153
-            $tpl =& $this->tpls[$this->tpl];
153
+            $tpl = & $this->tpls[$this->tpl];
154 154
             $this->SetXY($tpl['o_x'], $tpl['o_y']);
155 155
             $this->tMargin = $tpl['o_tMargin'];
156 156
             $this->lMargin = $tpl['o_lMargin'];
@@ -164,9 +164,9 @@  discard block
 block discarded – undo
164 164
             $this->FontSizePt = $tpl['o_FontSizePt'];
165 165
             $this->FontSize = $tpl['o_FontSize'];
166 166
             
167
-            $fontkey = $this->FontFamily . $this->FontStyle;
167
+            $fontkey = $this->FontFamily.$this->FontStyle;
168 168
             if ($fontkey)
169
-                $this->CurrentFont =& $this->fonts[$fontkey];
169
+                $this->CurrentFont = & $this->fonts[$fontkey];
170 170
             
171 171
             return $this->tpl;
172 172
         } else {
@@ -199,10 +199,10 @@  discard block
 block discarded – undo
199 199
             $this->error('Template does not exist!');
200 200
             
201 201
         if ($this->_intpl) {
202
-            $this->_res['tpl'][$this->tpl]['tpls'][$tplidx] =& $this->tpls[$tplidx];
202
+            $this->_res['tpl'][$this->tpl]['tpls'][$tplidx] = & $this->tpls[$tplidx];
203 203
         }
204 204
         
205
-        $tpl =& $this->tpls[$tplidx];
205
+        $tpl = & $this->tpls[$tplidx];
206 206
         $w = $tpl['w'];
207 207
         $h = $tpl['h'];
208 208
         
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         if (!isset($this->tpls[$tplidx]))
253 253
             return false;
254 254
 
255
-        $tpl =& $this->tpls[$tplidx];
255
+        $tpl = & $this->tpls[$tplidx];
256 256
         $w = $tpl['w'];
257 257
         $h = $tpl['h'];
258 258
         
@@ -261,9 +261,9 @@  discard block
 block discarded – undo
261 261
             $_h = $h;
262 262
         }
263 263
 
264
-        if($_w == 0)
264
+        if ($_w == 0)
265 265
             $_w = $_h * $w / $h;
266
-        if($_h == 0)
266
+        if ($_h == 0)
267 267
             $_h = $_w * $h / $w;
268 268
             
269 269
         return array("w" => $_w, "h" => $_h);
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
     /**
273 273
      * See FPDF/TCPDF-Documentation ;-)
274 274
      */
275
-    public function SetFont($family, $style = '', $size = 0, $fontfile='', $subset='default', $out=true) {
275
+    public function SetFont($family, $style = '', $size = 0, $fontfile = '', $subset = 'default', $out = true) {
276 276
         if (is_subclass_of($this, 'TCPDF')) {
277 277
             $args = func_get_args();
278 278
             return call_user_func_array(array($this, 'TCPDF::SetFont'), $args);
@@ -280,12 +280,12 @@  discard block
 block discarded – undo
280 280
         
281 281
         parent::SetFont($family, $style, $size);
282 282
         
283
-        $fontkey = $this->FontFamily . $this->FontStyle;
283
+        $fontkey = $this->FontFamily.$this->FontStyle;
284 284
         
285 285
         if ($this->_intpl) {
286
-            $this->_res['tpl'][$this->tpl]['fonts'][$fontkey] =& $this->fonts[$fontkey];
286
+            $this->_res['tpl'][$this->tpl]['fonts'][$fontkey] = & $this->fonts[$fontkey];
287 287
         } else {
288
-            $this->_res['page'][$this->page]['fonts'][$fontkey] =& $this->fonts[$fontkey];
288
+            $this->_res['page'][$this->page]['fonts'][$fontkey] = & $this->fonts[$fontkey];
289 289
         }
290 290
     }
291 291
     
@@ -304,9 +304,9 @@  discard block
 block discarded – undo
304 304
         
305 305
         $ret = parent::Image($file, $x, $y, $w, $h, $type, $link);
306 306
         if ($this->_intpl) {
307
-            $this->_res['tpl'][$this->tpl]['images'][$file] =& $this->images[$file];
307
+            $this->_res['tpl'][$this->tpl]['images'][$file] = & $this->images[$file];
308 308
         } else {
309
-            $this->_res['page'][$this->page]['images'][$file] =& $this->images[$file];
309
+            $this->_res['page'][$this->page]['images'][$file] = & $this->images[$file];
310 310
         }
311 311
         
312 312
         return $ret;
@@ -370,11 +370,11 @@  discard block
 block discarded – undo
370 370
      * Private Method that writes the form xobjects
371 371
      */
372 372
     function _putformxobjects() {
373
-        $filter=($this->compress) ? '/Filter /FlateDecode ' : '';
373
+        $filter = ($this->compress) ? '/Filter /FlateDecode ' : '';
374 374
         reset($this->tpls);
375
-        foreach($this->tpls AS $tplidx => $tpl) {
375
+        foreach ($this->tpls AS $tplidx => $tpl) {
376 376
 
377
-            $p=($this->compress) ? gzcompress($tpl['buffer']) : $tpl['buffer'];
377
+            $p = ($this->compress) ? gzcompress($tpl['buffer']) : $tpl['buffer'];
378 378
             $this->_newobj();
379 379
             $this->tpls[$tplidx]['n'] = $this->n;
380 380
             $this->_out('<<'.$filter.'/Type /XObject');
@@ -402,27 +402,27 @@  discard block
 block discarded – undo
402 402
             $this->_out('<</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]');
403 403
             if (isset($this->_res['tpl'][$tplidx]['fonts']) && count($this->_res['tpl'][$tplidx]['fonts'])) {
404 404
                 $this->_out('/Font <<');
405
-                foreach($this->_res['tpl'][$tplidx]['fonts'] as $font)
406
-                    $this->_out('/F' . $font['i'] . ' ' . $font['n'] . ' 0 R');
405
+                foreach ($this->_res['tpl'][$tplidx]['fonts'] as $font)
406
+                    $this->_out('/F'.$font['i'].' '.$font['n'].' 0 R');
407 407
                 $this->_out('>>');
408 408
             }
409
-            if(isset($this->_res['tpl'][$tplidx]['images']) && count($this->_res['tpl'][$tplidx]['images']) || 
409
+            if (isset($this->_res['tpl'][$tplidx]['images']) && count($this->_res['tpl'][$tplidx]['images']) || 
410 410
                isset($this->_res['tpl'][$tplidx]['tpls']) && count($this->_res['tpl'][$tplidx]['tpls']))
411 411
             {
412 412
                 $this->_out('/XObject <<');
413 413
                 if (isset($this->_res['tpl'][$tplidx]['images']) && count($this->_res['tpl'][$tplidx]['images'])) {
414
-                    foreach($this->_res['tpl'][$tplidx]['images'] as $image)
415
-                          $this->_out('/I' . $image['i'] . ' ' . $image['n'] . ' 0 R');
414
+                    foreach ($this->_res['tpl'][$tplidx]['images'] as $image)
415
+                          $this->_out('/I'.$image['i'].' '.$image['n'].' 0 R');
416 416
                 }
417 417
                 if (isset($this->_res['tpl'][$tplidx]['tpls']) && count($this->_res['tpl'][$tplidx]['tpls'])) {
418
-                    foreach($this->_res['tpl'][$tplidx]['tpls'] as $i => $tpl)
419
-                        $this->_out($this->tplprefix . $i . ' ' . $tpl['n'] . ' 0 R');
418
+                    foreach ($this->_res['tpl'][$tplidx]['tpls'] as $i => $tpl)
419
+                        $this->_out($this->tplprefix.$i.' '.$tpl['n'].' 0 R');
420 420
                 }
421 421
                 $this->_out('>>');
422 422
             }
423 423
             $this->_out('>>');
424 424
             
425
-            $this->_out('/Length ' . strlen($p) . ' >>');
425
+            $this->_out('/Length '.strlen($p).' >>');
426 426
             $this->_putstream($p);
427 427
             $this->_out('endobj');
428 428
         }
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
         parent::_putxobjectdict();
442 442
         
443 443
         if (count($this->tpls)) {
444
-            foreach($this->tpls as $tplidx => $tpl) {
444
+            foreach ($this->tpls as $tplidx => $tpl) {
445 445
                 $this->_out(sprintf('%s%d %d 0 R', $this->tplprefix, $tplidx, $tpl['n']));
446 446
             }
447 447
         }
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
      */
453 453
     function _out($s) {
454 454
         if ($this->state == 2 && $this->_intpl) {
455
-            $this->tpls[$this->tpl]['buffer'] .= $s . "\n";
455
+            $this->tpls[$this->tpl]['buffer'] .= $s."\n";
456 456
         } else {
457 457
             parent::_out($s);
458 458
         }
Please login to merge, or discard this patch.
htdocs/includes/stripe/stripe-php/lib/Stripe.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
     private static function getDefaultCABundlePath()
142 142
     {
143
-        return \realpath(__DIR__ . '/../data/ca-certificates.crt');
143
+        return \realpath(__DIR__.'/../data/ca-certificates.crt');
144 144
     }
145 145
 
146 146
     /**
Please login to merge, or discard this patch.
htdocs/includes/stripe/stripe-php/lib/CashBalance.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public static function retrieve($_id, $_opts = null)
43 43
     {
44
-        $msg = 'Customer Cash Balance cannot be retrieved without a ' .
45
-               'customer ID. Retrieve a Customer Cash Balance using ' .
44
+        $msg = 'Customer Cash Balance cannot be retrieved without a '.
45
+               'customer ID. Retrieve a Customer Cash Balance using '.
46 46
                "`Customer::retrieveCashBalance('customer_id')`.";
47 47
 
48 48
         throw new Exception\BadMethodCallException($msg);
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public static function update($_id, $_params = null, $_options = null)
59 59
     {
60
-        $msg = 'Customer Cash Balance cannot be updated without a ' .
61
-        'customer ID. Retrieve a Customer Cash Balance using ' .
60
+        $msg = 'Customer Cash Balance cannot be updated without a '.
61
+        'customer ID. Retrieve a Customer Cash Balance using '.
62 62
         "`Customer::updateCashBalance('customer_id')`.";
63 63
 
64 64
         throw new Exception\BadMethodCallException($msg);
Please login to merge, or discard this patch.
htdocs/includes/stripe/stripe-php/lib/TaxId.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,8 +116,8 @@
 block discarded – undo
116 116
      */
117 117
     public static function retrieve($_id, $_opts = null)
118 118
     {
119
-        $msg = 'Tax IDs cannot be retrieved without a customer ID. Retrieve ' .
120
-               "a tax ID using `Customer::retrieveTaxId('customer_id', " .
119
+        $msg = 'Tax IDs cannot be retrieved without a customer ID. Retrieve '.
120
+               "a tax ID using `Customer::retrieveTaxId('customer_id', ".
121 121
                "'tax_id_id')`.";
122 122
 
123 123
         throw new Exception\BadMethodCallException($msg);
Please login to merge, or discard this patch.
htdocs/includes/stripe/stripe-php/lib/ApplicationFeeRefund.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $fee = $this['fee'];
40 40
         if (!$id) {
41 41
             throw new Exception\UnexpectedValueException(
42
-                'Could not determine which URL to request: ' .
42
+                'Could not determine which URL to request: '.
43 43
                 "class instance has invalid ID: {$id}",
44 44
                 null
45 45
             );
Please login to merge, or discard this patch.
htdocs/includes/stripe/stripe-php/lib/Identity/VerificationSession.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function cancel($params = null, $opts = null)
64 64
     {
65
-        $url = $this->instanceUrl() . '/cancel';
65
+        $url = $this->instanceUrl().'/cancel';
66 66
         list($response, $opts) = $this->_request('post', $url, $params, $opts);
67 67
         $this->refreshFrom($response, $opts);
68 68
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function redact($params = null, $opts = null)
81 81
     {
82
-        $url = $this->instanceUrl() . '/redact';
82
+        $url = $this->instanceUrl().'/redact';
83 83
         list($response, $opts) = $this->_request('post', $url, $params, $opts);
84 84
         $this->refreshFrom($response, $opts);
85 85
 
Please login to merge, or discard this patch.
htdocs/includes/stripe/stripe-php/lib/Review.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function approve($params = null, $opts = null)
59 59
     {
60
-        $url = $this->instanceUrl() . '/approve';
60
+        $url = $this->instanceUrl().'/approve';
61 61
         list($response, $opts) = $this->_request('post', $url, $params, $opts);
62 62
         $this->refreshFrom($response, $opts);
63 63
 
Please login to merge, or discard this patch.
htdocs/includes/stripe/stripe-php/lib/Customer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function deleteDiscount($params = null, $opts = null)
79 79
     {
80
-        $url = $this->instanceUrl() . '/discount';
80
+        $url = $this->instanceUrl().'/discount';
81 81
         list($response, $opts) = $this->_request('delete', $url, $params, $opts);
82 82
         $this->refreshFrom(['discount' => null], $opts, true);
83 83
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public static function allPaymentMethods($id, $params = null, $opts = null)
97 97
     {
98
-        $url = static::resourceUrl($id) . '/payment_methods';
98
+        $url = static::resourceUrl($id).'/payment_methods';
99 99
         list($response, $opts) = static::_staticRequest('get', $url, $params, $opts);
100 100
         $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
101 101
         $obj->setLastResponse($response);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function retrievePaymentMethod($payment_method, $params = null, $opts = null)
116 116
     {
117
-        $url = $this->instanceUrl() . '/payment_methods/' . $payment_method;
117
+        $url = $this->instanceUrl().'/payment_methods/'.$payment_method;
118 118
         list($response, $opts) = $this->_request('get', $url, $params, $opts);
119 119
         $obj = \Stripe\Util\Util::convertToStripeObject($response, $opts);
120 120
         $obj->setLastResponse($response);
Please login to merge, or discard this patch.