11<?php
2- declare (strict_types = 1 );
2+
3+ declare (strict_types=1 );
4+
35namespace App \Lib \Configuration ;
46
57use Exception ;
@@ -27,7 +29,7 @@ public function __construct(string $path)
2729 * @param string $path
2830 * @return array<array>
2931 */
30- private function parseIniFile (string $ path ):array
32+ private function parseIniFile (string $ path ): array
3133 {
3234 $ configuration = parse_ini_file ($ path , true , INI_SCANNER_RAW ) ?: [];
3335
@@ -40,7 +42,7 @@ private function parseIniFile(string $path):array
4042 * @param string $segment
4143 * @return array<string>
4244 */
43- public function getSegment (string $ segment ):array
45+ public function getSegment (string $ segment ): array
4446 {
4547 if (!(array_key_exists ($ segment , $ this ->configuration ))) {
4648 throw new Exception ('Segment ' . $ segment . 'not exists! ' );
@@ -55,7 +57,7 @@ public function getSegment(string $segment):array
5557 * @param string $key
5658 * @return string
5759 */
58- public function get (string $ key ):string
60+ public function get (string $ key ): string
5961 {
6062 $ configuration = $ this ->getSegment ($ this ->segment );
6163 if (!(array_key_exists ($ key , $ configuration ))) {
@@ -71,7 +73,7 @@ public function get(string $key):string
7173 * @param string $segment
7274 * @return void
7375 */
74- public function setSegment (string $ segment ):void
76+ public function setSegment (string $ segment ): void
7577 {
7678 if (!array_key_exists ($ segment , $ this ->configuration )) {
7779 throw new Exception ('Segment ' . $ segment . ' not exists! ' );
0 commit comments