@@ -11,11 +11,11 @@ discard block |
||
11 | 11 | */ |
12 | 12 | private $container; |
13 | 13 | |
14 | - /** |
|
15 | - * Globals constructor. |
|
16 | - * @param ContainerInterface $container |
|
17 | - */ |
|
18 | - public function __construct(ContainerInterface $container) |
|
14 | + /** |
|
15 | + * Globals constructor. |
|
16 | + * @param ContainerInterface $container |
|
17 | + */ |
|
18 | + public function __construct(ContainerInterface $container) |
|
19 | 19 | { |
20 | 20 | $this->container = $container; |
21 | 21 | } |
@@ -38,23 +38,23 @@ discard block |
||
38 | 38 | return $package_name; |
39 | 39 | } |
40 | 40 | |
41 | - /** |
|
42 | - * this method send base bundle path related to ribs-admin |
|
43 | - * @param string|null $package |
|
44 | - * @param bool $dev_mode |
|
45 | - * @return string |
|
46 | - */ |
|
41 | + /** |
|
42 | + * this method send base bundle path related to ribs-admin |
|
43 | + * @param string|null $package |
|
44 | + * @param bool $dev_mode |
|
45 | + * @return string |
|
46 | + */ |
|
47 | 47 | public function getBaseBundlePath(string $package = "piou-piou/ribs-admin-bundle", bool $dev_mode = false): string |
48 | 48 | { |
49 | 49 | $path = $this->container->get('kernel')->getProjectDir(); |
50 | 50 | |
51 | - $dev_mode = $package === "piou-piou/ribs-admin-bundle" ? $this->container->getParameter("ribs_admin")["dev_mode"] : $dev_mode; |
|
51 | + $dev_mode = $package === "piou-piou/ribs-admin-bundle" ? $this->container->getParameter("ribs_admin")["dev_mode"] : $dev_mode; |
|
52 | 52 | |
53 | 53 | if ($dev_mode === true) { |
54 | 54 | $package = "/lib/".$this->getPackageDevName($package); |
55 | 55 | } else { |
56 | - $package = "/vendor/" . $package; |
|
57 | - } |
|
56 | + $package = "/vendor/" . $package; |
|
57 | + } |
|
58 | 58 | |
59 | 59 | return $path . $package; |
60 | 60 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | $dev_mode = $package === "piou-piou/ribs-admin-bundle" ? $this->container->getParameter("ribs_admin")["dev_mode"] : $dev_mode; |
52 | 52 | |
53 | 53 | if ($dev_mode === true) { |
54 | - $package = "/lib/".$this->getPackageDevName($package); |
|
54 | + $package = "/lib/" . $this->getPackageDevName($package); |
|
55 | 55 | } else { |
56 | 56 | $package = "/vendor/" . $package; |
57 | 57 | } |