@@ -39,12 +39,12 @@ |
||
39 | 39 | private $validators = []; |
40 | 40 | |
41 | 41 | /** |
42 | - * @param mixed $data |
|
43 | - * @param string|array $validators |
|
44 | - * @param bool|true $throw |
|
45 | - * |
|
46 | - * @return bool |
|
47 | - */ |
|
42 | + * @param mixed $data |
|
43 | + * @param string|array $validators |
|
44 | + * @param bool|true $throw |
|
45 | + * |
|
46 | + * @return bool |
|
47 | + */ |
|
48 | 48 | public function validate($data, $validators, $throw = true) |
49 | 49 | { |
50 | 50 | $validators = $this->getValidators($validators); |
@@ -18,8 +18,8 @@ |
||
18 | 18 | class ListCommand extends Command |
19 | 19 | { |
20 | 20 | /** |
21 | - * {@inheritdoc} |
|
22 | - */ |
|
21 | + * {@inheritdoc} |
|
22 | + */ |
|
23 | 23 | protected function configure() |
24 | 24 | { |
25 | 25 | $this |
@@ -22,9 +22,9 @@ |
||
22 | 22 | private $formatter; |
23 | 23 | |
24 | 24 | /** |
25 | - * @param int $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface) |
|
26 | - * @param bool $decorated Whether to decorate messages |
|
27 | - * @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter) |
|
25 | + * @param int $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface) |
|
26 | + * @param bool $decorated Whether to decorate messages |
|
27 | + * @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter) |
|
28 | 28 | */ |
29 | 29 | public function __construct(int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, OutputFormatterInterface $formatter = null) |
30 | 30 | { |
@@ -6,27 +6,27 @@ |
||
6 | 6 | * @Author Marco Bier <[email protected]> |
7 | 7 | */ |
8 | 8 | |
9 | - namespace app\framework\Component\Storage; |
|
9 | + namespace app\framework\Component\Storage; |
|
10 | 10 | |
11 | - /** |
|
12 | - * A library of Storage functions |
|
13 | - * |
|
14 | - * @package app\framework\Component\Storage |
|
15 | - */ |
|
16 | - trait StorageTrait |
|
17 | - { |
|
18 | - /** |
|
19 | - * Get storage |
|
20 | - * |
|
21 | - * @param $storageName |
|
22 | - * @return Storage |
|
23 | - */ |
|
24 | - protected static function storage($storageName) |
|
25 | - { |
|
26 | - try { |
|
27 | - return new Storage($storageName); |
|
28 | - } catch(StorageException $e) { |
|
29 | - handle($e); |
|
30 | - } |
|
31 | - } |
|
32 | - } |
|
11 | + /** |
|
12 | + * A library of Storage functions |
|
13 | + * |
|
14 | + * @package app\framework\Component\Storage |
|
15 | + */ |
|
16 | + trait StorageTrait |
|
17 | + { |
|
18 | + /** |
|
19 | + * Get storage |
|
20 | + * |
|
21 | + * @param $storageName |
|
22 | + * @return Storage |
|
23 | + */ |
|
24 | + protected static function storage($storageName) |
|
25 | + { |
|
26 | + try { |
|
27 | + return new Storage($storageName); |
|
28 | + } catch(StorageException $e) { |
|
29 | + handle($e); |
|
30 | + } |
|
31 | + } |
|
32 | + } |
@@ -739,12 +739,12 @@ |
||
739 | 739 | |
740 | 740 | // Older versions of PCRE require the 'P' in (?P<named>) |
741 | 741 | $pattern = '(?:' |
742 | - . ($pre !== '' ? $pre : null) |
|
743 | - . '(' |
|
744 | - . ($param !== '' ? "?P<$param>" : null) |
|
745 | - . $type |
|
746 | - . '))' |
|
747 | - . ($optional !== '' ? '?' : null); |
|
742 | + . ($pre !== '' ? $pre : null) |
|
743 | + . '(' |
|
744 | + . ($param !== '' ? "?P<$param>" : null) |
|
745 | + . $type |
|
746 | + . '))' |
|
747 | + . ($optional !== '' ? '?' : null); |
|
748 | 748 | |
749 | 749 | return $pattern; |
750 | 750 | }, |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | class AuthController |
15 | 15 | { |
16 | - use AuthenticatesAndRegistersUsers; |
|
16 | + use AuthenticatesAndRegistersUsers; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * Where to redirect users after login / registration. |
@@ -114,15 +114,15 @@ |
||
114 | 114 | } |
115 | 115 | |
116 | 116 | view("SpaceFlightDatabase/noMissionSpecified", [ |
117 | - "breadcrumb" => view("fetch:core/breadcrumb_single", [ |
|
118 | - "isNotEndLevel" => true, |
|
119 | - "linkToLowerLevel" => "/sfdb", |
|
120 | - "text" => "Space Flight DB", |
|
121 | - ]).view("fetch:core/breadcrumb_single", [ |
|
122 | - "text" => "Mission", |
|
123 | - ]), |
|
124 | - "dataForStats" => json_encode($dataForJSONArray), |
|
125 | - "SpaceFlightMissionTableData" => $missionTableData, |
|
117 | + "breadcrumb" => view("fetch:core/breadcrumb_single", [ |
|
118 | + "isNotEndLevel" => true, |
|
119 | + "linkToLowerLevel" => "/sfdb", |
|
120 | + "text" => "Space Flight DB", |
|
121 | + ]).view("fetch:core/breadcrumb_single", [ |
|
122 | + "text" => "Mission", |
|
123 | + ]), |
|
124 | + "dataForStats" => json_encode($dataForJSONArray), |
|
125 | + "SpaceFlightMissionTableData" => $missionTableData, |
|
126 | 126 | ]); |
127 | 127 | } else { |
128 | 128 | $missionData = Missions::getInstance()->getByID($ID); |
@@ -6,13 +6,13 @@ |
||
6 | 6 | |
7 | 7 | class ProjectManagerController |
8 | 8 | { |
9 | - public function dashboard() |
|
10 | - { |
|
11 | - $projects = DB::select( |
|
12 | - "SELECT id, name, description FROM projects WHERE owner=:user_id", |
|
13 | - ['user_id' => $_SESSION['user']['id']] |
|
14 | - ); |
|
9 | + public function dashboard() |
|
10 | + { |
|
11 | + $projects = DB::select( |
|
12 | + "SELECT id, name, description FROM projects WHERE owner=:user_id", |
|
13 | + ['user_id' => $_SESSION['user']['id']] |
|
14 | + ); |
|
15 | 15 | |
16 | - view("projectManager/dashboard", ['projects' => $projects]); |
|
17 | - } |
|
16 | + view("projectManager/dashboard", ['projects' => $projects]); |
|
17 | + } |
|
18 | 18 | } |
19 | 19 | \ No newline at end of file |