Passed
Push — master ( 589e16...f15a7f )
by Sebastian
08:28
created
src/FileHelper/PHPClassInfo.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
         self::TYPE_TRAIT
49 49
     );
50 50
 
51
-   /**
52
-    * @param PHPFile $path The path to the PHP file to parse.
53
-    * @throws FileHelper_Exception
54
-    * @see FileHelper::findPHPClasses()
55
-    */
51
+    /**
52
+     * @param PHPFile $path The path to the PHP file to parse.
53
+     * @throws FileHelper_Exception
54
+     * @see FileHelper::findPHPClasses()
55
+     */
56 56
     public function __construct(PHPFile $path)
57 57
     {
58 58
         $this->file = $path
@@ -62,58 +62,58 @@  discard block
 block discarded – undo
62 62
         $this->parseFile();
63 63
     }
64 64
     
65
-   /**
66
-    * The name of the namespace of the classes in the file, if any.
67
-    * @return string
68
-    */
65
+    /**
66
+     * The name of the namespace of the classes in the file, if any.
67
+     * @return string
68
+     */
69 69
     public function getNamespace() : string
70 70
     {
71 71
         return $this->namespace;
72 72
     }
73 73
     
74
-   /**
75
-    * Whether the file contains a namespace.
76
-    * @return bool
77
-    */
74
+    /**
75
+     * Whether the file contains a namespace.
76
+     * @return bool
77
+     */
78 78
     public function hasNamespace() : bool
79 79
     {
80 80
         return !empty($this->namespace);
81 81
     }
82 82
     
83
-   /**
84
-    * The absolute path to the file.
85
-    * @return string
86
-    */
83
+    /**
84
+     * The absolute path to the file.
85
+     * @return string
86
+     */
87 87
     public function getPath() : string
88 88
     {
89 89
         return $this->file->getPath();
90 90
     }
91 91
    
92
-   /**
93
-    * Whether any classes were found in the file.
94
-    * @return bool
95
-    */
92
+    /**
93
+     * Whether any classes were found in the file.
94
+     * @return bool
95
+     */
96 96
     public function hasClasses() : bool
97 97
     {
98 98
         return !empty($this->classes);
99 99
     }
100 100
     
101
-   /**
102
-    * The names of the classes that were found in the file (with namespace if any).
103
-    * @return string[]
104
-    */
101
+    /**
102
+     * The names of the classes that were found in the file (with namespace if any).
103
+     * @return string[]
104
+     */
105 105
     public function getClassNames() : array
106 106
     {
107 107
         return array_keys($this->classes);
108 108
     }
109 109
     
110
-   /**
111
-    * Retrieves all classes that were detected in the file,
112
-    * which can be used to retrieve more information about
113
-    * them.
114
-    * 
115
-    * @return FileHelper_PHPClassInfo_Class[]
116
-    */
110
+    /**
111
+     * Retrieves all classes that were detected in the file,
112
+     * which can be used to retrieve more information about
113
+     * them.
114
+     * 
115
+     * @return FileHelper_PHPClassInfo_Class[]
116
+     */
117 117
     public function getClasses() : array
118 118
     {
119 119
         return array_values($this->classes);
@@ -185,13 +185,13 @@  discard block
 block discarded – undo
185 185
         $this->classes[$class->getNameNS()] = $class;
186 186
     }
187 187
 
188
-   /**
189
-    * Strips all whitespace from the string, replacing it with 
190
-    * regular spaces (newlines, tabs, etc.).
191
-    * 
192
-    * @param string $string
193
-    * @return string
194
-    */
188
+    /**
189
+     * Strips all whitespace from the string, replacing it with 
190
+     * regular spaces (newlines, tabs, etc.).
191
+     * 
192
+     * @param string $string
193
+     * @return string
194
+     */
195 195
     protected function stripWhitespace(string $string) : string 
196 196
     {
197 197
         return preg_replace('/\s/', ' ', $string);
Please login to merge, or discard this patch.