v3.21.1

Leases (Tables) | 12 Months Ended
--- | ---
Jan. 31, 2021
Leases [Abstract] |
Schedule of operating and finance leases | Supplemental balance sheet information related to operating and finance leases as of January 31, 2021 was as follows:
| January 31, 2021
Operating leases: |
Lease right-of-use assets | $ | 2,654 |
Lease liabilities, current | 1,087 |
Lease liabilities, noncurrent | 1,899 |
Total operating lease liabilities | $ | 2,986 |
Finance leases: |
Property and equipment, at cost | $ | 19,933 |
Accumulated depreciation | (10,389) |
Property and equipment, net | $ | 9,544 |
Lease liabilities (included in Current portion of debt and finance leases) | 3,820
Lease liabilities, noncurrent (included in Long-term debt and finance leases) | 5,882 |
Total finance lease liabilities | $ | 9,702 |
Schedule of lease expense | The components of lease expense for the year ended January 31, 2021 were as follows:
| January 31, 2021
Operating leases: |
Operating lease cost | $ | 1,766 |
Variable lease cost | 257 |
Total operating lease cost | $ | 2,023 |
Finance leases: |
Amortization of right-of-use assets | $ | 2,876 |
Interest on lease liabilities | 326 |
Total finance lease cost | $ | 3,202 |
Other supplemental cash flow information for the year ended January 31, 2021 was as follows:
| January 31, 2021
Supplemental cash flow information |
Cash paid for amounts included in the measurement of lease liabilities: |
Operating cash used for operating leases | $ | 1,629 |
Operating cash used for finance leases | 326 |
Financing cash used for finance leases | 2,630 |
Total | $ | 4,585 |
Right-of-use assets obtained in exchange for lease liabilities: |
Operating | $ | 4,359 |
Finance | 8,885 |
Total | $ | 13,244 |
Schedule of maturing lease commitments of operating leases | The following represents a schedule of maturing lease commitments for operating and finance leases as of January 31, 2021:
| January 31, 2021
| Operating |  | Finance
Maturity of lease liabilities |  |  |
Fiscal year ending January 31, |  |  |
2022 | 1,171 |  |  | 4,142 |
2023 | 1,142 |  |  | 3,356 |
2024 | 760 |  |  | 2,294 |
2025 | 52 |  |  | 316 |
2026 | — |  |  | 158 |
Total future minimum lease payments | $ | 3,125 |  |  | $ | 10,266 |
Less: interest | (139) |  |  | (564) |
Present value of lease liabilities | $ | 2,986 |  |  | $ | 9,702 |
Schedule of maturing lease commitments of finance leases | The following represents a schedule of maturing lease commitments for operating and finance leases as of January 31, 2021:
| January 31, 2021
| Operating |  | Finance
Maturity of lease liabilities |  |  |
Fiscal year ending January 31, |  |  |
2022 | 1,171 |  |  | 4,142 |
2023 | 1,142 |  |  | 3,356 |
2024 | 760 |  |  | 2,294 |
2025 | 52 |  |  | 316 |
2026 | — |  |  | 158 |
Total future minimum lease payments | $ | 3,125 |  |  | $ | 10,266 |
Less: interest | (139) |  |  | (564) |
Present value of lease liabilities | $ | 2,986 |  |  | $ | 9,702 |
Schedule of future minimum lease payments under non-cancelable operating leases | Future minimum lease payments under non-cancelable operating leases as of January 31, 2020 under ASC 840 were as follows:
| January 31, 2020
| Operating
Fiscal year ending January 31, |
2021 | $ | 1,824 |
2022 | 819 |
2023 | 464 |
2024 | 277 |
| $ | 3,384 |

X
- Definition Assets And Liabilities, Lessee + References No definition available. + Details
Name: | phr_AssetsAndLiabilitiesLesseeTableTextBlock
Namespace Prefix: | phr_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of undiscounted cash flows of finance lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to finance lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=121609121&loc=SL77918701-209980 + Details
Name: | us-gaap_FinanceLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980 + Details
Name: | us-gaap_LeaseCostTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_LeasesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=121609121&loc=SL77918701-209980 + Details
Name: | us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of future minimum payments required in the aggregate and for each of the five succeeding fiscal years for operating leases having initial or remaining noncancelable lease terms in excess of one year and the total minimum rentals to be received in the future under noncancelable subleases as of the balance sheet date. + References Reference 1: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=121573735&loc=d3e41502-112717 + Details
Name: | us-gaap_ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration