original_string: protected function applyHttpAttributes($http, $postData)
      {
          $postData['protocol_version'] = '1.1';
          $postData['client'] = 'october';
  
          $postData['server'] = base64_encode(serialize([
              'php'   => PHP_VERSION,
              'url'   => Url::to('/'),
              'since' => PluginVersion::orderBy('created_at')->value('created_at')
          ]));
  
          if ($projectId = Parameter::get('system::project.id')) {
              $postData['project'] = $projectId;
          }
  
          if (Config::get('cms.edgeUpdates', false)) {
              $postData['edge'] = 1;
          }
  
          if ($this->key && $this->secret) {
              $postData['nonce'] = $this->createNonce();
              $http->header('Rest-Key', $this->key);
              $http->header('Rest-Sign', $this->createSignature($postData, $this->secret));
          }
  
          if ($credentials = Config::get('cms.updateAuth')) {
              $http->auth($credentials);
          }
  
          $http->noRedirect();
          $http->data($postData);
      }
code: protected function applyHttpAttributes($http, $postData)
      {
          $postData['protocol_version'] = '1.1';
          $postData['client'] = 'october';
  
          $postData['server'] = base64_encode(serialize([
              'php'   => PHP_VERSION,
              'url'   => Url::to('/'),
              'since' => PluginVersion::orderBy('created_at')->value('created_at')
          ]));
  
          if ($projectId = Parameter::get('system::project.id')) {
              $postData['project'] = $projectId;
          }
  
          if (Config::get('cms.edgeUpdates', false)) {
              $postData['edge'] = 1;
          }
  
          if ($this->key && $this->secret) {
              $postData['nonce'] = $this->createNonce();
              $http->header('Rest-Key', $this->key);
              $http->header('Rest-Sign', $this->createSignature($postData, $this->secret));
          }
  
          if ($credentials = Config::get('cms.updateAuth')) {
              $http->auth($credentials);
          }
  
          $http->noRedirect();
          $http->data($postData);
      }
code_tokens: protected function applyHttpAttributes ( $ http , $ postData ) { $ postData [ 'protocol_version' ] = '1.1' ; $ postData [ 'client' ] = 'october' ; $ postData [ 'server' ] = base64_encode ( serialize ( [ 'php' => PHP_VERSION , 'url' => Url :: to ( '/' ) , 'since' => PluginVersion :: orderBy ( 'created_at' ) -> value ( 'created_at' ) ] ) ) ; if ( $ projectId = Parameter :: get ( 'system::project.id' ) ) { $ postData [ 'project' ] = $ projectId ; } if ( Config :: get ( 'cms.edgeUpdates' , false ) ) { $ postData [ 'edge' ] = 1 ; } if ( $ this -> key && $ this -> secret ) { $ postData [ 'nonce' ] = $ this -> createNonce ( ) ; $ http -> header ( 'Rest-Key' , $ this -> key ) ; $ http -> header ( 'Rest-Sign' , $ this -> createSignature ( $ postData , $ this -> secret ) ) ; } if ( $ credentials = Config :: get ( 'cms.updateAuth' ) ) { $ http -> auth ( $ credentials ) ; } $ http -> noRedirect ( ) ; $ http -> data ( $ postData ) ; }
docstring: Modifies the Network HTTP object with common attributes.
  @param  Http $http      Network object
  @param  array $postData Post data
  @return void
docstring_tokens: Modifies the Network HTTP object with common attributes .