Passed
Branch master (af4cfe)
by Chizhov
13:05
created
src/phpagi.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -1433,39 +1433,39 @@  discard block
 block discarded – undo
1433 1433
               'k9999' => 'Z',
1434 1434
               'k99999' => '9'];
1435 1435
     $symbol = ['k0' => '=',
1436
-               'k1' => '<',
1437
-               'k11' => '(',
1438
-               'k111' => '[',
1439
-               'k1111' => '{',
1440
-               'k11111' => '1',
1441
-               'k2' => '@',
1442
-               'k22' => '$',
1443
-               'k222' => '&',
1444
-               'k2222' => '%',
1445
-               'k22222' => '2',
1446
-               'k3' => '>',
1447
-               'k33' => ')',
1448
-               'k333' => ']',
1449
-               'k3333' => '}',
1450
-               'k33333' => '3',
1451
-               'k4' => '+',
1452
-               'k44' => '-',
1453
-               'k444' => '*',
1454
-               'k4444' => '/',
1455
-               'k44444' => '4',
1456
-               'k5' => "'",
1457
-               'k55' => '`',
1458
-               'k555' => '5',
1459
-               'k6' => '"',
1460
-               'k66' => '6',
1461
-               'k7' => '^',
1462
-               'k77' => '7',
1463
-               'k8' => "\\",
1464
-               'k88' => '|',
1465
-               'k888' => '8',
1466
-               'k9' => '_',
1467
-               'k99' => '~',
1468
-               'k999' => '9'];
1436
+                'k1' => '<',
1437
+                'k11' => '(',
1438
+                'k111' => '[',
1439
+                'k1111' => '{',
1440
+                'k11111' => '1',
1441
+                'k2' => '@',
1442
+                'k22' => '$',
1443
+                'k222' => '&',
1444
+                'k2222' => '%',
1445
+                'k22222' => '2',
1446
+                'k3' => '>',
1447
+                'k33' => ')',
1448
+                'k333' => ']',
1449
+                'k3333' => '}',
1450
+                'k33333' => '3',
1451
+                'k4' => '+',
1452
+                'k44' => '-',
1453
+                'k444' => '*',
1454
+                'k4444' => '/',
1455
+                'k44444' => '4',
1456
+                'k5' => "'",
1457
+                'k55' => '`',
1458
+                'k555' => '5',
1459
+                'k6' => '"',
1460
+                'k66' => '6',
1461
+                'k7' => '^',
1462
+                'k77' => '7',
1463
+                'k8' => "\\",
1464
+                'k88' => '|',
1465
+                'k888' => '8',
1466
+                'k9' => '_',
1467
+                'k99' => '~',
1468
+                'k999' => '9'];
1469 1469
     $text = '';
1470 1470
     do {
1471 1471
       $command = false;
@@ -1656,8 +1656,8 @@  discard block
 block discarded – undo
1656 1656
    */
1657 1657
   function evaluate($command) {
1658 1658
     $broken = ['code' => 500,
1659
-               'result' => -1,
1660
-               'data' => ''];
1659
+                'result' => -1,
1660
+                'data' => ''];
1661 1661
 
1662 1662
     // write command
1663 1663
     if (!@fwrite($this->out, trim($command) . "\n")) return $broken;
Please login to merge, or discard this patch.
src/phpagi-asmanager.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 
328 328
     // login
329 329
     $res = $this->send_request('login', ['Username' => $username,
330
-                                         'Secret' => $secret]);
330
+                                          'Secret' => $secret]);
331 331
     if ($res['Response'] != 'Success') {
332 332
       $this->_logged_in = false;
333 333
       $this->log("Failed to login.");
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
    */
367 367
   function AbsoluteTimeout(string $channel, int $timeout): array {
368 368
     return $this->send_request('AbsoluteTimeout', ['Channel' => $channel,
369
-                                                   'Timeout' => $timeout]);
369
+                                                    'Timeout' => $timeout]);
370 370
   }
371 371
 
372 372
   /**
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
    */
381 381
   function ChangeMonitor(string $channel, string $file): array {
382 382
     return $this->send_request('ChangeMonitor', ['Channel' => $channel,
383
-                                                 'File' => $file]);
383
+                                                  'File' => $file]);
384 384
   }
385 385
 
386 386
   /**
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
    */
433 433
   function DBGet(string $family, string $key, $actionid = null): string {
434 434
     $parameters = ['Family' => $family,
435
-                   'Key' => $key];
435
+                    'Key' => $key];
436 436
     if ($actionid == null)
437 437
       $actionid = $this->ActionID();
438 438
     $parameters['ActionID'] = $actionid;
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
    */
457 457
   function ExtensionState(string $exten, string $context, $actionid = null): array {
458 458
     $parameters = ['Exten' => $exten,
459
-                   'Context' => $context];
459
+                    'Context' => $context];
460 460
     if ($actionid) $parameters['ActionID'] = $actionid;
461 461
     return $this->send_request('ExtensionState', $parameters);
462 462
   }
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
    */
475 475
   function GetVar(string $channel, string $variable, $actionid = null): array {
476 476
     $parameters = ['Channel' => $channel,
477
-                   'Variable' => $variable];
477
+                    'Variable' => $variable];
478 478
     if ($actionid) $parameters['ActionID'] = $actionid;
479 479
     return $this->send_request('GetVar', $parameters);
480 480
   }
@@ -603,9 +603,9 @@  discard block
 block discarded – undo
603 603
    * @throws Exception
604 604
    */
605 605
   function Originate(string $channel,
606
-                     $exten = null, $context = null, $priority = null,
607
-                     $application = null, $data = null,
608
-                     $timeout = null, $callerid = null, $variable = null, $account = null, $async = null, $actionid = null): array {
606
+                      $exten = null, $context = null, $priority = null,
607
+                      $application = null, $data = null,
608
+                      $timeout = null, $callerid = null, $variable = null, $account = null, $async = null, $actionid = null): array {
609 609
     $parameters = ['Channel' => $channel];
610 610
 
611 611
     if ($exten) $parameters['Exten'] = $exten;
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
    */
661 661
   function QueueAdd(string $queue, string $interface, int $penalty = 0, $memberName = false): array {
662 662
     $parameters = ['Queue' => $queue,
663
-                   'Interface' => $interface];
663
+                    'Interface' => $interface];
664 664
     if ($penalty) $parameters['Penalty'] = $penalty;
665 665
     if ($memberName) $parameters["MemberName"] = $memberName;
666 666
     return $this->send_request('QueueAdd', $parameters);
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
    */
678 678
   function QueueRemove(string $queue, string $interface): array {
679 679
     return $this->send_request('QueueRemove', ['Queue' => $queue,
680
-                                               'Interface' => $interface]);
680
+                                                'Interface' => $interface]);
681 681
   }
682 682
 
683 683
   /**
@@ -757,7 +757,7 @@  discard block
 block discarded – undo
757 757
    */
758 758
   function SetCDRUserField(string $userfield, string $channel, $append = null): array {
759 759
     $parameters = ['UserField' => $userfield,
760
-                   'Channel' => $channel];
760
+                    'Channel' => $channel];
761 761
     if ($append) $parameters['Append'] = $append;
762 762
     return $this->send_request('SetCDRUserField', $parameters);
763 763
   }
Please login to merge, or discard this patch.