You are here

public function SiteAuditCheckFrontEndWebPageTest::addSpaces in Site Audit 8.2

Return a string with $number space characters if output type is not json.

Parameters

int $number: Number of spaces to be added.

Return value

string string containing $number spaces if output type is not json.

1 call to SiteAuditCheckFrontEndWebPageTest::addSpaces()
SiteAuditCheckFrontEndWebPageTest::getResultPass in Check/FrontEnd/WebPageTest.php
Implements \SiteAudit\Check\Abstract\getResultPass().

File

Check/FrontEnd/WebPageTest.php, line 51
Contains \SiteAudit\Check\FrontEnd\WebPageTest.

Class

SiteAuditCheckFrontEndWebPageTest
Class SiteAuditCheckFrontEndWebPageTest.

Code

public function addSpaces($number) {
  if (!drush_get_option('json')) {
    return str_repeat(' ', $number);
  }
  return '';
}