Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 917c33f

Browse files
authored
Apply fixes from StyleCI (#149)
1 parent 3be7d16 commit 917c33f

File tree

85 files changed

+128
-53
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+128
-53
lines changed

app/Console/Commands/ProBINDImportZone.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ private function ensureFQDN(string $domain): string
8181
*
8282
* @param string $domain
8383
* @param string $filename
84-
*
8584
* @return \Badcow\DNS\Zone
85+
*
8686
* @throws \Badcow\DNS\Parser\ParseException
8787
*/
8888
private function parseFile(string $domain, string $filename): \Badcow\DNS\Zone

app/Console/Commands/ProBINDPushZones.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

@@ -83,7 +84,6 @@ public function handle(): int
8384
* Creates a file with the zone definitions.
8485
*
8586
* @param Zone $zone
86-
*
8787
* @return bool
8888
*/
8989
public function generateZoneFileForZone(Zone $zone): bool
@@ -170,7 +170,6 @@ public function handleServer(Server $server): bool
170170
* Create a file with DNS server configuration.
171171
*
172172
* @param Server $server
173-
*
174173
* @return bool
175174
*/
176175
public function generateConfigFileForServer(Server $server): bool
@@ -200,7 +199,6 @@ public function generateConfigFileForServer(Server $server): bool
200199
* Returns the template for rendering configuration file.
201200
*
202201
* @param Server $server
203-
*
204202
* @return string
205203
*/
206204
public function getTemplateForConfigFile(Server $server): string

app/Console/Kernel.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

app/Helpers/Helper.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

@@ -22,10 +23,9 @@ class Helper
2223
/**
2324
* Helper to transform a bool to a label active / inactive.
2425
*
25-
* @param bool $condition This is the bool value to be mapped.
26-
* @param string|null $text This text will be concatenate to label. Optional.
27-
* @param array|null $mapStatusToLabel The map to transform bool to label. Optional.
28-
*
26+
* @param bool $condition This is the bool value to be mapped.
27+
* @param string|null $text This text will be concatenate to label. Optional.
28+
* @param array|null $mapStatusToLabel The map to transform bool to label. Optional.
2929
* @return string
3030
*/
3131
public static function addStatusLabel(bool $condition, string $text = null, array $mapStatusToLabel = null): string

app/Helpers/TimeHelper.php

+4-5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2017 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

@@ -22,8 +23,7 @@ class TimeHelper
2223
/**
2324
* Converts a BIND-style timeout(1D, 2H, 15M) to seconds.
2425
*
25-
* @param string $time Time to convert.
26-
*
26+
* @param string $time Time to convert.
2727
* @return int
2828
*/
2929
public static function parseToSeconds(string $time): int
@@ -53,9 +53,8 @@ public static function parseToSeconds(string $time): int
5353
/**
5454
* This function calculates and translate a character to seconds.
5555
*
56-
* @param string $modifier The modifier char: Week, Day, Minute, Month, Second
57-
* @param int $value The amount of modifier.
58-
*
56+
* @param string $modifier The modifier char: Week, Day, Minute, Month, Second
57+
* @param int $value The amount of modifier.
5958
* @return int
6059
*/
6160
private static function translateCharToSeconds(string $modifier, int $value = 1): int

app/Http/Kernel.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

app/Http/Middleware/OnlyAjax.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2017 - 2020 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/ssham
1617
*/
1718

app/Http/Middleware/PreventRequestsDuringMaintenance.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2017 - 2020 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/ssham
1617
*/
1718

app/Http/Middleware/RedirectIfAuthenticated.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2017 - 2020 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/ssham
1617
*/
1718

app/Http/Middleware/TrimStrings.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2017 - 2020 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/ssham
1617
*/
1718

app/Http/Middleware/TrustProxies.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2017 - 2020 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/ssham
1617
*/
1718

app/Http/Middleware/VerifyCsrfToken.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2017 - 2020 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/ssham
1617
*/
1718

app/Http/Requests/RecordCreateRequest.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

app/Http/Requests/RecordUpdateRequest.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

app/Http/Requests/Request.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

app/Http/Requests/ServerCreateRequest.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

app/Http/Requests/ServerUpdateRequest.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

app/Http/Requests/SettingsUpdateRequest.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

app/Http/Requests/ZoneCreateRequest.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

app/Http/Requests/ZoneRequest.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2017 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

app/Http/Requests/ZoneUpdateRequest.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

app/Models/ResourceRecord.php

+8-7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

@@ -31,13 +32,13 @@
3132
*
3233
* Valid records types are defined on DNSHelper Class.
3334
*
34-
* @property int $id The object unique id.
35-
* @property string $name The name of the record.
36-
* @property int $ttl The custom TTL value for this record.
37-
* @property ResourceRecordType $type The type of record, must be one of ResourceRecord::$validRecordTypes
38-
* @property int $priority The preference value for MX records.
39-
* @property string $data The data value for this record.
40-
* @property Zone $zone The zone object where this record belongs to.
35+
* @property int $id The object unique id.
36+
* @property string $name The name of the record.
37+
* @property int $ttl The custom TTL value for this record.
38+
* @property ResourceRecordType $type The type of record, must be one of ResourceRecord::$validRecordTypes
39+
* @property int $priority The preference value for MX records.
40+
* @property string $data The data value for this record.
41+
* @property Zone $zone The zone object where this record belongs to.
4142
*
4243
* @link https://www.ietf.org/rfc/rfc1035.txt
4344
*/

app/Models/Server.php

+7-6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

@@ -29,12 +30,12 @@
2930
/**
3031
* Server model.
3132
*
32-
* @property int $id The object unique id.
33-
* @property string $hostname The hostname of this server. Will be used on NS records.
34-
* @property string $ip_address The IP address of this server. Will be used for glue records.
35-
* @property ServerType $type The type of this server. Could be 'master' or 'slave'.
36-
* @property bool $push_updates This flag determines if this server must be pushed with zone files.
37-
* @property bool $ns_record This flag determines if this server will be included as NS on zone files.
33+
* @property int $id The object unique id.
34+
* @property string $hostname The hostname of this server. Will be used on NS records.
35+
* @property string $ip_address The IP address of this server. Will be used for glue records.
36+
* @property ServerType $type The type of this server. Could be 'master' or 'slave'.
37+
* @property bool $push_updates This flag determines if this server must be pushed with zone files.
38+
* @property bool $ns_record This flag determines if this server will be included as NS on zone files.
3839
* @property bool active This flags determines if this server is active or inactive.
3940
*/
4041
class Server extends Model

app/Models/User.php

+7-6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

@@ -26,12 +27,12 @@
2627
/**
2728
* User model, represents a ProBIND user.
2829
*
29-
* @property int $id The object unique id.
30-
* @property string $username The username that represents this user.
31-
* @property string $name The name of this user.
32-
* @property string $email The email address of this user.
33-
* @property string $password Encrypted password of this user.
34-
* @property bool $active The status of this user.
30+
* @property int $id The object unique id.
31+
* @property string $username The username that represents this user.
32+
* @property string $name The name of this user.
33+
* @property string $email The email address of this user.
34+
* @property string $password Encrypted password of this user.
35+
* @property bool $active The status of this user.
3536
*/
3637
class User extends Authenticatable
3738
{

app/Models/Zone.php

+14-14
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @author Paco Orozco <[email protected]>
1010
* @copyright 2016 Paco Orozco
1111
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
12+
*
1213
* @link https://github.com/pacoorozco/probind
1314
*/
1415

@@ -35,20 +36,20 @@
3536
* The Zone model contains all DNS information of a zone / domain name.
3637
* Has one-to-many relationship in order to associate ResourceRecord models for Master Zones.
3738
*
38-
* @property int $id The object unique id.
39-
* @property string $domain The domain name that represents this zone.
40-
* @property int $serial The serial number of this zone.
41-
* @property string $server The IP address of the master server. If it's set to null, this zone is a primary zone.
42-
* @property bool $reverse_zone This flag determines if this zone is a .IN-ADDR.ARPA. zone.
43-
* @property bool $custom_settings This flag determines if this zone has custom timers.
44-
* @property int $refresh Custom Refresh time value.
45-
* @property int $retry Custom Retry time value.
46-
* @property int $expire Custom Expire time value.
47-
* @property int $negative_ttl Custom Negative TTL value.
48-
* @property int $default_ttl Custom TTL value.
39+
* @property int $id The object unique id.
40+
* @property string $domain The domain name that represents this zone.
41+
* @property int $serial The serial number of this zone.
42+
* @property string $server The IP address of the master server. If it's set to null, this zone is a primary zone.
43+
* @property bool $reverse_zone This flag determines if this zone is a .IN-ADDR.ARPA. zone.
44+
* @property bool $custom_settings This flag determines if this zone has custom timers.
45+
* @property int $refresh Custom Refresh time value.
46+
* @property int $retry Custom Retry time value.
47+
* @property int $expire Custom Expire time value.
48+
* @property int $negative_ttl Custom Negative TTL value.
49+
* @property int $default_ttl Custom TTL value.
4950
* @property string $primaryNameServer
5051
* @property string $hostmasterEmail
51-
* @property bool $has_modifications This flag determines if this zone has been pending changes to sync.
52+
* @property bool $has_modifications This flag determines if this zone has been pending changes to sync.
5253
*
5354
* @link https://www.ietf.org/rfc/rfc1035.txt
5455
* @link https://www.ietf.org/rfc/rfc2782.txt
@@ -184,8 +185,7 @@ public function isPrimary(): bool
184185
* This generates a new serial, based on the often used format YYYYMMDDXX where XX is an ascending serial, allowing
185186
* up to 100 edits per day. After that the serial wraps into the next day and it still works.
186187
*
187-
* @param int $currentSerialNumber
188-
*
188+
* @param int $currentSerialNumber
189189
* @return int
190190
*/
191191
public static function calculateNewSerialNumber(int $currentSerialNumber = 0): int

app/Providers/AppServiceProvider.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

app/Providers/AuthServiceProvider.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

app/Providers/BroadcastServiceProvider.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2017 - 2020 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/ssham
1617
*/
1718

app/Providers/EventServiceProvider.php

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @author Paco Orozco <[email protected]>
1313
* @copyright 2016 Paco Orozco
1414
* @license GPL-3.0 <http://spdx.org/licenses/GPL-3.0>
15+
*
1516
* @link https://github.com/pacoorozco/probind
1617
*/
1718

0 commit comments

Comments
 (0)