original_string: protected function makeFilterScope($name, $config)
      {
          $label = $config['label'] ?? null;
          $scopeType = $config['type'] ?? null;
  
          $scope = new FilterScope($name, $label);
          $scope->displayAs($scopeType, $config);
  
          /*
           * Set scope value
           */
          $scope->value = $this->getScopeValue($scope, @$config['default']);
  
          return $scope;
      }
code: protected function makeFilterScope($name, $config)
      {
          $label = $config['label'] ?? null;
          $scopeType = $config['type'] ?? null;
  
          $scope = new FilterScope($name, $label);
          $scope->displayAs($scopeType, $config);
  
          /*
           * Set scope value
           */
          $scope->value = $this->getScopeValue($scope, @$config['default']);
  
          return $scope;
      }
code_tokens: protected function makeFilterScope ( $ name , $ config ) { $ label = $ config [ 'label' ] ?? null ; $ scopeType = $ config [ 'type' ] ?? null ; $ scope = new FilterScope ( $ name , $ label ) ; $ scope -> displayAs ( $ scopeType , $ config ) ; /*
           * Set scope value
           */ $ scope -> value = $ this -> getScopeValue ( $ scope , @ $ config [ 'default' ] ) ; return $ scope ; }
docstring: Creates a filter scope object from name and configuration.
docstring_tokens: Creates a filter scope object from name and configuration .