Completed
Push — develop ( 3bc019...611b53 )
by John
03:35
created
Alpha/Util/Email/EmailProviderFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,11 +63,11 @@
 block discarded – undo
63 63
      * A static method that attempts to return a EmailProviderInterface instance
64 64
      * based on the name of the provider class supplied.
65 65
      *
66
-     * @param $providerName The class name of the provider class (fully qualified).
66
+     * @param string $providerName The class name of the provider class (fully qualified).
67 67
      *
68 68
      * @throws \Alpha\Exception\IllegalArguementException
69 69
      *
70
-     * @return \Alpha\Util\Http\Email\EmailProviderInterface
70
+     * @return EmailProviderInterface|null
71 71
      *
72 72
      * @since 2.0
73 73
      */
Please login to merge, or discard this patch.
Alpha/Util/Http/Session/SessionProviderFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      * A static method that attempts to return a SessionProviderInterface instance
64 64
      * based on the name of the provider class supplied.
65 65
      *
66
-     * @param $providerName The class name of the provider class (fully qualified).
66
+     * @param string $providerName The class name of the provider class (fully qualified).
67 67
      *
68 68
      * @throws \Alpha\Exception\IllegalArguementException
69 69
      *
Please login to merge, or discard this patch.
Alpha/Util/Search/SearchProviderFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      * A static method that attempts to return a SearchProviderInterface instance
64 64
      * based on the name of the provider class supplied.
65 65
      *
66
-     * @param $providerName The class name of the provider class, should be fully-qualified.
66
+     * @param string $providerName The class name of the provider class, should be fully-qualified.
67 67
      *
68 68
      * @throws \Alpha\Exception\IllegalArguementException;
69 69
      *
Please login to merge, or discard this patch.
Alpha/Model/Type/DEnum.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@
 block discarded – undo
230 230
     /**
231 231
      * Getter for the name.
232 232
      *
233
-     * @return string
233
+     * @return SmallText
234 234
      *
235 235
      * @since 1.0
236 236
      */
Please login to merge, or discard this patch.
Alpha/Model/Type/Date.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     /**
244 244
      * Get the year part.
245 245
      *
246
-     * @return int
246
+     * @return string
247 247
      *
248 248
      * @since 1.0
249 249
      */
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     /**
256 256
      * Get the month part.
257 257
      *
258
-     * @return int
258
+     * @return string
259 259
      *
260 260
      * @since 1.0
261 261
      */
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     /**
268 268
      * Get the day part.
269 269
      *
270
-     * @return int
270
+     * @return string
271 271
      *
272 272
      * @since 1.0
273 273
      */
Please login to merge, or discard this patch.
Alpha/Model/ActiveRecord.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Alpha\Model\Type\Integer;
7 7
 use Alpha\Model\Type\Timestamp;
8 8
 use Alpha\Model\Type\TypeInterface;
9
-use Alpha\Model\Type\Enum;
10 9
 use Alpha\Model\Type\Relation;
11 10
 use Alpha\Util\Config\ConfigProvider;
12 11
 use Alpha\Util\Logging\Logger;
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1156,7 +1156,7 @@  discard block
 block discarded – undo
1156 1156
     /**
1157 1157
      * Gets the ID for the object in zero-padded format (same as getID()).
1158 1158
      *
1159
-     * @return int 11 digit zero-padded ID value.
1159
+     * @return string 11 digit zero-padded ID value.
1160 1160
      *
1161 1161
      * @since 1.0
1162 1162
      */
@@ -2153,7 +2153,7 @@  discard block
 block discarded – undo
