Code Duplication    Length = 41-41 lines in 2 locations

web/ckfinder/core/connector/php/vendor/microsoft/azure-storage/src/Queue/QueueRestProxy.php 1 location

@@ 904-944 (lines=41) @@
901
     *
902
     * @see https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/get-queue-acl
903
     */
904
    public function getQueueAclAsync(
905
        $queue,
906
        Models\QueueServiceOptions $options = null
907
    ) {
908
        Validate::isString($queue, 'queue');
909
        
910
        $method      = Resources::HTTP_GET;
911
        $headers     = array();
912
        $postParams  = array();
913
        $queryParams = array();
914
        $statusCode  = Resources::STATUS_OK;
915
        $path        = $queue;
916
        
917
        if (is_null($options)) {
918
            $options = new QueueServiceOptions();
919
        }
920
        
921
        $this->addOptionalQueryParam(
922
            $queryParams,
923
            Resources::QP_COMP,
924
            'acl'
925
        );
926
927
        $dataSerializer = $this->dataSerializer;
928
        
929
        $promise = $this->sendAsync(
930
            $method,
931
            $headers,
932
            $queryParams,
933
            $postParams,
934
            $path,
935
            Resources::STATUS_OK,
936
            Resources::EMPTY_STRING,
937
            $options
938
        );
939
940
        return $promise->then(function ($response) use ($dataSerializer) {
941
            $parsed       = $dataSerializer->unserialize($response->getBody());
942
            return QueueACL::create($parsed);
943
        }, null);
944
    }
945
    
946
    /**
947
     * Sets the ACL.

web/ckfinder/core/connector/php/vendor/microsoft/azure-storage/src/Table/TableRestProxy.php 1 location

@@ 1598-1638 (lines=41) @@
1595
     *
1596
     * @see https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/get-table-acl
1597
     */
1598
    public function getTableAclAsync(
1599
        $table,
1600
        Models\TableServiceOptions $options = null
1601
    ) {
1602
        Validate::isString($table, 'table');
1603
        
1604
        $method      = Resources::HTTP_GET;
1605
        $headers     = array();
1606
        $postParams  = array();
1607
        $queryParams = array();
1608
        $statusCode  = Resources::STATUS_OK;
1609
        $path        = $table;
1610
        
1611
        if (is_null($options)) {
1612
            $options = new TableServiceOptions();
1613
        }
1614
        
1615
        $this->addOptionalQueryParam(
1616
            $queryParams,
1617
            Resources::QP_COMP,
1618
            'acl'
1619
        );
1620
1621
        $dataSerializer = $this->dataSerializer;
1622
        
1623
        $promise = $this->sendAsync(
1624
            $method,
1625
            $headers,
1626
            $queryParams,
1627
            $postParams,
1628
            $path,
1629
            Resources::STATUS_OK,
1630
            Resources::EMPTY_STRING,
1631
            $options
1632
        );
1633
1634
        return $promise->then(function ($response) use ($dataSerializer) {
1635
            $parsed       = $dataSerializer->unserialize($response->getBody());
1636
            return TableACL::create($parsed);
1637
        }, null);
1638
    }
1639
    
1640
    /**
1641
     * Sets the ACL.