@@ -70,7 +70,8 @@ |
||
70 | 70 | if (null == $_oLocalEntity) |
71 | 71 | { |
72 | 72 | $this->addJobInLocalRepository($_oRemoteEntity); |
73 | - } else { |
|
73 | + } |
|
74 | + else { |
|
74 | 75 | //update |
75 | 76 | $this->updateJobInLocalRepository($_oRemoteEntity, $bForceOverwrite); |
76 | 77 | } |
@@ -62,7 +62,8 @@ |
||
62 | 62 | if (!empty($oJobEntity->schedule) && empty($oJobEntity->parents)) |
63 | 63 | { |
64 | 64 | $_sTargetUrl = '/scheduler/iso8601'; |
65 | - } elseif (empty($oJobEntity->schedule) && !empty($oJobEntity->parents)) |
|
65 | + } |
|
66 | + elseif (empty($oJobEntity->schedule) && !empty($oJobEntity->parents)) |
|
66 | 67 | { |
67 | 68 | $_sTargetUrl = '/scheduler/dependency'; |
68 | 69 | } |
@@ -38,8 +38,7 @@ |
||
38 | 38 | try |
39 | 39 | { |
40 | 40 | return self::$aIso8601Entity[$_sKey] = new Iso8601Entity($sIso8601); |
41 | - } |
|
42 | - catch (\InvalidArgumentException $_oException) |
|
41 | + } catch (\InvalidArgumentException $_oException) |
|
43 | 42 | { |
44 | 43 | throw new DatePeriodException(sprintf("Can't init Iso8601Entity for '%s' iso 8601 string.", $sIso8601), 1, $_oException); |
45 | 44 | } |
@@ -96,7 +96,7 @@ |
||
96 | 96 | * @param string $sDirectoryPath |
97 | 97 | * @param array $aSearchPatterns |
98 | 98 | */ |
99 | - private function getSearchPatternsFromDir($sDirectoryPath, &$aSearchPatterns=[]) |
|
99 | + private function getSearchPatternsFromDir($sDirectoryPath, &$aSearchPatterns = []) |
|
100 | 100 | { |
101 | 101 | $_sIgnoreFilePath = $sDirectoryPath . DIRECTORY_SEPARATOR . '.chapiignore'; |
102 | 102 |
@@ -67,7 +67,7 @@ |
||
67 | 67 | */ |
68 | 68 | public function removeJob($sJobName) |
69 | 69 | { |
70 | - $_sTargetEndpoint = '/v2/apps/'.$sJobName; |
|
70 | + $_sTargetEndpoint = '/v2/apps/' . $sJobName; |
|
71 | 71 | |
72 | 72 | $_oResponse = $this->oHttpClient->delete($_sTargetEndpoint); |
73 | 73 | return ($_oResponse->getStatusCode() == 200); |