@@ -14,7 +14,6 @@ |
||
| 14 | 14 | * long as it does not already exist in the output directory. |
| 15 | 15 | * |
| 16 | 16 | */ |
| 17 | -class Territory extends BaseTerritory |
|
| 18 | -{ |
|
| 17 | +class Territory extends BaseTerritory { |
|
| 19 | 18 | |
| 20 | 19 | } |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | * long as it does not already exist in the output directory. |
| 15 | 15 | * |
| 16 | 16 | */ |
| 17 | -class TerritoryQuery extends BaseTerritoryQuery |
|
| 18 | -{ |
|
| 17 | +class TerritoryQuery extends BaseTerritoryQuery { |
|
| 19 | 18 | |
| 20 | 19 | } // TerritoryQuery |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | * long as it does not already exist in the output directory. |
| 15 | 15 | * |
| 16 | 16 | */ |
| 17 | -class UserGroup extends BaseUserGroup |
|
| 18 | -{ |
|
| 17 | +class UserGroup extends BaseUserGroup { |
|
| 19 | 18 | |
| 20 | 19 | } |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | * long as it does not already exist in the output directory. |
| 15 | 15 | * |
| 16 | 16 | */ |
| 17 | -class UserGroupQuery extends BaseUserGroupQuery |
|
| 18 | -{ |
|
| 17 | +class UserGroupQuery extends BaseUserGroupQuery { |
|
| 19 | 18 | |
| 20 | 19 | } // UserGroupQuery |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | * long as it does not already exist in the output directory. |
| 15 | 15 | * |
| 16 | 16 | */ |
| 17 | -class UserQuery extends BaseUserQuery |
|
| 18 | -{ |
|
| 17 | +class UserQuery extends BaseUserQuery { |
|
| 19 | 18 | |
| 20 | 19 | } // UserQuery |
@@ -68,17 +68,17 @@ |
||
| 68 | 68 | |
| 69 | 69 | public function getKeekoPackage($type) { |
| 70 | 70 | switch ($type) { |
| 71 | - case 'app': |
|
| 72 | - if ($this->app === null) { |
|
| 73 | - $this->app = new AppSchema($this->package); |
|
| 74 | - } |
|
| 75 | - return $this->app; |
|
| 71 | + case 'app': |
|
| 72 | + if ($this->app === null) { |
|
| 73 | + $this->app = new AppSchema($this->package); |
|
| 74 | + } |
|
| 75 | + return $this->app; |
|
| 76 | 76 | |
| 77 | - case 'module': |
|
| 78 | - if ($this->module === null) { |
|
| 79 | - $this->module = new ModuleSchema($this->package); |
|
| 80 | - } |
|
| 81 | - return $this->module; |
|
| 77 | + case 'module': |
|
| 78 | + if ($this->module === null) { |
|
| 79 | + $this->module = new ModuleSchema($this->package); |
|
| 80 | + } |
|
| 81 | + return $this->module; |
|
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | * @return string |
| 11 | 11 | */ |
| 12 | 12 | public static function toStudlyCase($input) { |
| 13 | - return ucfirst(preg_replace_callback('/([A-Z-_][a-z]+)/', function ($matches) { |
|
| 13 | + return ucfirst(preg_replace_callback('/([A-Z-_][a-z]+)/', function($matches) { |
|
| 14 | 14 | return ucfirst(str_replace([ |
| 15 | 15 | '-', |
| 16 | 16 | '_' |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | $this->twig->addFunction(new \Twig_SimpleFunction('transchoice', $transchoice)); |
| 31 | 31 | |
| 32 | 32 | $firewall = $this->getServiceContainer()->getFirewall(); |
| 33 | - $this->twig->addFunction(new \Twig_SimpleFunction('hasPermission', function ($module, $action) use ($firewall) { |
|
| 33 | + $this->twig->addFunction(new \Twig_SimpleFunction('hasPermission', function($module, $action) use ($firewall) { |
|
| 34 | 34 | return $firewall->hasPermission($module, $action); |
| 35 | 35 | })); |
| 36 | 36 | } |