Skip to content

Commit

Permalink
missing \Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsbrugs committed Mar 16, 2017
1 parent eb168d4 commit 06a184d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Hug/PrerenderSpa/PrerenderSpa.php
Expand Up @@ -37,7 +37,7 @@ function __construct($urls, $output, $prerender_url, $prerender_auth = null, $pr

if(!(is_dir($this->output) && is_writable($this->output)))
{
throw new Exception("Output directory not writable", 1);
throw new \Exception("Output directory not writable", 1);
}
else
{
Expand Down Expand Up @@ -139,7 +139,7 @@ private function take_snapshot($url, $key)
$this->report[$key]['http'] = $retcode;
$this->report[$key]['size'] = FileSystem::human_file_size(strlen($html));
}
catch (Exception $e)
catch (\Exception $e)
{
$html = false;
}
Expand Down Expand Up @@ -171,7 +171,7 @@ public static function url_to_filename($url)
$filename = 'index';
$filename .= '.html';
}
catch (Exception $e)
catch (\Exception $e)
{
$filename = false;
}
Expand Down Expand Up @@ -204,7 +204,7 @@ public static function get_sitemap_urls($filename)
}
}
}
catch (Exception $e)
catch (\Exception $e)
{
$urls = false;
}
Expand All @@ -229,7 +229,7 @@ public static function get_snapshot($url, $output)
$url_file_path = $output . $url_file;
$html = file_get_contents($url_file_path);
}
catch (Exception $e)
catch (\Exception $e)
{
$html = false;
}
Expand Down Expand Up @@ -257,7 +257,7 @@ public function save_report()
$saved = true;
}
}
catch (Exception $e)
catch (\Exception $e)
{
$saved = false;
}
Expand All @@ -278,7 +278,7 @@ public function load_reports()
{
$reports = FileSystem::scandir_h($this->output . 'reports', 'json');
}
catch (Exception $e)
catch (\Exception $e)
{
$reports = false;
}
Expand Down

0 comments on commit 06a184d

Please sign in to comment.