@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | use Fenos\Notifynder\Groups\NotifynderGroup; |
4 | 4 | use Illuminate\Console\Command; |
5 | -use Symfony\Component\Console\Input\InputOption; |
|
6 | 5 | use Symfony\Component\Console\Input\InputArgument; |
7 | 6 | |
8 | 7 | class GroupAdd extends Command { |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * the generation of your array |
152 | 152 | * |
153 | 153 | * |
154 | - * @param callable $closure |
|
154 | + * @param \Closure $closure |
|
155 | 155 | * @return array | false |
156 | 156 | */ |
157 | 157 | public function raw(\Closure $closure) |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * multi notifications array |
187 | 187 | * |
188 | 188 | * @param $dataToIterate |
189 | - * @param callable $builder |
|
189 | + * @param \Closure $builder |
|
190 | 190 | * @return $this |
191 | 191 | */ |
192 | 192 | public function loop($dataToIterate,\Closure $builder) |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | * send |
227 | 227 | * |
228 | 228 | * @param $from |
229 | - * @param $property |
|
229 | + * @param string $property |
|
230 | 230 | * @return array |
231 | 231 | */ |
232 | 232 | public function setEntityAction($from,$property) |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php namespace Fenos\Notifynder\Builder; |
2 | 2 | |
3 | 3 | use Carbon\Carbon; |
4 | -use App; |
|
5 | 4 | use Fenos\Notifynder\Categories\NotifynderCategory; |
6 | 5 | use Fenos\Notifynder\Exceptions\NotificationBuilderException; |
7 | 6 | use Traversable; |
@@ -69,7 +69,7 @@ |
||
69 | 69 | * |
70 | 70 | * @param array $name |
71 | 71 | * @param $text |
72 | - * @return static |
|
72 | + * @return NotificationCategory |
|
73 | 73 | */ |
74 | 74 | public function add($name, $text) |
75 | 75 | { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * Find a group By name |
56 | 56 | * |
57 | - * @param $group_name |
|
57 | + * @param string $group_name |
|
58 | 58 | * @return mixed |
59 | 59 | * @throws \Fenos\Notifynder\Exceptions\NotifynderGroupNotFoundException |
60 | 60 | */ |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | * Check if a string with dots |
136 | 136 | * |
137 | 137 | * @param $name |
138 | - * @return bool |
|
138 | + * @return integer |
|
139 | 139 | */ |
140 | 140 | public function isStringWithDots($name) |
141 | 141 | { |
@@ -115,7 +115,7 @@ |
||
115 | 115 | } |
116 | 116 | |
117 | 117 | /** |
118 | - * @return mixed |
|
118 | + * @return Notification |
|
119 | 119 | */ |
120 | 120 | public function parse() |
121 | 121 | { |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php namespace Fenos\Notifynder\Models; |
2 | 2 | |
3 | 3 | use Config; |
4 | - |
|
5 | 4 | use Fenos\Notifynder\Models\Collection\NotifynderCollection; |
6 | 5 | use Fenos\Notifynder\Parse\NotifynderParse; |
7 | 6 | use Fenos\Notifynder\Translator\NotifynderTranslator; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * Set the entity for polymorphic |
34 | 34 | * |
35 | - * @param $name |
|
35 | + * @param string $name |
|
36 | 36 | * @return $this |
37 | 37 | */ |
38 | 38 | public function entity($name) |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * Find a notification by ID |
47 | 47 | * |
48 | 48 | * @param $notification_id |
49 | - * @return \Illuminate\Database\Eloquent\Collection|\Illuminate\Database\Eloquent\Model|static |
|
49 | + * @return \Fenos\Notifynder\Models\Notification |
|
50 | 50 | * @throws \Fenos\Notifynder\Exceptions\NotificationNotFoundException |
51 | 51 | */ |
52 | 52 | public function find($notification_id) |
@@ -124,8 +124,8 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @param $entity_id |
126 | 126 | * @param $number |
127 | - * @param $order |
|
128 | - * @return mixed |
|
127 | + * @param string $order |
|
128 | + * @return boolean |
|
129 | 129 | */ |
130 | 130 | public function deleteLimit($entity_id, $number, $order) |
131 | 131 | { |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * |
155 | 155 | * @param $to_id |
156 | 156 | * @param $limit |
157 | - * @param $paginate |
|
157 | + * @param boolean $paginate |
|
158 | 158 | * @return mixed |
159 | 159 | */ |
160 | 160 | public function getNotRead($to_id,$limit,$paginate) |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | * |
170 | 170 | * @param $to_id |
171 | 171 | * @param $limit |
172 | - * @param $paginate |
|
172 | + * @param boolean $paginate |
|
173 | 173 | * @return mixed |
174 | 174 | */ |
175 | 175 | public function getAll($to_id,$limit,$paginate) |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * Send single notification |
184 | 184 | * |
185 | 185 | * @param array $info |
186 | - * @return static |
|
186 | + * @return \Fenos\Notifynder\Models\Notification |
|
187 | 187 | */ |
188 | 188 | public function sendOne(array $info) |
189 | 189 | { |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * Save a single notification sent |
53 | 53 | * |
54 | 54 | * @param array $info |
55 | - * @return static |
|
55 | + * @return Notification |
|
56 | 56 | */ |
57 | 57 | public function sendSingle(array $info) |
58 | 58 | { |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * |
96 | 96 | * @param $to_id |
97 | 97 | * @param $numbers |
98 | - * @param $order |
|
98 | + * @param string $order |
|
99 | 99 | * @return mixed |
100 | 100 | */ |
101 | 101 | public function readLimit($to_id,$numbers, $order) |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php namespace Fenos\Notifynder\Notifications\Repositories; |
2 | 2 | |
3 | 3 | use Fenos\Notifynder\Models\Notification; |
4 | -use Fenos\Notifynder\Senders\StoreNotification; |
|
5 | 4 | use Illuminate\Database\DatabaseManager; |
6 | 5 | use Illuminate\Database\Connection; |
7 | 6 | use Illuminate\Database\Eloquent\Builder; |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | /** |
12 | 12 | * Getter for entity property |
13 | 13 | * |
14 | - * @param $entity |
|
14 | + * @param string $entity |
|
15 | 15 | * @return $this |
16 | 16 | */ |
17 | 17 | public function entity($entity) |
@@ -34,10 +34,10 @@ discard block |
||
34 | 34 | * with this method |
35 | 35 | * |
36 | 36 | * @param $query |
37 | - * @param $table_id |
|
38 | - * @param $table_type |
|
37 | + * @param string $table_id |
|
38 | + * @param string $table_type |
|
39 | 39 | * @param $table_id_value |
40 | - * @param $table_type_value |
|
40 | + * @param string $table_type_value |
|
41 | 41 | * @return mixed |
42 | 42 | */ |
43 | 43 | public function wherePolymorphic($table_id,$table_type,$table_id_value, $table_type_value, $query = null) |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * Define an entity when Notifynder is |
112 | 112 | * used Polymorpically |
113 | 113 | * |
114 | - * @param $name |
|
114 | + * @param string $name |
|
115 | 115 | * @return $this |
116 | 116 | */ |
117 | 117 | public function entity($name) |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * |
127 | 127 | * @param $name |
128 | 128 | * @param $text |
129 | - * @return static |
|
129 | + * @return Models\NotificationCategory |
|
130 | 130 | */ |
131 | 131 | public function addCategory($name,$text) |
132 | 132 | { |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * Send One notification |
173 | 173 | * |
174 | 174 | * @param array $info |
175 | - * @return mixed |
|
175 | + * @return Senders\SendOne |
|
176 | 176 | */ |
177 | 177 | public function sendOne(array $info) |
178 | 178 | { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * Given |
219 | 219 | * |
220 | 220 | * @param $to_id |
221 | - * @param $numbers |
|
221 | + * @param integer $numbers |
|
222 | 222 | * @param string $order |
223 | 223 | * @return mixed |
224 | 224 | */ |
@@ -259,9 +259,9 @@ discard block |
||
259 | 259 | * secified of the given entity |
260 | 260 | * |
261 | 261 | * @param $to_id |
262 | - * @param $number |
|
262 | + * @param integer $number |
|
263 | 263 | * @param string $order |
264 | - * @return mixed |
|
264 | + * @return boolean |
|
265 | 265 | */ |
266 | 266 | public function deleteLimit($to_id,$number,$order = "ASC") |
267 | 267 | { |