Skip to content

Commit 5d6df28

Browse files
committed
Small fixes
1 parent 3ec5fcc commit 5d6df28

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Console/Command/EnableCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,8 @@ private function uploadVcl($activate)
752752

753753
$this->api->createRequest($clone->number, $request);
754754

755-
$dictionary = $this->dictionary->setupDictionary($clone->number, $currActiveVersion);
756-
$acl = $this->acl->setupAcl($clone->number, $currActiveVersion);
755+
$this->dictionary->setupDictionary($clone->number, $currActiveVersion);
756+
$this->acl->setupAcl($clone->number, $currActiveVersion);
757757

758758
$this->api->validateServiceVersion($clone->number);
759759
$msg = 'Successfully uploaded VCL. ';

Model/Upload/Acl.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Fastly\Cdn\Model\Upload;
44

5-
use Exception;
65
use Fastly\Cdn\Model\Api;
76
use Fastly\Cdn\Model\Config;
87

@@ -39,7 +38,7 @@ public function setupAcl($cloneNumber, $currActiveVersion)
3938
$acl = $this->api->createAcl($cloneNumber, $params);
4039
}
4140
return $acl;
42-
} catch (Exception $e) {
41+
} catch (\Exception $e) {
4342

4443
return false;
4544
}

Model/Upload/Dictionary.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Fastly\Cdn\Model\Upload;
44

5-
use Exception;
65
use Fastly\Cdn\Model\Api;
76
use Fastly\Cdn\Model\Config;
87

@@ -39,7 +38,7 @@ public function setupDictionary($cloneNumber, $currActiveVersion)
3938
$dictionary = $this->api->createDictionary($cloneNumber, $params);
4039
}
4140
return $dictionary;
42-
} catch (Exception $e) {
41+
} catch (\Exception $e) {
4342

4443
return false;
4544
}

0 commit comments

Comments
 (0)