original_string: private function getCommandParameters()
      {
          // Map our config options to PhantomJS options.
          $mapping = [
              'port' => '--webdriver',
              'proxy' => '--proxy',
              'proxyType' => '--proxy-type',
              'proxyAuth' => '--proxy-auth',
              'webSecurity' => '--web-security',
              'ignoreSslErrors' => '--ignore-ssl-errors',
              'sslProtocol' => '--ssl-protocol',
              'sslCertificatesPath' => '--ssl-certificates-path',
              'remoteDebuggerPort' => '--remote-debugger-port',
              'remoteDebuggerAutorun' => '--remote-debugger-autorun',
              'cookiesFile' => '--cookies-file',
              'diskCache' => '--disk-cache',
              'maxDiskCacheSize' => '--max-disk-cache-size',
              'loadImages' => '--load-images',
              'localStoragePath' => '--local-storage-path',
              'localStorageQuota' => '--local-storage-quota',
              'localToRemoteUrlAccess' => '--local-to-remote-url-access',
              'outputEncoding' => '--output-encoding',
              'scriptEncoding' => '--script-encoding',
              'webdriverLoglevel' => '--webdriver-loglevel',
              'webdriverLogfile' => '--webdriver-logfile',
          ];
  
          $params = [];
          foreach ($this->config as $configKey => $configValue) {
              if (!empty($mapping[$configKey])) {
                  if (is_bool($configValue)) {
                      // Make sure the value is true/false and not 1/0.
                      $configValue = $configValue ? 'true' : 'false';
                  }
                  $params[] = $mapping[$configKey] . '=' . $configValue;
              }
          }
  
          return implode(' ', $params);
      }
code: private function getCommandParameters()
      {
          // Map our config options to PhantomJS options.
          $mapping = [
              'port' => '--webdriver',
              'proxy' => '--proxy',
              'proxyType' => '--proxy-type',
              'proxyAuth' => '--proxy-auth',
              'webSecurity' => '--web-security',
              'ignoreSslErrors' => '--ignore-ssl-errors',
              'sslProtocol' => '--ssl-protocol',
              'sslCertificatesPath' => '--ssl-certificates-path',
              'remoteDebuggerPort' => '--remote-debugger-port',
              'remoteDebuggerAutorun' => '--remote-debugger-autorun',
              'cookiesFile' => '--cookies-file',
              'diskCache' => '--disk-cache',
              'maxDiskCacheSize' => '--max-disk-cache-size',
              'loadImages' => '--load-images',
              'localStoragePath' => '--local-storage-path',
              'localStorageQuota' => '--local-storage-quota',
              'localToRemoteUrlAccess' => '--local-to-remote-url-access',
              'outputEncoding' => '--output-encoding',
              'scriptEncoding' => '--script-encoding',
              'webdriverLoglevel' => '--webdriver-loglevel',
              'webdriverLogfile' => '--webdriver-logfile',
          ];
  
          $params = [];
          foreach ($this->config as $configKey => $configValue) {
              if (!empty($mapping[$configKey])) {
                  if (is_bool($configValue)) {
                      // Make sure the value is true/false and not 1/0.
                      $configValue = $configValue ? 'true' : 'false';
                  }
                  $params[] = $mapping[$configKey] . '=' . $configValue;
              }
          }
  
          return implode(' ', $params);
      }
code_tokens: private function getCommandParameters ( ) { // Map our config options to PhantomJS options. $ mapping = [ 'port' => '--webdriver' , 'proxy' => '--proxy' , 'proxyType' => '--proxy-type' , 'proxyAuth' => '--proxy-auth' , 'webSecurity' => '--web-security' , 'ignoreSslErrors' => '--ignore-ssl-errors' , 'sslProtocol' => '--ssl-protocol' , 'sslCertificatesPath' => '--ssl-certificates-path' , 'remoteDebuggerPort' => '--remote-debugger-port' , 'remoteDebuggerAutorun' => '--remote-debugger-autorun' , 'cookiesFile' => '--cookies-file' , 'diskCache' => '--disk-cache' , 'maxDiskCacheSize' => '--max-disk-cache-size' , 'loadImages' => '--load-images' , 'localStoragePath' => '--local-storage-path' , 'localStorageQuota' => '--local-storage-quota' , 'localToRemoteUrlAccess' => '--local-to-remote-url-access' , 'outputEncoding' => '--output-encoding' , 'scriptEncoding' => '--script-encoding' , 'webdriverLoglevel' => '--webdriver-loglevel' , 'webdriverLogfile' => '--webdriver-logfile' , ] ; $ params = [ ] ; foreach ( $ this -> config as $ configKey => $ configValue ) { if ( ! empty ( $ mapping [ $ configKey ] ) ) { if ( is_bool ( $ configValue ) ) { // Make sure the value is true/false and not 1/0. $ configValue = $ configValue ? 'true' : 'false' ; } $ params [ ] = $ mapping [ $ configKey ] . '=' . $ configValue ; } } return implode ( ' ' , $ params ) ; }
docstring: Build the parameters for our command.
  
  @return string
  All parameters separated by spaces.
docstring_tokens: Build the parameters for our command .