2153 2153
     /**
2154 2154
      * Starts a new database transaction.
2155 2155
      *
2156
-     * @param $Record The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed.
2156
+     * @param ActiveRecord $Record The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed.
2157 2157
      *
2158 2158
      * @since 1.0
2159 2159
      *
@@ -2186,7 +2186,7 @@  discard block
 block discarded – undo
2186 2186
     /**
2187 2187
      * Commits the current database transaction.
2188 2188
      *
2189
-     * @param $Record The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed.
2189
+     * @param ActiveRecord $Record The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed.
2190 2190
      *
2191 2191
      * @since 1.0
2192 2192
      *
@@ -2219,7 +2219,7 @@  discard block
 block discarded – undo
2219 2219
     /**
2220 2220
      * Aborts the current database transaction.
2221 2221
      *
2222
-     * @param $Record The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed.
2222
+     * @param ActiveRecord $Record The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed.
2223 2223
      *
2224 2224
      * @since 1.0
2225 2225
      *
@@ -2390,7 +2390,7 @@  discard block
 block discarded – undo
2390 2390
     /**
2391 2391
      * Check to see if an attribute exists on the record.
2392 2392
      *
2393
-     * @param $attribute The attribute name.
2393
+     * @param string $attribute The attribute name.
2394 2394
      *
2395 2395
      * @return bool
2396 2396
      *
Please login to merge, or discard this patch.
Alpha/Util/File/FileUtils.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
      * @param string $sourceDir    The path to the source directory.
542 542
      * @param string $fileList     The HTML list of files generated (pass by reference).
543 543
      * @param int    $fileCount    The current file count (used in recursive calls).
544
-     * @param array  $excludeFiles An array of file names to exclude from the list rendered.
544
+     * @param string[]  $excludeFiles An array of file names to exclude from the list rendered.
545 545
      *
546 546
      * @return int The current filecount for the directory.
547 547
      *
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
      * Recursively deletes the contents of the directory indicated (the directory itself is not deleted).
579 579
      *
580 580
      * @param string $sourceDir    The path to the source directory.
581
-     * @param array  $excludeFiles An array of file names to exclude from the deletion.
581
+     * @param string[]  $excludeFiles An array of file names to exclude from the deletion.
582 582
      *
583 583
      * @throws \Alpha\Exception\AlphaException
584 584
      *
Please login to merge, or discard this patch.
Alpha/Util/Extension/Markdown.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         if (isset($codeTypeTag[0])) {
76 76
             $start = mb_strpos($codeTypeTag[0], '[');
77 77
             $end = mb_strpos($codeTypeTag[0], ']');
78
-            $language = mb_substr($codeTypeTag[0], $start + 1, $end - ($start + 1));
78
+            $language = mb_substr($codeTypeTag[0], $start+1, $end-($start+1));
79 79
         } else {
80 80
             // will use php as a default language type when none is provided
81 81
             $language = 'php';
@@ -106,11 +106,11 @@  discard block
 block discarded – undo
106 106
     {
107 107
         $config = ConfigProvider::getInstance();
108 108
 
109
-        $whole_match    =  $matches[1];
110
-        $link_text      =  $this->runSpanGamut($matches[2]);
111
-        $url            =  $matches[3] == '' ? $matches[4] : $matches[3];
112
-        $title          =& $matches[7];
113
-        $attr  = $this->doExtraAttributes("a", $dummy =& $matches[8]);
109
+        $whole_match    = $matches[1];
110
+        $link_text      = $this->runSpanGamut($matches[2]);
111
+        $url            = $matches[3] == '' ? $matches[4] : $matches[3];
112
+        $title          = & $matches[7];
113
+        $attr = $this->doExtraAttributes("a", $dummy = & $matches[8]);
114 114
 
115 115
         $external = false;
116 116
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $result = "<a href=\"$url\"";
133 133
         if (isset($title)) {
134 134
             $title = $this->encodeAttribute($title);
135
-            $result .=  " title=\"$title\"";
135
+            $result .= " title=\"$title\"";
136 136
         }
137 137
         if ($external) {
138 138
             $result .= " target=\"$url\"";
@@ -214,6 +214,6 @@  discard block
 block discarded – undo
214 214
         $text .= "</tbody>\n";
215 215
         $text .= "</table>";
216 216
         
217
-        return $this->hashBlock($text) . "\n";
217
+        return $this->hashBlock($text)."\n";
218 218
     }
219 219
 }
Please login to merge, or discard this patch.
Alpha/Util/Helper/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@
 block discarded – undo
379 379
      */
380 380
     public static function isBase64($value)
381 381
     {
382
-        return (bool) preg_match('/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/', $value);
382
+        return (bool)preg_match('/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/', $value);
383 383
     }
384 384
 
385 385
     /**
Please login to merge, or discard this patch.