@@ -33,6 +33,7 @@ discard block |
||
| 33 | 33 | * |
| 34 | 34 | * @throws FileNotFoundException When originFile doesn't exist |
| 35 | 35 | * @throws IOException When copy fails |
| 36 | + * @return void |
|
| 36 | 37 | */ |
| 37 | 38 | public function copy($originFile, $targetFile, $override = false); |
| 38 | 39 | |
@@ -43,13 +44,14 @@ discard block |
||
| 43 | 44 | * @param int $mode The directory mode |
| 44 | 45 | * |
| 45 | 46 | * @throws IOException On any directory creation failure |
| 47 | + * @return void |
|
| 46 | 48 | */ |
| 47 | 49 | public function mkdir($dirs, $mode = 0777); |
| 48 | 50 | |
| 49 | 51 | /** |
| 50 | 52 | * Checks the existence of files or directories. |
| 51 | 53 | * |
| 52 | - * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to check |
|
| 54 | + * @param string $files A filename, an array of files, or a \Traversable instance to check |
|
| 53 | 55 | * |
| 54 | 56 | * @return bool true if the file exists, false otherwise |
| 55 | 57 | */ |
@@ -63,6 +65,7 @@ discard block |
||
| 63 | 65 | * @param int $atime The access time as a Unix timestamp |
| 64 | 66 | * |
| 65 | 67 | * @throws IOException When touch fails |
| 68 | + * @return void |
|
| 66 | 69 | */ |
| 67 | 70 | public function touch($files, $time = null, $atime = null); |
| 68 | 71 | |
@@ -72,6 +75,7 @@ discard block |
||
| 72 | 75 | * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to remove |
| 73 | 76 | * |
| 74 | 77 | * @throws IOException When removal fails |
| 78 | + * @return void |
|
| 75 | 79 | */ |
| 76 | 80 | public function remove($files); |
| 77 | 81 | |
@@ -84,6 +88,7 @@ discard block |
||
| 84 | 88 | * @param bool $recursive Whether change the mod recursively or not |
| 85 | 89 | * |
| 86 | 90 | * @throws IOException When the change fail |
| 91 | + * @return void |
|
| 87 | 92 | */ |
| 88 | 93 | public function chmod($files, $mode, $umask = 0000, $recursive = false); |
| 89 | 94 | |
@@ -95,6 +100,7 @@ discard block |
||
| 95 | 100 | * @param bool $recursive Whether change the owner recursively or not |
| 96 | 101 | * |
| 97 | 102 | * @throws IOException When the change fail |
| 103 | + * @return void |
|
| 98 | 104 | */ |
| 99 | 105 | public function chown($files, $user, $recursive = false); |
| 100 | 106 | |
@@ -106,6 +112,7 @@ discard block |
||
| 106 | 112 | * @param bool $recursive Whether change the group recursively or not |
| 107 | 113 | * |
| 108 | 114 | * @throws IOException When the change fail |
| 115 | + * @return void |
|
| 109 | 116 | */ |
| 110 | 117 | public function chgrp($files, $group, $recursive = false); |
| 111 | 118 | |
@@ -118,6 +125,7 @@ discard block |
||
| 118 | 125 | * |
| 119 | 126 | * @throws IOException When target file or directory already exists |
| 120 | 127 | * @throws IOException When origin cannot be renamed |
| 128 | + * @return void |
|
| 121 | 129 | */ |
| 122 | 130 | public function rename($origin, $target, $overwrite = false); |
| 123 | 131 | |
@@ -129,6 +137,7 @@ discard block |
||
| 129 | 137 | * @param bool $copyOnWindows Whether to copy files if on Windows |
| 130 | 138 | * |
| 131 | 139 | * @throws IOException When symlink fails |
| 140 | + * @return void |
|
| 132 | 141 | */ |
| 133 | 142 | public function symlink($originDir, $targetDir, $copyOnWindows = false); |
| 134 | 143 | |
@@ -145,6 +154,7 @@ discard block |
||
| 145 | 154 | * - $options['delete'] Whether to delete files that are not in the source directory (defaults to false) |
| 146 | 155 | * |
| 147 | 156 | * @throws IOException When file type is unknown |
| 157 | + * @return void |
|
| 148 | 158 | */ |
| 149 | 159 | public function mirror($originDir, $targetDir, \Traversable $iterator = null, $options = []); |
| 150 | 160 | |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * @param array $themes |
|
| 40 | + * @param ThemeInterface[] $themes |
|
| 41 | 41 | * |
| 42 | 42 | * @return array |
| 43 | 43 | */ |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | /** |
| 54 | 54 | * @param string $path |
| 55 | 55 | * |
| 56 | - * @return array |
|
| 56 | + * @return \Symfony\Component\Finder\Finder |
|
| 57 | 57 | */ |
| 58 | 58 | private function getFiles($path) |
| 59 | 59 | { |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | * @param string $email |
| 134 | 134 | * @param string $password |
| 135 | 135 | * @param bool $enabled |
| 136 | - * @param array $securityRoles |
|
| 136 | + * @param string[] $securityRoles |
|
| 137 | 137 | * |
| 138 | 138 | * @return UserInterface |
| 139 | 139 | */ |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | /** |
| 29 | 29 | * Gets the value of currentPassword. |
| 30 | 30 | * |
| 31 | - * @return mixed |
|
| 31 | + * @return string |
|
| 32 | 32 | */ |
| 33 | 33 | public function getCurrentPassword() |
| 34 | 34 | { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * Gets the value of newPassword. |
| 54 | 54 | * |
| 55 | - * @return mixed |
|
| 55 | + * @return string |
|
| 56 | 56 | */ |
| 57 | 57 | public function getNewPassword() |
| 58 | 58 | { |
@@ -287,6 +287,8 @@ discard block |
||
| 287 | 287 | |
| 288 | 288 | /** |
| 289 | 289 | * @Given /^I fill in the (billing|shipping) address to (.+)$/ |
| 290 | + * @param string $type |
|
| 291 | + * @param string $country |
|
| 290 | 292 | */ |
| 291 | 293 | public function iFillInCheckoutAddress($type, $country) |
| 292 | 294 | { |
@@ -312,6 +314,9 @@ discard block |
||
| 312 | 314 | $this->iFillInAddressFields('sylius_address', $country); |
| 313 | 315 | } |
| 314 | 316 | |
| 317 | + /** |
|
| 318 | + * @param string $base |
|
| 319 | + */ |
|
| 315 | 320 | protected function iFillInAddressFields($base, $country) |
| 316 | 321 | { |
| 317 | 322 | $this->fillField($base.'[firstName]', 'John'); |
@@ -324,6 +329,7 @@ discard block |
||
| 324 | 329 | |
| 325 | 330 | /** |
| 326 | 331 | * @Given /^I select the "(?P<field>([^""]|\\")*)" radio button$/ |
| 332 | + * @param string $field |
|
| 327 | 333 | */ |
| 328 | 334 | public function iSelectTheRadioButton($field) |
| 329 | 335 | { |
@@ -740,6 +746,9 @@ discard block |
||
| 740 | 746 | $this->assertSession()->elementContains('css', '#enabled', 'yes'); |
| 741 | 747 | } |
| 742 | 748 | |
| 749 | + /** |
|
| 750 | + * @param string $route |
|
| 751 | + */ |
|
| 743 | 752 | private function assertRoute($route) |
| 744 | 753 | { |
| 745 | 754 | $this->assertSession()->addressEquals($this->generatePageUrl($route)); |
@@ -166,6 +166,10 @@ |
||
| 166 | 166 | return $this->redirectToIndex(); |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | + /** |
|
| 170 | + * @param string $type |
|
| 171 | + * @param string $message |
|
| 172 | + */ |
|
| 169 | 173 | protected function addFlash($type, $message) |
| 170 | 174 | { |
| 171 | 175 | $translator = $this->get('translator'); |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | /** |
| 127 | 127 | * Returns all zone types available. |
| 128 | 128 | * |
| 129 | - * @return array of self::TYPE_* |
|
| 129 | + * @return string[] of self::TYPE_* |
|
| 130 | 130 | */ |
| 131 | 131 | public static function getTypes() |
| 132 | 132 | { |
@@ -32,6 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @param string $name |
| 35 | + * @return void |
|
| 35 | 36 | */ |
| 36 | 37 | public function setName($name); |
| 37 | 38 | |
@@ -42,6 +43,7 @@ discard block |
||
| 42 | 43 | |
| 43 | 44 | /** |
| 44 | 45 | * @param string $type |
| 46 | + * @return void |
|
| 45 | 47 | */ |
| 46 | 48 | public function setType($type); |
| 47 | 49 | |
@@ -52,6 +54,7 @@ discard block |
||
| 52 | 54 | |
| 53 | 55 | /** |
| 54 | 56 | * @param string $scope |
| 57 | + * @return void |
|
| 55 | 58 | */ |
| 56 | 59 | public function setScope($scope); |
| 57 | 60 | |
@@ -61,7 +64,8 @@ discard block |
||
| 61 | 64 | public function getMembers(); |
| 62 | 65 | |
| 63 | 66 | /** |
| 64 | - * @param Collection|ZoneMemberInterface[] $members |
|
| 67 | + * @param Collection $members |
|
| 68 | + * @return void |
|
| 65 | 69 | */ |
| 66 | 70 | public function setMembers(Collection $members); |
| 67 | 71 | |
@@ -72,11 +76,13 @@ discard block |
||
| 72 | 76 | |
| 73 | 77 | /** |
| 74 | 78 | * @param ZoneMemberInterface $member |
| 79 | + * @return void |
|
| 75 | 80 | */ |
| 76 | 81 | public function addMember(ZoneMemberInterface $member); |
| 77 | 82 | |
| 78 | 83 | /** |
| 79 | 84 | * @param ZoneMemberInterface $member |
| 85 | + * @return void |
|
| 80 | 86 | */ |
| 81 | 87 | public function removeMember(ZoneMemberInterface $member); |
| 82 | 88 | |