| @@ -6,9 +6,7 @@ | ||
| 6 | 6 | use Fenos\Notifynder\Exceptions\NotificationNotFoundException; | 
| 7 | 7 | use Fenos\Notifynder\Models\Notification; | 
| 8 | 8 | use Fenos\Notifynder\Models\NotifynderCollection; | 
| 9 | -use Illuminate\Database\Eloquent\Collection; | |
| 10 | 9 | use PhpSpec\ObjectBehavior; | 
| 11 | -use Prophecy\Argument; | |
| 12 | 10 | |
| 13 | 11 | class NotificationManagerSpec extends ObjectBehavior | 
| 14 | 12 |  { | 
| @@ -7,7 +7,6 @@ | ||
| 7 | 7 | use Fenos\Notifynder\Translator\Compiler; | 
| 8 | 8 | use Illuminate\Contracts\Config\Repository; | 
| 9 | 9 | use PhpSpec\ObjectBehavior; | 
| 10 | -use Prophecy\Argument; | |
| 11 | 10 | |
| 12 | 11 | class TranslatorManagerSpec extends ObjectBehavior | 
| 13 | 12 |  { | 
| @@ -78,7 +78,7 @@ discard block | ||
| 78 | 78 | /** | 
| 79 | 79 | * Set the url of the notification | 
| 80 | 80 | * | 
| 81 | - * @param $url | |
| 81 | + * @param string $url | |
| 82 | 82 | * @return $this | 
| 83 | 83 | */ | 
| 84 | 84 | public function url($url) | 
| @@ -146,7 +146,7 @@ discard block | ||
| 146 | 146 | * the generation of your array | 
| 147 | 147 | * | 
| 148 | 148 | * | 
| 149 | - * @param callable|Closure $closure | |
| 149 | + * @param Closure $closure | |
| 150 | 150 | * @return array|false | 
| 151 | 151 | * @throws NotificationBuilderException | 
| 152 | 152 | */ | 
| @@ -246,7 +246,7 @@ discard block | ||
| 246 | 246 | * send | 
| 247 | 247 | * | 
| 248 | 248 | * @param $from | 
| 249 | - * @param $property | |
| 249 | + * @param string $property | |
| 250 | 250 | * @return array | 
| 251 | 251 | */ | 
| 252 | 252 | protected function setEntityAction($from, $property) | 
| @@ -31,7 +31,7 @@ discard block | ||
| 31 | 31 | /** | 
| 32 | 32 | * Find a category by name | 
| 33 | 33 | * | 
| 34 | - * @param $name | |
| 34 | + * @param string $name | |
| 35 | 35 | * @throws CategoryNotFoundException | 
| 36 | 36 | * @return mixed | 
| 37 | 37 | */ | 
| @@ -91,7 +91,7 @@ discard block | ||
| 91 | 91 | * | 
| 92 | 92 | * @param array $name | 
| 93 | 93 | * @param $text | 
| 94 | - * @return \Fenos\Notifynder\Models\NotificationCategory | |
| 94 | + * @return CategoryDB | |
| 95 | 95 | */ | 
| 96 | 96 | public function add($name, $text) | 
| 97 | 97 |      { | 
| @@ -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 |      { | 
| @@ -141,7 +141,7 @@ | ||
| 141 | 141 | * Check if a string with dots | 
| 142 | 142 | * | 
| 143 | 143 | * @param $name | 
| 144 | - * @return bool | |
| 144 | + * @return integer | |
| 145 | 145 | */ | 
| 146 | 146 | protected function isStringWithDots($name) | 
| 147 | 147 |      { | 
| @@ -139,7 +139,7 @@ | ||
| 139 | 139 | |
| 140 | 140 | /** | 
| 141 | 141 | * @param $value | 
| 142 | - * @return mixed|string | |
| 142 | + * @return ExtraParams | |
| 143 | 143 | */ | 
| 144 | 144 | public function getExtraAttribute($value) | 
| 145 | 145 |      { | 
| @@ -53,7 +53,7 @@ discard block | ||
| 53 | 53 | * Find a notification by ID | 
| 54 | 54 | * | 
| 55 | 55 | * @param $notification_id | 
| 56 | - * @return NotificationModel|\Illuminate\Database\Eloquent\Model|static | |
| 56 | + * @return NotificationModel | |
| 57 | 57 | * @throws \Fenos\Notifynder\Exceptions\NotificationNotFoundException | 
| 58 | 58 | */ | 
| 59 | 59 | public function find($notification_id) | 
| @@ -89,7 +89,7 @@ discard block | ||
| 89 | 89 | * @param $to_id | 
| 90 | 90 | * @param $numbers | 
| 91 | 91 | * @param string $order | 
| 92 | - * @return mixed | |
| 92 | + * @return integer | |
| 93 | 93 | */ | 
| 94 | 94 | public function readLimit($to_id, $numbers, $order = "ASC") | 
| 95 | 95 |      { | 
| @@ -101,7 +101,7 @@ discard block | ||
| 101 | 101 | * given entity | 
| 102 | 102 | * | 
| 103 | 103 | * @param $to_id | 
| 104 | - * @return Number | |
| 104 | + * @return integer | |
| 105 | 105 | */ | 
| 106 | 106 | public function readAll($to_id) | 
| 107 | 107 |      { | 
| @@ -128,7 +128,7 @@ discard block | ||
| 128 | 128 | * @param $entity_id | 
| 129 | 129 | * @param $number | 
| 130 | 130 | * @param $order | 
| 131 | - * @return mixed | |
| 131 | + * @return integer | |
| 132 | 132 | */ | 
| 133 | 133 | public function deleteLimit($entity_id, $number, $order = 'asc') | 
| 134 | 134 |      { | 
| @@ -248,7 +248,7 @@ discard block | ||
| 248 | 248 | * Send single notification | 
| 249 | 249 | * | 
| 250 | 250 | * @param array $info | 
| 251 | - * @return static | |
| 251 | + * @return NotificationModel | |
| 252 | 252 | */ | 
| 253 | 253 | public function sendOne(array $info) | 
| 254 | 254 |      { | 
| @@ -157,7 +157,7 @@ discard block | ||
| 157 | 157 | * | 
| 158 | 158 | * @param $name | 
| 159 | 159 | * @param $text | 
| 160 | - * @return static | |
| 160 | + * @return Models\NotificationCategory | |
| 161 | 161 | */ | 
| 162 | 162 | public function addCategory($name, $text) | 
| 163 | 163 |      { | 
| @@ -180,7 +180,7 @@ discard block | ||
| 180 | 180 | * Send notifications | 
| 181 | 181 | * Both multiple and single | 
| 182 | 182 | * | 
| 183 | - * @param array $info | |
| 183 | + * @param string[] $info | |
| 184 | 184 | * @return mixed | 
| 185 | 185 | */ | 
| 186 | 186 | public function send($info = []) | 
| @@ -208,7 +208,7 @@ discard block | ||
| 208 | 208 | * Send One notification | 
| 209 | 209 | * | 
| 210 | 210 | * @param array $info | 
| 211 | - * @return mixed | |
| 211 | + * @return Senders\SendOne | |
| 212 | 212 | */ | 
| 213 | 213 | public function sendOne($info = []) | 
| 214 | 214 |      { | 
| @@ -260,7 +260,7 @@ discard block | ||
| 260 | 260 | * Given | 
| 261 | 261 | * | 
| 262 | 262 | * @param $to_id | 
| 263 | - * @param $numbers | |
| 263 | + * @param integer $numbers | |
| 264 | 264 | * @param string $order | 
| 265 | 265 | * @return mixed | 
| 266 | 266 | */ | 
| @@ -301,7 +301,7 @@ discard block | ||
| 301 | 301 | * secified of the given entity | 
| 302 | 302 | * | 
| 303 | 303 | * @param $to_id | 
| 304 | - * @param $number | |
| 304 | + * @param integer $number | |
| 305 | 305 | * @param string $order | 
| 306 | 306 | * @return mixed | 
| 307 | 307 | */ |