Passed
Push — master ( 6ceb7d...78da8a )
by Chizhov
01:55
created
src/AGI_AsteriskManager.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 
340 340
     // login
341 341
     $res = $this->send_request('login', ['Username' => $username,
342
-                                         'Secret' => $secret]);
342
+                                          'Secret' => $secret]);
343 343
     if ($res['Response'] != 'Success') {
344 344
       $this->_logged_in = false;
345 345
       $this->log("Failed to login.");
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
    */
381 381
   function AbsoluteTimeout(string $channel, int $timeout): array {
382 382
     return $this->send_request('AbsoluteTimeout', ['Channel' => $channel,
383
-                                                   'Timeout' => $timeout]);
383
+                                                    'Timeout' => $timeout]);
384 384
   }
385 385
 
386 386
   /**
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
    */
395 395
   function ChangeMonitor(string $channel, string $file): array {
396 396
     return $this->send_request('ChangeMonitor', ['Channel' => $channel,
397
-                                                 'File' => $file]);
397
+                                                  'File' => $file]);
398 398
   }
399 399
 
400 400
   /**
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
    */
449 449
   function DBGet(string $family, string $key, $actionid = null): string {
450 450
     $parameters = ['Family' => $family,
451
-                   'Key' => $key];
451
+                    'Key' => $key];
452 452
     if ($actionid == null) {
453 453
       $actionid = $this->ActionID();
454 454
     }
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
    */
474 474
   function ExtensionState(string $exten, string $context, $actionid = null): array {
475 475
     $parameters = ['Exten' => $exten,
476
-                   'Context' => $context];
476
+                    'Context' => $context];
477 477
     if ($actionid) {
478 478
       $parameters['ActionID'] = $actionid;
479 479
     }
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
    */
494 494
   function GetVar(string $channel, string $variable, $actionid = null): array {
495 495
     $parameters = ['Channel' => $channel,
496
-                   'Variable' => $variable];
496
+                    'Variable' => $variable];
497 497
     if ($actionid) {
498 498
       $parameters['ActionID'] = $actionid;
499 499
     }
@@ -634,9 +634,9 @@  discard block
 block discarded – undo
634 634
    * @throws Exception
635 635
    */
636 636
   function Originate(string $channel,
637
-                     $exten = null, $context = null, $priority = null,
638
-                     $application = null, $data = null,
639
-                     $timeout = null, $callerid = null, $variable = null, $account = null, $async = null, $actionid = null): array {
637
+                      $exten = null, $context = null, $priority = null,
638
+                      $application = null, $data = null,
639
+                      $timeout = null, $callerid = null, $variable = null, $account = null, $async = null, $actionid = null): array {
640 640
     $parameters = ['Channel' => $channel];
641 641
 
642 642
     if ($exten) {
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
    */
714 714
   function QueueAdd(string $queue, string $interface, int $penalty = 0, $memberName = false): array {
715 715
     $parameters = ['Queue' => $queue,
716
-                   'Interface' => $interface];
716
+                    'Interface' => $interface];
717 717
     if ($penalty) {
718 718
       $parameters['Penalty'] = $penalty;
719 719
     }
@@ -734,7 +734,7 @@  discard block
 block discarded – undo
734 734
    */
735 735
   function QueueRemove(string $queue, string $interface): array {
736 736
     return $this->send_request('QueueRemove', ['Queue' => $queue,
737
-                                               'Interface' => $interface]);
737
+                                                'Interface' => $interface]);
738 738
   }
739 739
 
740 740
   /**
@@ -814,7 +814,7 @@  discard block
 block discarded – undo
814 814
    */
815 815
   function SetCDRUserField(string $userfield, string $channel, $append = null): array {
816 816
     $parameters = ['UserField' => $userfield,
817
-                   'Channel' => $channel];
817
+                    'Channel' => $channel];
818 818
     if ($append) {
819 819
       $parameters['Append'] = $append;
820 820
     }
Please login to merge, or discard this patch.
src/AGI.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
    * DTMF tone. Use chr() to convert to ASCII.
524 524
    */
525 525
   function record_file(string $file, string $format, string $escape_digits = '', int $timeout = -1,
526
-                       $offset = null, bool $beep = false, $silence = null): array {
526
+                        $offset = null, bool $beep = false, $silence = null): array {
527 527
     $cmd = trim("RECORD FILE $file $format \"$escape_digits\" $timeout $offset");
528 528
     if ($beep) {
529 529
       $cmd .= ' BEEP';
@@ -1415,39 +1415,39 @@  discard block
 block discarded – undo
1415 1415
               'k9999' => 'Z',
1416 1416
               'k99999' => '9'];
1417 1417
     $symbol = ['k0' => '=',
1418
-               'k1' => '<',
1419
-               'k11' => '(',
1420
-               'k111' => '[',
1421
-               'k1111' => '{',
1422
-               'k11111' => '1',
1423
-               'k2' => '@',
1424
-               'k22' => '$',
1425
-               'k222' => '&',
1426
-               'k2222' => '%',
1427
-               'k22222' => '2',
1428
-               'k3' => '>',
1429
-               'k33' => ')',
1430
-               'k333' => ']',
1431
-               'k3333' => '}',
1432
-               'k33333' => '3',
1433
-               'k4' => '+',
1434
-               'k44' => '-',
1435
-               'k444' => '*',
1436
-               'k4444' => '/',
1437
-               'k44444' => '4',
1438
-               'k5' => "'",
1439
-               'k55' => '`',
1440
-               'k555' => '5',
1441
-               'k6' => '"',
1442
-               'k66' => '6',
1443
-               'k7' => '^',
1444
-               'k77' => '7',
1445
-               'k8' => "\\",
1446
-               'k88' => '|',
1447
-               'k888' => '8',
1448
-               'k9' => '_',
1449
-               'k99' => '~',
1450
-               'k999' => '9'];
1418
+                'k1' => '<',
1419
+                'k11' => '(',
1420
+                'k111' => '[',
1421
+                'k1111' => '{',
1422
+                'k11111' => '1',
1423
+                'k2' => '@',
1424
+                'k22' => '$',
1425
+                'k222' => '&',
1426
+                'k2222' => '%',
1427
+                'k22222' => '2',
1428
+                'k3' => '>',
1429
+                'k33' => ')',
1430
+                'k333' => ']',
1431
+                'k3333' => '}',
1432
+                'k33333' => '3',
1433
+                'k4' => '+',
1434
+                'k44' => '-',
1435
+                'k444' => '*',
1436
+                'k4444' => '/',
1437
+                'k44444' => '4',
1438
+                'k5' => "'",
1439
+                'k55' => '`',
1440
+                'k555' => '5',
1441
+                'k6' => '"',
1442
+                'k66' => '6',
1443
+                'k7' => '^',
1444
+                'k77' => '7',
1445
+                'k8' => "\\",
1446
+                'k88' => '|',
1447
+                'k888' => '8',
1448
+                'k9' => '_',
1449
+                'k99' => '~',
1450
+                'k999' => '9'];
1451 1451
     $text = '';
1452 1452
     do {
1453 1453
       $command = false;
@@ -1640,8 +1640,8 @@  discard block
 block discarded – undo
1640 1640
    */
1641 1641
   private function evaluate(string $command): array {
1642 1642
     $broken = ['code' => 500,
1643
-               'result' => -1,
1644
-               'data' => ''];
1643
+                'result' => -1,
1644
+                'data' => ''];
1645 1645
 
1646 1646
     // write command
1647 1647
     if (!@fwrite($this->out, trim($command) . "\n")) {
Please login to merge, or discard this patch.