@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | public function createUserFilter(Container $container) |
72 | 72 | { |
73 | - $container['userQuery'] = $container->factory(function ($c) { |
|
73 | + $container['userQuery'] = $container->factory(function($c) { |
|
74 | 74 | $builder = new QueryBuilder(); |
75 | 75 | $builder->withQuery($c['db']->table(UserModel::TABLE)); |
76 | 76 | |
@@ -82,28 +82,28 @@ discard block |
||
82 | 82 | |
83 | 83 | public function createProjectFilter(Container $container) |
84 | 84 | { |
85 | - $container['projectGroupRoleQuery'] = $container->factory(function ($c) { |
|
85 | + $container['projectGroupRoleQuery'] = $container->factory(function($c) { |
|
86 | 86 | $builder = new QueryBuilder(); |
87 | 87 | $builder->withQuery($c['db']->table(ProjectGroupRoleModel::TABLE)); |
88 | 88 | |
89 | 89 | return $builder; |
90 | 90 | }); |
91 | 91 | |
92 | - $container['projectUserRoleQuery'] = $container->factory(function ($c) { |
|
92 | + $container['projectUserRoleQuery'] = $container->factory(function($c) { |
|
93 | 93 | $builder = new QueryBuilder(); |
94 | 94 | $builder->withQuery($c['db']->table(ProjectUserRoleModel::TABLE)); |
95 | 95 | |
96 | 96 | return $builder; |
97 | 97 | }); |
98 | 98 | |
99 | - $container['projectQuery'] = $container->factory(function ($c) { |
|
99 | + $container['projectQuery'] = $container->factory(function($c) { |
|
100 | 100 | $builder = new QueryBuilder(); |
101 | 101 | $builder->withQuery($c['db']->table(ProjectModel::TABLE)); |
102 | 102 | |
103 | 103 | return $builder; |
104 | 104 | }); |
105 | 105 | |
106 | - $container['projectActivityLexer'] = $container->factory(function ($c) { |
|
106 | + $container['projectActivityLexer'] = $container->factory(function($c) { |
|
107 | 107 | $builder = new LexerBuilder(); |
108 | 108 | $builder |
109 | 109 | ->withQuery($c['projectActivityModel']->getQuery()) |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | return $builder; |
121 | 121 | }); |
122 | 122 | |
123 | - $container['projectActivityQuery'] = $container->factory(function ($c) { |
|
123 | + $container['projectActivityQuery'] = $container->factory(function($c) { |
|
124 | 124 | $builder = new QueryBuilder(); |
125 | 125 | $builder->withQuery($c['projectActivityModel']->getQuery()); |
126 | 126 | |
@@ -132,14 +132,14 @@ discard block |
||
132 | 132 | |
133 | 133 | public function createTaskFilter(Container $container) |
134 | 134 | { |
135 | - $container['taskQuery'] = $container->factory(function ($c) { |
|
135 | + $container['taskQuery'] = $container->factory(function($c) { |
|
136 | 136 | $builder = new QueryBuilder(); |
137 | 137 | $builder->withQuery($c['taskFinderModel']->getExtendedQuery()); |
138 | 138 | |
139 | 139 | return $builder; |
140 | 140 | }); |
141 | 141 | |
142 | - $container['taskLexer'] = $container->factory(function ($c) { |
|
142 | + $container['taskLexer'] = $container->factory(function($c) { |
|
143 | 143 | $builder = new LexerBuilder(); |
144 | 144 | |
145 | 145 | $builder |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function register(Container $container) |
29 | 29 | { |
30 | - $container['emailClient'] = function ($container) { |
|
30 | + $container['emailClient'] = function($container) { |
|
31 | 31 | $mailer = new EmailClient($container); |
32 | 32 | $mailer->setTransport('smtp', '\Jitamin\Core\Mail\Transport\Smtp'); |
33 | 33 | $mailer->setTransport('sendmail', '\Jitamin\Core\Mail\Transport\Sendmail'); |
@@ -36,35 +36,35 @@ |
||
36 | 36 | */ |
37 | 37 | public function register(Container $container) |
38 | 38 | { |
39 | - $container['commentEventJob'] = $container->factory(function ($c) { |
|
39 | + $container['commentEventJob'] = $container->factory(function($c) { |
|
40 | 40 | return new CommentEventJob($c); |
41 | 41 | }); |
42 | 42 | |
43 | - $container['subtaskEventJob'] = $container->factory(function ($c) { |
|
43 | + $container['subtaskEventJob'] = $container->factory(function($c) { |
|
44 | 44 | return new SubtaskEventJob($c); |
45 | 45 | }); |
46 | 46 | |
47 | - $container['taskEventJob'] = $container->factory(function ($c) { |
|
47 | + $container['taskEventJob'] = $container->factory(function($c) { |
|
48 | 48 | return new TaskEventJob($c); |
49 | 49 | }); |
50 | 50 | |
51 | - $container['taskFileEventJob'] = $container->factory(function ($c) { |
|
51 | + $container['taskFileEventJob'] = $container->factory(function($c) { |
|
52 | 52 | return new TaskFileEventJob($c); |
53 | 53 | }); |
54 | 54 | |
55 | - $container['taskLinkEventJob'] = $container->factory(function ($c) { |
|
55 | + $container['taskLinkEventJob'] = $container->factory(function($c) { |
|
56 | 56 | return new TaskLinkEventJob($c); |
57 | 57 | }); |
58 | 58 | |
59 | - $container['projectFileEventJob'] = $container->factory(function ($c) { |
|
59 | + $container['projectFileEventJob'] = $container->factory(function($c) { |
|
60 | 60 | return new ProjectFileEventJob($c); |
61 | 61 | }); |
62 | 62 | |
63 | - $container['notificationJob'] = $container->factory(function ($c) { |
|
63 | + $container['notificationJob'] = $container->factory(function($c) { |
|
64 | 64 | return new NotificationJob($c); |
65 | 65 | }); |
66 | 66 | |
67 | - $container['projectMetricJob'] = $container->factory(function ($c) { |
|
67 | + $container['projectMetricJob'] = $container->factory(function($c) { |
|
68 | 68 | return new ProjectMetricJob($c); |
69 | 69 | }); |
70 | 70 |
@@ -83,7 +83,7 @@ |
||
83 | 83 | $strings = array_merge($strings, $matches[1]); |
84 | 84 | } |
85 | 85 | |
86 | - array_walk($strings, function (&$value) { |
|
86 | + array_walk($strings, function(&$value) { |
|
87 | 87 | $value = trim($value, "'"); |
88 | 88 | $value = str_replace("\'", "'", $value); |
89 | 89 | }); |
@@ -90,7 +90,7 @@ |
||
90 | 90 | $q = $lightness < 0.5 ? $lightness * (1 + $saturation) : $lightness + $saturation - $lightness * $saturation; |
91 | 91 | $p = 2 * $lightness - $q; |
92 | 92 | |
93 | - return array_map(function ($color) use ($q, $p) { |
|
93 | + return array_map(function($color) use ($q, $p) { |
|
94 | 94 | if ($color < 0) { |
95 | 95 | $color++; |
96 | 96 | } |