@@ -17,8 +17,7 @@ |
||
| 17 | 17 | $id = $params->get('id'); |
| 18 | 18 | $name = $params->get('name'); |
| 19 | 19 | |
| 20 | - $remove = empty($id) ? $manager->removeByName($name) : |
|
| 21 | - $manager->remove($id); |
|
| 20 | + $remove = empty($id) ? $manager->removeByName($name) : $manager->remove($id); |
|
| 22 | 21 | |
| 23 | 22 | $refresh = Refresh::execute($params, $daemon); |
| 24 | 23 | |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | class WorklogTransformer extends TransformerAbstract { |
| 7 | 7 | |
| 8 | - public function transform (Worklog $worklog) { |
|
| 8 | + public function transform(Worklog $worklog) { |
|
| 9 | 9 | |
| 10 | 10 | return [ |
| 11 | 11 | 'id' => (int) $worklog->getId(), |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | |
| 28 | 28 | $plain_plugins = []; |
| 29 | 29 | |
| 30 | - foreach ($config as $package => $plugins) { |
|
| 31 | - foreach ($plugins as $plugin) { |
|
| 30 | + foreach ( $config as $package => $plugins ) { |
|
| 31 | + foreach ( $plugins as $plugin ) { |
|
| 32 | 32 | $plain_plugins[] = $plugin; |
| 33 | 33 | } |
| 34 | 34 | } |
@@ -27,9 +27,9 @@ |
||
| 27 | 27 | |
| 28 | 28 | $classes = []; |
| 29 | 29 | |
| 30 | - foreach ($config as $package) { |
|
| 31 | - foreach ($package as $command) { |
|
| 32 | - if ( $command['scope'] === 'extender') { |
|
| 30 | + foreach ( $config as $package ) { |
|
| 31 | + foreach ( $package as $command ) { |
|
| 32 | + if ( $command['scope'] === 'extender' ) { |
|
| 33 | 33 | $classes[] = $command['class']; |
| 34 | 34 | } |
| 35 | 35 | } |
@@ -24,12 +24,12 @@ |
||
| 24 | 24 | protected $description = 'Daemonizable, database driven, multiprocess, (pseudo) cron task scheduler'; |
| 25 | 25 | protected $version = '2.0-dev'; |
| 26 | 26 | protected $ascii = "\r\n ____ __ __ \r\n". |
| 27 | - " / __/_ __/ /____ ___ ___/ /__ ____\r\n". |
|
| 28 | - " / _/ \ \ / __/ -_) _ \/ _ / -_) __/\r\n". |
|
| 29 | - "/___//_\_\\__/\__/_//_/\_,_/\__/_/ \r\n"; |
|
| 27 | + " / __/_ __/ /____ ___ ___/ /__ ____\r\n". |
|
| 28 | + " / _/ \ \ / __/ -_) _ \/ _ / -_) __/\r\n". |
|
| 29 | + "/___//_\_\\__/\__/_//_/\_,_/\__/_/ \r\n"; |
|
| 30 | 30 | protected $template = "\n\n{ascii}\r\n". |
| 31 | - "---------------------------------------------\r\n". |
|
| 32 | - "{name} (ver {version})\r\n{description}\r\n"; |
|
| 31 | + "---------------------------------------------\r\n". |
|
| 32 | + "{name} (ver {version})\r\n{description}\r\n"; |
|
| 33 | 33 | protected $prefix = 'extender-'; |
| 34 | 34 | |
| 35 | 35 | } |