Passed
Push — master ( 420731...189c3f )
by Sebastian
02:15
created
src/ConvertHelper/StringMatch.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,19 +33,19 @@
 block discarded – undo
33 33
         $this->match = $matchedString;
34 34
     }
35 35
     
36
-   /**
37
-    * The zero-based start position of the string in the haystack.
38
-    * @return int
39
-    */
36
+    /**
37
+     * The zero-based start position of the string in the haystack.
38
+     * @return int
39
+     */
40 40
     public function getPosition() : int
41 41
     {
42 42
         return $this->position;
43 43
     }
44 44
     
45
-   /**
46
-    * The exact string that was matched, respecting the case as found in needle.
47
-    * @return string
48
-    */
45
+    /**
46
+     * The exact string that was matched, respecting the case as found in needle.
47
+     * @return string
48
+     */
49 49
     public function getMatchedString() : string
50 50
     {
51 51
         return $this->match;
Please login to merge, or discard this patch.
src/XMLHelper/SimpleXML/Error.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
 {
7 7
     protected $xml;
8 8
     
9
-   /**
10
-    * @var  \LibXMLError
11
-    */
9
+    /**
10
+     * @var  \LibXMLError
11
+     */
12 12
     protected $nativeError;
13 13
     
14 14
     public function __construct(XMLHelper_SimpleXML $xml, \LibXMLError $nativeError)
Please login to merge, or discard this patch.
src/XMLHelper/Converter.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -41,14 +41,14 @@  discard block
 block discarded – undo
41 41
 {
42 42
     const ERROR_FAILED_CONVERTING_TO_JSON = 37901;
43 43
     
44
-   /**
45
-    * @var \SimpleXMLElement
46
-    */
44
+    /**
45
+     * @var \SimpleXMLElement
46
+     */
47 47
     protected $xml;
48 48
     
49
-   /**
50
-    * @var string
51
-    */
49
+    /**
50
+     * @var string
51
+     */
52 52
     protected $json;
53 53
     
54 54
     protected function __construct(\SimpleXMLElement $element)
@@ -56,24 +56,24 @@  discard block
 block discarded – undo
56 56
         $this->xml = $element;
57 57
     }
58 58
     
59
-   /**
60
-    * Factory method: creates a converter from an XML file on disk.
61
-    * 
62
-    * @param string $path
63
-    * @return \AppUtils\XMLHelper_Converter
64
-    */
59
+    /**
60
+     * Factory method: creates a converter from an XML file on disk.
61
+     * 
62
+     * @param string $path
63
+     * @return \AppUtils\XMLHelper_Converter
64
+     */
65 65
     public static function fromFile(string $path)
66 66
     {
67 67
         $xmlString = file_get_contents($path);
68 68
         return self::fromString($xmlString);
69 69
     }
70 70
  
71
-   /**
72
-    * Factory method: creates a converter from an XML string.
73
-    * 
74
-    * @param string $xmlString
75
-    * @return \AppUtils\XMLHelper_Converter
76
-    */
71
+    /**
72
+     * Factory method: creates a converter from an XML string.
73
+     * 
74
+     * @param string $xmlString
75
+     * @return \AppUtils\XMLHelper_Converter
76
+     */
77 77
     public static function fromString(string $xmlString)
78 78
     {
79 79
         $element = new \SimpleXMLElement($xmlString);
@@ -81,36 +81,36 @@  discard block
 block discarded – undo
81 81
         return self::fromElement($element);
82 82
     }
83 83
     
84
-   /**
85
-    * Factory method: creates a converter from an existing SimpleXMLElement instance.
86
-    * 
87
-    * @param \SimpleXMLElement $element
88
-    * @return \AppUtils\XMLHelper_Converter
89
-    */
84
+    /**
85
+     * Factory method: creates a converter from an existing SimpleXMLElement instance.
86
+     * 
87
+     * @param \SimpleXMLElement $element
88
+     * @return \AppUtils\XMLHelper_Converter
89
+     */
90 90
     public static function fromElement(\SimpleXMLElement $element)
91 91
     {
92 92
         $obj = new XMLHelper_Converter($element);
93 93
         return $obj;
94 94
     }
95 95
 
96
-   /**
97
-    * Factory method: creates a converter from an existing SimpleXMLElement instance.
98
-    *
99
-    * @param \DOMElement $element
100
-    * @return \AppUtils\XMLHelper_Converter
101
-    */
96
+    /**
97
+     * Factory method: creates a converter from an existing SimpleXMLElement instance.
98
+     *
99
+     * @param \DOMElement $element
100
+     * @return \AppUtils\XMLHelper_Converter
101
+     */
102 102
     public static function fromDOMElement(\DOMElement $element)
103 103
     {
104 104
         $obj = new XMLHelper_Converter(simplexml_import_dom($element));
105 105
         return $obj;
106 106
     }
107 107
     
108
-   /**
109
-    * Converts the XML to JSON.
110
-    * 
111
-    * @throws XMLHelper_Exception
112
-    * @return string
113
-    */
108
+    /**
109
+     * Converts the XML to JSON.
110
+     * 
111
+     * @throws XMLHelper_Exception
112
+     * @return string
113
+     */
114 114
     public function toJSON() : string
115 115
     {
116 116
         if(isset($this->json)) {
@@ -138,11 +138,11 @@  discard block
 block discarded – undo
138 138
         );
139 139
     }
140 140
     
141
-   /**
142
-    * Converts the XML to an associative array.
143
-    * @return array
144
-    * @throws XMLHelper_Exception
145
-    */
141
+    /**
142
+     * Converts the XML to an associative array.
143
+     * @return array
144
+     * @throws XMLHelper_Exception
145
+     */
146 146
     public function toArray() : array 
147 147
     {
148 148
         $json = $this->toJSON();
Please login to merge, or discard this patch.
src/XMLHelper/SimpleXML.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -11,27 +11,27 @@
 block discarded – undo
11 11
     
12 12
     protected $errors = array();
13 13
     
14
-   /**
15
-    * Creates a simplexml instance from an XML string.
16
-    *
17
-    * NOTE: returns false in case of a fatal error.
18
-    *
19
-    * @param string $string
20
-    * @return \SimpleXMLElement|bool
21
-    */
14
+    /**
15
+     * Creates a simplexml instance from an XML string.
16
+     *
17
+     * NOTE: returns false in case of a fatal error.
18
+     *
19
+     * @param string $string
20
+     * @return \SimpleXMLElement|bool
21
+     */
22 22
     public function loadString($string)
23 23
     {
24 24
         return $this->load('string', $string);
25 25
     }
26 26
     
27
-   /**
28
-    * Creates a simplexml instance from an XML file.
29
-    * 
30
-    * NOTE: returns false in case of a fatal error.
31
-    * 
32
-    * @param string $file
33
-    * @return \SimpleXMLElement|bool
34
-    */
27
+    /**
28
+     * Creates a simplexml instance from an XML file.
29
+     * 
30
+     * NOTE: returns false in case of a fatal error.
31
+     * 
32
+     * @param string $file
33
+     * @return \SimpleXMLElement|bool
34
+     */
35 35
     public function loadFile($file)
36 36
     {
37 37
         return $this->load('file', $file);
Please login to merge, or discard this patch.
src/RegexHelper.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
     
43 43
     const REGEX_MD5 = '/^[a-f0-9]{32}$/i';
44 44
 
45
-   /**
46
-    * @var string
47
-    * @see https://en.wikipedia.org/wiki/Email_address#Local-part
48
-    */
45
+    /**
46
+     * @var string
47
+     * @see https://en.wikipedia.org/wiki/Email_address#Local-part
48
+     */
49 49
     const REGEX_EMAIL = '/[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/i';
50 50
     
51 51
     const REGEX_PHONE = '/\A[+0-9][0-9 +\-()]+\z/m';
@@ -97,13 +97,13 @@  discard block
 block discarded – undo
97 97
      */
98 98
     const REGEX_IS_HTML = '%<{0,1}[a-z\/][\s\S]*>|<[a-z\/][\s\S]*>{0,1}%i';
99 99
     
100
-   /**
101
-    * Hexadecimal color codes. Allows the following formats:
102
-    * 
103
-    * FFFFFF
104
-    * FFF
105
-    * 
106
-    * @var string
107
-    */
100
+    /**
101
+     * Hexadecimal color codes. Allows the following formats:
102
+     * 
103
+     * FFFFFF
104
+     * FFF
105
+     * 
106
+     * @var string
107
+     */
108 108
     const REGEX_HEX_COLOR_CODE = '/\A(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{3})\z/iU';
109 109
 }
Please login to merge, or discard this patch.
src/IniHelper/Line.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -38,38 +38,38 @@
 block discarded – undo
38 38
      */
39 39
     protected $text;
40 40
     
41
-   /**
42
-    * @var string
43
-    */
41
+    /**
42
+     * @var string
43
+     */
44 44
     protected $trimmed;
45 45
     
46
-   /**
47
-    * @var int
48
-    */
46
+    /**
47
+     * @var int
48
+     */
49 49
     protected $lineNumber;
50 50
     
51
-   /**
52
-    * @var string
53
-    */
51
+    /**
52
+     * @var string
53
+     */
54 54
     protected $type;
55 55
     
56
-   /**
57
-    * @var string
58
-    */
56
+    /**
57
+     * @var string
58
+     */
59 59
     protected $varName = '';
60 60
     
61
-   /**
62
-    * @var string
63
-    */
61
+    /**
62
+     * @var string
63
+     */
64 64
     protected $varValue = '';
65 65
     
66 66
     protected $valueUnquoted = '';
67 67
     
68 68
     protected $quoteStyle = '';
69 69
     
70
-   /**
71
-    * @var string
72
-    */
70
+    /**
71
+     * @var string
72
+     */
73 73
     protected $sectionName = '';
74 74
     
75 75
     public function __construct(string $text, int $lineNumber)
Please login to merge, or discard this patch.
src/IniHelper/Section.php 1 patch
Indentation   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -21,19 +21,19 @@  discard block
 block discarded – undo
21 21
  */
22 22
 class IniHelper_Section
23 23
 {
24
-   /**
25
-    * @var IniHelper
26
-    */
24
+    /**
25
+     * @var IniHelper
26
+     */
27 27
     protected $ini;
28 28
     
29
-   /**
30
-    * @var string
31
-    */
29
+    /**
30
+     * @var string
31
+     */
32 32
     protected $name;
33 33
     
34
-   /**
35
-    * @var IniHelper_Line[]
36
-    */
34
+    /**
35
+     * @var IniHelper_Line[]
36
+     */
37 37
     protected $lines = array();
38 38
     
39 39
     public function __construct(IniHelper $ini, string $name)
@@ -42,33 +42,33 @@  discard block
 block discarded – undo
42 42
         $this->name = $name;
43 43
     }
44 44
     
45
-   /**
46
-    * The section's name.
47
-    * @return string
48
-    */
45
+    /**
46
+     * The section's name.
47
+     * @return string
48
+     */
49 49
     public function getName() : string
50 50
     {
51 51
         return $this->name;
52 52
     }
53 53
     
54
-   /**
55
-    * Whether this is the default section: this 
56
-    * is used internally to store all variables that
57
-    * are not in any specific section.
58
-    * 
59
-    * @return bool
60
-    */
54
+    /**
55
+     * Whether this is the default section: this 
56
+     * is used internally to store all variables that
57
+     * are not in any specific section.
58
+     * 
59
+     * @return bool
60
+     */
61 61
     public function isDefault() : bool
62 62
     {
63 63
         return $this->name === IniHelper::SECTION_DEFAULT;
64 64
     }
65 65
     
66
-   /**
67
-    * Adds a line instance to the section.
68
-    * 
69
-    * @param IniHelper_Line $line
70
-    * @return IniHelper_Section
71
-    */
66
+    /**
67
+     * Adds a line instance to the section.
68
+     * 
69
+     * @param IniHelper_Line $line
70
+     * @return IniHelper_Section
71
+     */
72 72
     public function addLine(IniHelper_Line $line) : IniHelper_Section
73 73
     {
74 74
         $this->lines[] = $line;
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
         return $this;
77 77
     }
78 78
     
79
-   /**
80
-    * Converts the values contained in the section into 
81
-    * an associative array.
82
-    * 
83
-    * @return array
84
-    */
79
+    /**
80
+     * Converts the values contained in the section into 
81
+     * an associative array.
82
+     * 
83
+     * @return array
84
+     */
85 85
     public function toArray() : array
86 86
     {
87 87
         $result = array();
@@ -114,11 +114,11 @@  discard block
 block discarded – undo
114 114
         return $result;
115 115
     }
116 116
     
117
-   /**
118
-    * Converts the section's lines into an INI string.
119
-    * 
120
-    * @return string
121
-    */
117
+    /**
118
+     * Converts the section's lines into an INI string.
119
+     * 
120
+     * @return string
121
+     */
122 122
     public function toString()
123 123
     {
124 124
         $lines = array();
@@ -140,12 +140,12 @@  discard block
 block discarded – undo
140 140
         return implode($this->ini->getEOLChar(), $lines);
141 141
     }
142 142
 
143
-   /**
144
-    * Deletes a line from the section.
145
-    * 
146
-    * @param IniHelper_Line $toDelete
147
-    * @return IniHelper_Section
148
-    */
143
+    /**
144
+     * Deletes a line from the section.
145
+     * 
146
+     * @param IniHelper_Line $toDelete
147
+     * @return IniHelper_Section
148
+     */
149 149
     public function deleteLine(IniHelper_Line $toDelete) : IniHelper_Section
150 150
     {
151 151
         $keep = array();
@@ -162,13 +162,13 @@  discard block
 block discarded – undo
162 162
         return $this;
163 163
     }
164 164
     
165
-   /**
166
-    * Sets the value of a variable, overwriting any existing value.
167
-    * 
168
-    * @param string $name
169
-    * @param mixed $value If an array is specified, it is treated as duplicate keys and will add a line for each value.
170
-    * @return IniHelper_Section
171
-    */
165
+    /**
166
+     * Sets the value of a variable, overwriting any existing value.
167
+     * 
168
+     * @param string $name
169
+     * @param mixed $value If an array is specified, it is treated as duplicate keys and will add a line for each value.
170
+     * @return IniHelper_Section
171
+     */
172 172
     public function setValue(string $name, $value) : IniHelper_Section
173 173
     {
174 174
         $lines = $this->getLinesByVariable($name);
@@ -229,15 +229,15 @@  discard block
 block discarded – undo
229 229
         return $this;
230 230
     }
231 231
     
232
-   /**
233
-    * Adds a variable value to the section. Unlike setValue(), this
234
-    * will not overwrite any existing value. If the name is an existing
235
-    * variable name, it will be converted to duplicate keys.
236
-    * 
237
-    * @param string $name
238
-    * @param mixed $value If this is an array, it will be treated as duplicate keys, and all values that are not present yet will be added.
239
-    * @return IniHelper_Section
240
-    */
232
+    /**
233
+     * Adds a variable value to the section. Unlike setValue(), this
234
+     * will not overwrite any existing value. If the name is an existing
235
+     * variable name, it will be converted to duplicate keys.
236
+     * 
237
+     * @param string $name
238
+     * @param mixed $value If this is an array, it will be treated as duplicate keys, and all values that are not present yet will be added.
239
+     * @return IniHelper_Section
240
+     */
241 241
     public function addValue(string $name, $value) : IniHelper_Section
242 242
     {
243 243
         // array value? Treat it as duplicate keys.
@@ -295,12 +295,12 @@  discard block
 block discarded – undo
295 295
     }
296 296
     
297 297
     
298
-   /**
299
-    * Retrieves all lines for the specified variable name.
300
-    *  
301
-    * @param string $name
302
-    * @return \AppUtils\IniHelper_Line[]
303
-    */
298
+    /**
299
+     * Retrieves all lines for the specified variable name.
300
+     *  
301
+     * @param string $name
302
+     * @return \AppUtils\IniHelper_Line[]
303
+     */
304 304
     public function getLinesByVariable(string $name)
305 305
     {
306 306
         $result = array();
Please login to merge, or discard this patch.
src/ZIPHelper.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
     
39 39
     protected $file;
40 40
     
41
-   /**
42
-    * @var \ZipArchive
43
-    */
41
+    /**
42
+     * @var \ZipArchive
43
+     */
44 44
     protected $zip;
45 45
     
46 46
     public function __construct($targetFile)
@@ -48,33 +48,33 @@  discard block
 block discarded – undo
48 48
         $this->file = $targetFile;
49 49
     }
50 50
     
51
-   /**
52
-    * Sets an option, among the available options:
53
-    * 
54
-    * <ul>
55
-    * <li>WriteThreshold: The amount of files to add before the zip is automatically written to disk and re-opened to release the file handles. Set to 0 to disable.</li>
56
-    * </ul>
57
-    * 
58
-    * @param string $name
59
-    * @param mixed $value
60
-    * @return ZIPHelper
61
-    */
51
+    /**
52
+     * Sets an option, among the available options:
53
+     * 
54
+     * <ul>
55
+     * <li>WriteThreshold: The amount of files to add before the zip is automatically written to disk and re-opened to release the file handles. Set to 0 to disable.</li>
56
+     * </ul>
57
+     * 
58
+     * @param string $name
59
+     * @param mixed $value
60
+     * @return ZIPHelper
61
+     */
62 62
     public function setOption($name, $value)
63 63
     {
64 64
         $this->options[$name] = $value;
65 65
         return $this;
66 66
     }
67 67
     
68
-   /**
69
-    * Adds a file to the zip. By default, the file is stored
70
-    * with the same name in the root of the zip. Use the optional
71
-    * parameter to change the location in the zip.
72
-    * 
73
-    * @param string $filePath
74
-    * @param string $zipPath
75
-    * @throws ZIPHelper_Exception
76
-    * @return bool
77
-    */
68
+    /**
69
+     * Adds a file to the zip. By default, the file is stored
70
+     * with the same name in the root of the zip. Use the optional
71
+     * parameter to change the location in the zip.
72
+     * 
73
+     * @param string $filePath
74
+     * @param string $zipPath
75
+     * @throws ZIPHelper_Exception
76
+     * @return bool
77
+     */
78 78
     public function addFile($filePath, $zipPath=null)
79 79
     {
80 80
         $this->open();
@@ -252,13 +252,13 @@  discard block
 block discarded – undo
252 252
     
253 253
     protected $exit;
254 254
     
255
-   /**
256
-    * Like {@link ZIPHelper::download()}, but deletes the
257
-    * file after sending it to the browser.
258
-    * 
259
-    * @param string|NULL $fileName Override the ZIP's file name for the download
260
-    * @see ZIPHelper::download()
261
-    */
255
+    /**
256
+     * Like {@link ZIPHelper::download()}, but deletes the
257
+     * file after sending it to the browser.
258
+     * 
259
+     * @param string|NULL $fileName Override the ZIP's file name for the download
260
+     * @see ZIPHelper::download()
261
+     */
262 262
     public function downloadAndDelete($fileName=null)
263 263
     {
264 264
         $this->exit = false;
@@ -272,14 +272,14 @@  discard block
 block discarded – undo
272 272
         exit;
273 273
     }
274 274
 
275
-   /**
276
-    * Extracts all files and folders from the zip to the 
277
-    * target folder. If no folder is specified, the files
278
-    * are extracted into the same folder as the zip itself.
279
-    * 
280
-    * @param string $outputFolder
281
-    * @return boolean
282
-    */
275
+    /**
276
+     * Extracts all files and folders from the zip to the 
277
+     * target folder. If no folder is specified, the files
278
+     * are extracted into the same folder as the zip itself.
279
+     * 
280
+     * @param string $outputFolder
281
+     * @return boolean
282
+     */
283 283
     public function extractAll($outputFolder=null)
284 284
     {
285 285
         if(empty($outputFolder)) {
@@ -292,9 +292,9 @@  discard block
 block discarded – undo
292 292
     }
293 293
 
294 294
     
295
-   /**
296
-    * @return \ZipArchive
297
-    */
295
+    /**
296
+     * @return \ZipArchive
297
+     */
298 298
     public function getArchive()
299 299
     {
300 300
         $this->open();
@@ -302,14 +302,14 @@  discard block
 block discarded – undo
302 302
         return $this->zip;
303 303
     }
304 304
     
305
-   /**
306
-    * JSON encodes the specified data and adds the json as
307
-    * a file in the ZIP archive.
308
-    * 
309
-    * @param mixed $data
310
-    * @param string $zipPath
311
-    * @return boolean
312
-    */
305
+    /**
306
+     * JSON encodes the specified data and adds the json as
307
+     * a file in the ZIP archive.
308
+     * 
309
+     * @param mixed $data
310
+     * @param string $zipPath
311
+     * @return boolean
312
+     */
313 313
     public function addJSON($data, $zipPath)
314 314
     {
315 315
         return $this->addString(
Please login to merge, or discard this patch.
src/FileHelper/PHPClassInfo.php 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -36,17 +36,17 @@  discard block
 block discarded – undo
36 36
     
37 37
     protected $classes = array();
38 38
     
39
-   /**
40
-    * The namespace detected in the file, if any.
41
-    * @var string
42
-    */
39
+    /**
40
+     * The namespace detected in the file, if any.
41
+     * @var string
42
+     */
43 43
     protected $namespace = '';
44 44
     
45
-   /**
46
-    * @param string $path The path to the PHP file to parse.
47
-    * @throws FileHelper_Exception
48
-    * @see FileHelper::findPHPClasses()
49
-    */
45
+    /**
46
+     * @param string $path The path to the PHP file to parse.
47
+     * @throws FileHelper_Exception
48
+     * @see FileHelper::findPHPClasses()
49
+     */
50 50
     public function __construct(string $path)
51 51
     {
52 52
         $this->path = realpath($path);
@@ -66,66 +66,66 @@  discard block
 block discarded – undo
66 66
         $this->parseFile();
67 67
     }
68 68
     
69
-   /**
70
-    * The name of the namespace of the classes in the file, if any.
71
-    * @return string
72
-    */
69
+    /**
70
+     * The name of the namespace of the classes in the file, if any.
71
+     * @return string
72
+     */
73 73
     public function getNamespace() : string
74 74
     {
75 75
         return $this->namespace;
76 76
     }
77 77
     
78
-   /**
79
-    * Whether the file contains a namespace.
80
-    * @return bool
81
-    */
78
+    /**
79
+     * Whether the file contains a namespace.
80
+     * @return bool
81
+     */
82 82
     public function hasNamespace() : bool
83 83
     {
84 84
         return !empty($this->namespace);
85 85
     }
86 86
     
87
-   /**
88
-    * The absolute path to the file.
89
-    * @return string
90
-    */
87
+    /**
88
+     * The absolute path to the file.
89
+     * @return string
90
+     */
91 91
     public function getPath() : string
92 92
     {
93 93
         return $this->path;
94 94
     }
95 95
    
96
-   /**
97
-    * Whether any classes were found in the file.
98
-    * @return bool
99
-    */
96
+    /**
97
+     * Whether any classes were found in the file.
98
+     * @return bool
99
+     */
100 100
     public function hasClasses() : bool
101 101
     {
102 102
         return !empty($this->classes);
103 103
     }
104 104
     
105
-   /**
106
-    * The names of the classes that were found in the file (with namespace if any).
107
-    * @return string[]
108
-    */
105
+    /**
106
+     * The names of the classes that were found in the file (with namespace if any).
107
+     * @return string[]
108
+     */
109 109
     public function getClassNames() : array
110 110
     {
111 111
         return array_keys($this->classes);
112 112
     }
113 113
     
114
-   /**
115
-    * Retrieves all classes that were detected in the file,
116
-    * which can be used to retrieve more information about
117
-    * them.
118
-    * 
119
-    * @return FileHelper_PHPClassInfo_Class[]
120
-    */
114
+    /**
115
+     * Retrieves all classes that were detected in the file,
116
+     * which can be used to retrieve more information about
117
+     * them.
118
+     * 
119
+     * @return FileHelper_PHPClassInfo_Class[]
120
+     */
121 121
     public function getClasses()
122 122
     {
123 123
         return $this->classes;
124 124
     }
125 125
     
126
-   /**
127
-    * @throws FileHelper_Exception
128
-    */
126
+    /**
127
+     * @throws FileHelper_Exception
128
+     */
129 129
     protected function parseFile()
130 130
     {
131 131
         $code = file_get_contents($this->path);
@@ -180,13 +180,13 @@  discard block
 block discarded – undo
180 180
         }
181 181
     }
182 182
     
183
-   /**
184
-    * Strips all whitespace from the string, replacing it with 
185
-    * regular spaces (newlines, tabs, etc.).
186
-    * 
187
-    * @param string $string
188
-    * @return string
189
-    */
183
+    /**
184
+     * Strips all whitespace from the string, replacing it with 
185
+     * regular spaces (newlines, tabs, etc.).
186
+     * 
187
+     * @param string $string
188
+     * @return string
189
+     */
190 190
     protected function stripWhitespace(string $string) : string 
191 191
     {
192 192
         return preg_replace('/[\s]/', ' ', $string);
Please login to merge, or discard this patch.